Skip to content

Commit 8b756d7

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

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

java/ql/src/experimental/Security/CWE/CWE-352/JsonpInjection.ql

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ predicate existsFilterVerificationMethod() {
2828
)
2929
}
3030

31-
/** Determine whether there is a verification method for the remote streaming source data flow path method. */
31+
/**
32+
* Holds if somewhere in the whole program some user-controlled
33+
* input is tested with what appears to be a token- or authentication-checking function,
34+
* and `checkNode` is reachable from any function that can reach the user-controlled input source.
35+
*/
3236
predicate existsServletVerificationMethod(Node checkNode) {
3337
exists(DataFlow::Node source, DataFlow::Node sink, VerificationMethodFlowConfig vmfc |
3438
vmfc.hasFlow(source, sink) and

0 commit comments

Comments
 (0)