Skip to content

Commit 48d55ec

Browse files
Jami CogswellJami Cogswell
authored andcommitted
Java: performance fix
1 parent ede9e78 commit 48d55ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

java/ql/lib/semmle/code/java/security/CsrfUnprotectedRequestTypeQuery.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ predicate unprotectedDatabaseUpdate(CallPathNode sourceMethod, CallPathNode sink
180180
sourceMethod.asMethod() instanceof CsrfUnprotectedMethod and
181181
exists(CallPathNode sinkMethod |
182182
sinkMethod.asMethod() instanceof DatabaseUpdateMethod and
183-
sinkMethodCall.getASuccessor() = sinkMethod and
184-
sourceMethod.getASuccessor+() = sinkMethodCall and
183+
sinkMethodCall.getASuccessor() = pragma[only_bind_into](sinkMethod) and
184+
sourceMethod.getASuccessor+() = pragma[only_bind_into](sinkMethodCall) and
185185
if
186186
sinkMethod.asMethod() instanceof SqlInjectionMethod and
187187
sinkMethod.asMethod().hasName("execute")

0 commit comments

Comments
 (0)