Java: Add URLDecoder.decode as taint step.

This commit is contained in:
Anders Schack-Mulligen
2020-03-17 10:19:02 +01:00
parent 9fc75f1f92
commit 9c9e302a73

View File

@@ -466,6 +466,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