Merge pull request #3081 from aschackmull/java/urldecoder-step

Java: Add URLDecoder.decode as taint step.
This commit is contained in:
yo-h
2020-03-20 13:53:20 -04:00
committed by GitHub

View File

@@ -473,6 +473,10 @@ private predicate taintPreservingArgumentToMethod(Method method, int arg) {
method.getName() = "toString" and arg = 0
)
or
method.getDeclaringType().hasQualifiedName("java.net", "URLDecoder") and
method.hasName("decode") and
arg = 0
or
// A URI created from a tainted string is still tainted.
method.getDeclaringType().hasQualifiedName("java.net", "URI") and
method.hasName("create") and