Python: Remove spurious results in stdlib

This commit is contained in:
Rasmus Wriedt Larsen
2024-02-14 14:45:32 +01:00
parent d8fd457310
commit 9ae3ea81ff
2 changed files with 4 additions and 34 deletions

View File

@@ -379,6 +379,10 @@ module BombsConfig implements DataFlow::ConfigSig {
predicate isSink(DataFlow::Node sink) { sink instanceof DecompressionBomb::Sink }
predicate isBarrierIn(DataFlow::Node node) {
node.getScope().getEnclosingModule().getName() in ["tarfile", "zipfile"]
}
predicate isAdditionalFlowStep(DataFlow::Node pred, DataFlow::Node succ) {
(
any(DecompressionBomb::AdditionalTaintStep a).isAdditionalTaintStep(pred, succ) or