Skip to content

Commit 438b92b

Browse files
authored
Merge pull request #19797 from d10c/d10c/python/diff-informed-2
Python: mass enable diff-informed data flow `none()` location overrides
2 parents 687e8d2 + b79ce6d commit 438b92b

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

python/ql/src/experimental/Security/CWE-327/Azure/UnsafeUsageOfClientSideEncryptionVersion.ql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ private module AzureBlobClientConfig implements DataFlow::StateConfigSig {
147147
}
148148

149149
predicate observeDiffInformedIncrementalMode() { any() }
150+
151+
Location getASelectedSourceLocation(DataFlow::Node sink) { none() }
150152
}
151153

152154
module AzureBlobClientFlow = DataFlow::GlobalWithState<AzureBlobClientConfig>;

python/ql/src/experimental/Security/CWE-346/CorsBypass.ql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ module CorsBypassConfig implements DataFlow::ConfigSig {
8181
}
8282

8383
predicate observeDiffInformedIncrementalMode() { any() }
84+
85+
Location getASelectedSourceLocation(DataFlow::Node sink) { none() }
8486
}
8587

8688
module CorsFlow = TaintTracking::Global<CorsBypassConfig>;

python/ql/src/experimental/Security/UnsafeUnpackQuery.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,8 @@ module UnsafeUnpackConfig implements DataFlow::ConfigSig {
210210
}
211211

212212
predicate observeDiffInformedIncrementalMode() { any() }
213+
214+
Location getASelectedSourceLocation(DataFlow::Node sink) { none() }
213215
}
214216

215217
/** Global taint-tracking for detecting "UnsafeUnpacking" vulnerabilities. */

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ private module LdapInsecureAuthConfig implements DataFlow::ConfigSig {
103103
}
104104

105105
predicate observeDiffInformedIncrementalMode() { any() }
106+
107+
Location getASelectedSourceLocation(DataFlow::Node sink) { none() }
106108
}
107109

108110
/** Global taint-tracking for detecting "LDAP insecure authentications" vulnerabilities. */

0 commit comments

Comments
 (0)