We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf8c7a2 commit 8f2013cCopy full SHA for 8f2013c
1 file changed
python/ql/src/experimental/semmle/python/security/injection/CsvInjection.qll
@@ -21,11 +21,16 @@ class CsvInjectionFlowConfig extends TaintTracking::Configuration {
21
}
22
23
24
-class StartsWithCheck extends DataFlow::BarrierGuard {
25
- StartsWithCheck() { this.(CallNode).getNode().getFunc().(Attribute).getName() = "startswith" }
+private class StartsWithCheck extends DataFlow::BarrierGuard {
+ Attribute attr;
26
+
27
+ StartsWithCheck() {
28
+ this.(CallNode).getNode().getFunc() = attr and
29
+ attr.getName() = "startswith"
30
+ }
31
32
override predicate checks(ControlFlowNode node, boolean branch) {
- node = this.(CallNode).getNode().getFunc().(Attribute).getObject().getAFlowNode() and
33
+ node = attr.getObject().getAFlowNode() and
34
branch = true
35
36
0 commit comments