Skip to content

Commit 0650750

Browse files
committed
Python: Highlight how await taint-step works
1 parent ad102e2 commit 0650750

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,8 @@ predicate copyStep(DataFlow::CfgNode nodeFrom, DataFlow::CfgNode nodeTo) {
205205
}
206206

207207
/**
208-
* Holds if taint can flow from `nodeFrom` to `nodeTo` with a step related `await`.
208+
* Holds if taint can flow from `nodeFrom` to `nodeTo` with an `await`-step,
209+
* such that the whole expression `await x` is tainted if `x` is tainted.
209210
*/
210211
predicate awaitStep(DataFlow::Node nodeFrom, DataFlow::Node nodeTo) {
211212
nodeTo.asExpr().(Await).getValue() = nodeFrom.asExpr()

0 commit comments

Comments
 (0)