We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91f6b0b commit 7f69fe6Copy full SHA for 7f69fe6
swift/ql/lib/codeql/swift/security/CleartextStorageDatabaseQuery.qll
@@ -38,7 +38,8 @@ class CleartextStorageConfig extends TaintTracking::Configuration {
38
// for example in `realmObj.data = sensitive`.
39
isSink(node) and
40
exists(NominalTypeDecl d, Decl cx |
41
- d.getType().getABaseType*().getUnderlyingType().getName() = ["NSManagedObject", "RealmSwiftObject"] and
+ d.getType().getABaseType*().getUnderlyingType().getName() =
42
+ ["NSManagedObject", "RealmSwiftObject"] and
43
cx.asNominalTypeDecl() = d and
44
c.getAReadContent().(DataFlow::Content::FieldContent).getField() = cx.getAMember()
45
)
0 commit comments