We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b0ac83 commit 25065bcCopy full SHA for 25065bc
javascript/ql/src/experimental/Security/CWE-918/SSRF.qll
@@ -30,10 +30,7 @@ class TernaryOperatorSanitizerGuard extends TaintTracking::SanitizerGuardNode {
30
TaintTracking::SanitizerGuardNode originalGuard;
31
32
TernaryOperatorSanitizerGuard() {
33
- exists(DataFlow::Node falseNode |
34
- this.getAPredecessor+() = falseNode and
35
- falseNode.asExpr().(BooleanLiteral).mayHaveBooleanValue(false)
36
- ) and
+ this.getAPredecessor+().asExpr().(BooleanLiteral).mayHaveBooleanValue(false) and
37
this.getAPredecessor+() = originalGuard and
38
not this.asExpr() instanceof LogicalBinaryExpr
39
}
0 commit comments