Python: Remove flow through stdlib

This means tests can pass on any machine now 👍
This commit is contained in:
Rasmus Wriedt Larsen
2023-08-14 11:55:22 +02:00
parent 794d04e4c0
commit 1c3cc1fa29
2 changed files with 2 additions and 15 deletions

View File

@@ -33,6 +33,8 @@ module WebAppConstantSecretKeyConfig implements DataFlow::StateConfigSig {
state = Django() and DjangoConstantSecretKeyConfig::isSource(source)
}
predicate isBarrier(DataFlow::Node node) { node.getLocation().getFile().inStdlib() }
predicate isSink(DataFlow::Node sink, FlowState state) {
state = Flask() and FlaskConstantSecretKeyConfig::isSink(sink)
or