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:
@@ -12,7 +12,7 @@ class VerificationMethodToIfFlowConfig extends DataFlow3::Configuration {
|
||||
VerificationMethodToIfFlowConfig() { this = "VerificationMethodToIfFlowConfig" }
|
||||
|
||||
override predicate isSource(DataFlow::Node src) {
|
||||
exists(MethodAccess ma, BarrierGuard bg | ma = bg |
|
||||
exists(MethodAccess ma | ma instanceof BarrierGuard |
|
||||
(
|
||||
ma.getMethod().getAParameter().getName().regexpMatch("(?i).*(token|auth|referer|origin).*")
|
||||
or
|
||||
|
||||
Reference in New Issue
Block a user