Update java/ql/src/experimental/Security/CWE/CWE-352/JsonpInjection.ql

Co-authored-by: Chris Smowton <smowton@github.com>
This commit is contained in:
haby0
2021-04-13 23:56:17 +08:00
committed by GitHub
parent 6e73d13670
commit 7be45e7c5e

View File

@@ -52,7 +52,7 @@ class RequestResponseFlowConfig extends TaintTracking::Configuration {
override predicate isSink(DataFlow::Node sink) {
sink instanceof XssSink and
getACallingCallableOrSelf(sink.getEnclosingCallable()) instanceof RequestGetMethod
any(RequestGetMethod m).polyCalls*(source.getEnclosingCallable())
}
override predicate isAdditionalTaintStep(DataFlow::Node pred, DataFlow::Node succ) {