mirror of
https://github.com/github/codeql.git
synced 2026-03-01 21:34:50 +01:00
Java: Add taint step to flow through Spring tainted user data class
getters.
This commit is contained in:
@@ -389,6 +389,10 @@ private predicate taintPreservingQualifierToMethod(Method m) {
|
||||
)
|
||||
or
|
||||
m instanceof StringReplaceMethod
|
||||
or
|
||||
exists(SpringUntrustedDataType dt |
|
||||
m.(GetterMethod) = dt.getAMethod()
|
||||
)
|
||||
}
|
||||
|
||||
private class StringReplaceMethod extends Method {
|
||||
|
||||
Reference in New Issue
Block a user