Skip to content

Commit

Permalink
Merge pull request #4989 from lcartey/lcartey/spring-inheritence-impr…
Browse files Browse the repository at this point in the history
…ovements

Java: Track taint through Spring Java bean getters on super types
  • Loading branch information
aschackmull authored Feb 3, 2021
2 parents e3bdebf + 76c9b64 commit 0df7e9f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,9 @@ private predicate taintPreservingQualifierToMethod(Method m) {
m.getDeclaringType() instanceof TypeUri and
m.hasName("toURL")
or
m instanceof GetterMethod and m.getDeclaringType() instanceof SpringUntrustedDataType
m instanceof GetterMethod and
m.getDeclaringType().getASubtype*() instanceof SpringUntrustedDataType and
not m.getDeclaringType() instanceof TypeObject
or
m.getDeclaringType() instanceof SpringHttpEntity and
m.getName().regexpMatch("getBody|getHeaders")
Expand Down

0 comments on commit 0df7e9f

Please sign in to comment.