Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 650446f

Browse files
haby0smowton
andauthored
Update java/ql/src/experimental/Security/CWE/CWE-352/JsonpInjectionLib.qll
Co-authored-by: Chris Smowton <[email protected]>
1 parent a5ebe8c commit 650446f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

java/ql/src/experimental/Security/CWE/CWE-352/JsonpInjectionLib.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ class VerificationMethodFlowConfig extends TaintTracking2::Configuration {
3939
override predicate isSource(DataFlow::Node src) { src instanceof RemoteFlowSource }
4040

4141
override predicate isSink(DataFlow::Node sink) {
42-
exists(MethodAccess ma, BarrierGuard bg, int i, VerificationMethodToIfFlowConfig vmtifc |
43-
ma = bg
42+
exists(MethodAccess ma, int i, VerificationMethodToIfFlowConfig vmtifc |
43+
ma instanceof BarrierGuard
4444
|
4545
(
4646
ma.getMethod().getParameter(i).getName().regexpMatch("(?i).*(token|auth|referer|origin).*")

0 commit comments

Comments
 (0)