Skip to content

Commit 25b012d

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

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
@@ -47,7 +47,7 @@ class RequestResponseFlowConfig extends TaintTracking::Configuration {
4747

4848
override predicate isSource(DataFlow::Node source) {
4949
source instanceof RemoteFlowSource and
50-
getACallingCallableOrSelf(source.getEnclosingCallable()) instanceof RequestGetMethod
50+
any(RequestGetMethod m).polyCalls*(source.getEnclosingCallable())
5151
}
5252

5353
override predicate isSink(DataFlow::Node sink) {

0 commit comments

Comments
 (0)