Skip to content

Commit a17b0d4

Browse files
committed
Modify Sanitizer
1 parent 9b969e1 commit a17b0d4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

python/ql/src/experimental/Security/CWE-348/ClientSuppliedIpUsedInSecurityCheck.ql

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,9 @@ class ClientSuppliedIpUsedInSecurityCheckConfig extends TaintTracking::Configura
3939

4040
override predicate isSanitizer(DataFlow::Node node) {
4141
exists(Subscript ss |
42-
not ss.getIndex().(IntegerLiteral).getText() = "0" and
4342
ss.getObject().(Call).getFunc().(Attribute).getName() = "split" and
44-
ss.getObject().(Call).getArg(0).(StrConst).getText() = "," and
45-
ss.getObject().(Call).getFunc().(Attribute).getObject() = node.asExpr()
43+
ss.getObject().(Call).getAnArg().(StrConst).getText() = "," and
44+
ss = node.asExpr()
4645
)
4746
}
4847
}

0 commit comments

Comments
 (0)