File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
javascript/ql/src/experimental/Security/CWE-918 Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -55,14 +55,14 @@ deprecated class Configuration extends TaintTracking::Configuration {
55
55
class TernaryOperatorSanitizer extends RequestForgery:: Sanitizer {
56
56
TernaryOperatorSanitizer ( ) {
57
57
exists (
58
- TaintTracking:: SanitizerGuardNode guard , IfStmt ifStmt , DataFlow:: Node taintedInput ,
58
+ TaintTracking:: AdditionalBarrierGuard guard , IfStmt ifStmt , DataFlow:: Node taintedInput ,
59
59
boolean outcome , Stmt r , DataFlow:: Node falseNode
60
60
|
61
61
ifStmt .getCondition ( ) .flow ( ) .getAPredecessor + ( ) = guard and
62
62
ifStmt .getCondition ( ) .flow ( ) .getAPredecessor + ( ) = falseNode and
63
63
falseNode .asExpr ( ) .( BooleanLiteral ) .mayHaveBooleanValue ( false ) and
64
64
not ifStmt .getCondition ( ) instanceof LogicalBinaryExpr and
65
- guard .sanitizes ( outcome , taintedInput .asExpr ( ) ) and
65
+ guard .blocksExpr ( outcome , taintedInput .asExpr ( ) ) and
66
66
(
67
67
outcome = true and r = ifStmt .getThen ( ) and not ifStmt .getCondition ( ) instanceof LogNotExpr
68
68
or
You can’t perform that action at this time.
0 commit comments