Skip to content

Commit e112226

Browse files
Jami CogswellJami Cogswell
authored andcommitted
Java: try performance fix
1 parent 73a3a0d commit e112226

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
@@ -179,8 +179,8 @@ predicate unprotectedDatabaseUpdate(CallPathNode sourceMethod, CallPathNode sink
179179
sourceMethod.asMethod() instanceof CsrfUnprotectedMethod and
180180
exists(CallPathNode sinkMethod |
181181
sinkMethod.asMethod() instanceof DatabaseUpdateMethod and
182-
sinkMethodCall.getASuccessor() = sinkMethod and
183-
sourceMethod.getASuccessor+() = sinkMethodCall and
182+
sinkMethodCall.getASuccessor() = pragma[only_bind_into](sinkMethod) and
183+
sourceMethod.getASuccessor+() = pragma[only_bind_into](sinkMethodCall) and
184184
if
185185
sinkMethod.asMethod() instanceof SqlInjectionMethod and
186186
sinkMethod.asMethod().hasName("execute")

0 commit comments

Comments
 (0)