Skip to content

Commit 8560868

Browse files
committed
[DIFF-INFORMED] C++: CleartextSqliteDatabase
1 parent 05df2f2 commit 8560868

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

cpp/ql/src/Security/CWE/CWE-313/CleartextSqliteDatabase.ql

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,20 @@ module FromSensitiveConfig implements DataFlow::ConfigSig {
123123
content.(DataFlow::FieldContent).getField() = getRecField(t.stripType())
124124
)
125125
}
126+
127+
predicate observeDiffInformedIncrementalMode() { any() }
128+
129+
Location getASelectedSourceLocation(DataFlow::Node source) {
130+
exists(SensitiveExpr sensitive | result = sensitive.getLocation() |
131+
isSourceImpl(source, sensitive)
132+
)
133+
}
134+
135+
Location getASelectedSinkLocation(DataFlow::Node sink) {
136+
exists(SqliteFunctionCall sqliteCall | result = sqliteCall.getLocation() |
137+
isSinkImpl(sink, sqliteCall, _)
138+
)
139+
}
126140
}
127141

128142
module FromSensitiveFlow = TaintTracking::Global<FromSensitiveConfig>;

0 commit comments

Comments
 (0)