Skip to content

Commit 20ea925

Browse files
committed
Python: Allow provenance in additional taint steps
1 parent ea3cc51 commit 20ea925

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

python/ql/lib/semmle/python/dataflow/new/internal/TaintTrackingPrivate.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ private module Cached {
2929
or
3030
any(AdditionalTaintStep a).step(nodeFrom, nodeTo) and
3131
model = "AdditionalTaintStep"
32+
or
33+
any(AdditionalTaintStep a).step(nodeFrom, nodeTo, model)
3234
}
3335

3436
/**

python/ql/lib/semmle/python/dataflow/new/internal/TaintTrackingPublic.qll

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,7 @@ class AdditionalTaintStep extends Unit {
4848
* Holds if the step from `nodeFrom` to `nodeTo` should be considered a taint
4949
* step for all configurations.
5050
*/
51-
abstract predicate step(DataFlow::Node nodeFrom, DataFlow::Node nodeTo);
51+
predicate step(DataFlow::Node nodeFrom, DataFlow::Node nodeTo) { none() }
52+
53+
predicate step(DataFlow::Node nodeFrom, DataFlow::Node nodeTo, string model) { none() }
5254
}

0 commit comments

Comments
 (0)