Skip to content

Commit 7be45e7

Browse files
haby0smowton
andauthored
Update java/ql/src/experimental/Security/CWE/CWE-352/JsonpInjection.ql
Co-authored-by: Chris Smowton <[email protected]>
1 parent 6e73d13 commit 7be45e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class RequestResponseFlowConfig extends TaintTracking::Configuration {
5252

5353
override predicate isSink(DataFlow::Node sink) {
5454
sink instanceof XssSink and
55-
getACallingCallableOrSelf(sink.getEnclosingCallable()) instanceof RequestGetMethod
55+
any(RequestGetMethod m).polyCalls*(source.getEnclosingCallable())
5656
}
5757

5858
override predicate isAdditionalTaintStep(DataFlow::Node pred, DataFlow::Node succ) {

0 commit comments

Comments
 (0)