mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Swift/CleartextStorageDatabaseQuery
swift/ql/src/queries/Security/CWE-311/CleartextStorageDatabase.ql
This commit is contained in:
@@ -52,12 +52,9 @@ module CleartextStorageDatabaseConfig implements DataFlow::ConfigSig {
|
||||
predicate observeDiffInformedIncrementalMode() { any() }
|
||||
|
||||
Location getASelectedSinkLocation(DataFlow::Node sink) {
|
||||
exists(DataFlow::Node cleanSink | result = cleanSink.getLocation() |
|
||||
cleanSink = sink.(DataFlow::PostUpdateNode).getPreUpdateNode()
|
||||
or
|
||||
not sink instanceof DataFlow::PostUpdateNode and
|
||||
cleanSink = sink
|
||||
)
|
||||
result = sink.(CleartextStorageDatabaseSink).getLocation()
|
||||
or
|
||||
result = sink.(DataFlow::PostUpdateNode).getPreUpdateNode().getLocation()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user