mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Update java/ql/src/experimental/Security/CWE/CWE-352/JsonpInjectionLib.qll
Co-authored-by: Chris Smowton <smowton@github.com>
This commit is contained in:
@@ -39,8 +39,8 @@ class VerificationMethodFlowConfig extends TaintTracking2::Configuration {
|
||||
override predicate isSource(DataFlow::Node src) { src instanceof RemoteFlowSource }
|
||||
|
||||
override predicate isSink(DataFlow::Node sink) {
|
||||
exists(MethodAccess ma, BarrierGuard bg, int i, VerificationMethodToIfFlowConfig vmtifc |
|
||||
ma = bg
|
||||
exists(MethodAccess ma, int i, VerificationMethodToIfFlowConfig vmtifc |
|
||||
ma instanceof BarrierGuard
|
||||
|
|
||||
(
|
||||
ma.getMethod().getParameter(i).getName().regexpMatch("(?i).*(token|auth|referer|origin).*")
|
||||
|
||||
Reference in New Issue
Block a user