Skip to content

Commit b79ce6d

Browse files
committed
Python: mass enable diff-informed data flow none() location overrides
An auto-generated patch that enables diff-informed data flow in the obvious cases. Builds on github#18346 and github/codeql-patch#88
1 parent fb0f12b commit b79ce6d

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)