mirror of
https://github.com/github/codeql.git
synced 2025-12-21 11:16:30 +01:00
Update python/ql/src/experimental/semmle/python/security/injection/CsvInjection.qll
Co-authored-by: yoff <lerchedahl@gmail.com>
This commit is contained in:
@@ -22,15 +22,15 @@ class CsvInjectionFlowConfig extends TaintTracking::Configuration {
|
||||
}
|
||||
|
||||
private class StartsWithCheck extends DataFlow::BarrierGuard {
|
||||
Attribute attr;
|
||||
DataFlow::MethodCallNode mc;
|
||||
|
||||
StartsWithCheck() {
|
||||
this.(CallNode).getNode().getFunc() = attr and
|
||||
attr.getName() = "startswith"
|
||||
this = mc.asCfgNode() and
|
||||
mc.calls(_, "startswith")
|
||||
}
|
||||
|
||||
override predicate checks(ControlFlowNode node, boolean branch) {
|
||||
node = attr.getObject().getAFlowNode() and
|
||||
node = mc.getObject().asCfgNode() and
|
||||
branch = true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user