Skip to content

Commit 69c8ef9

Browse files
committed
Python: Use dataflow instead of taint-tracking
1 parent ba7dd38 commit 69c8ef9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

python/ql/src/experimental/semmle/python/security/DecompressionBomb.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ module ZipFile {
7373
* ```
7474
*/
7575
predicate zipFileDecompressionBombSanitizer(API::Node n) {
76-
TaintTracking::localExprTaint(n.getReturn().getMember("read").getParameter(0).asSink().asExpr(),
77-
any(Compare i).getASubExpression*())
76+
DataFlow::localFlow(n.getReturn().getMember("read").getParameter(0).asSink(),
77+
DataFlow::exprNode(any(Compare i).getASubExpression*()))
7878
}
7979

8080
/**

python/ql/src/experimental/semmle/python/security/FileAndFormRemoteFlowSource.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module FileAndFormRemoteFlowSource {
3737
exists(For f, Attribute attr |
3838
fastApiParam.getAValueReachableFromSource().asExpr() = f.getIter().getASubExpression*()
3939
|
40-
TaintTracking::localExprTaint(f.getIter(), attr.getObject()) and
40+
DataFlow::localFlow(DataFlow::exprNode(f.getIter()), DataFlow::exprNode(attr.getObject())) and
4141
attr.getName() = ["filename", "content_type", "headers", "file", "read"] and
4242
this.asExpr() = attr
4343
)

0 commit comments

Comments
 (0)