We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e3bdebf + 76c9b64 commit 0df7e9fCopy full SHA for 0df7e9f
java/ql/src/semmle/code/java/dataflow/internal/TaintTrackingUtil.qll
@@ -345,7 +345,9 @@ private predicate taintPreservingQualifierToMethod(Method m) {
345
m.getDeclaringType() instanceof TypeUri and
346
m.hasName("toURL")
347
or
348
- m instanceof GetterMethod and m.getDeclaringType() instanceof SpringUntrustedDataType
+ m instanceof GetterMethod and
349
+ m.getDeclaringType().getASubtype*() instanceof SpringUntrustedDataType and
350
+ not m.getDeclaringType() instanceof TypeObject
351
352
m.getDeclaringType() instanceof SpringHttpEntity and
353
m.getName().regexpMatch("getBody|getHeaders")
0 commit comments