Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e84c63 commit f4f96feCopy full SHA for f4f96fe
2 files changed
cpp/ql/src/Security/CWE/CWE-079/CgiXss.ql
@@ -29,6 +29,8 @@ class QueryString extends EnvironmentRead {
29
}
30
31
class Configuration extends TaintTrackingConfiguration {
32
+ override predicate isSource(Expr source) { source instanceof QueryString }
33
+
34
override predicate isSink(Element tainted) {
35
exists(PrintStdoutCall call | call.getAnArgument() = tainted)
36
cpp/ql/src/Security/CWE/CWE-313/CleartextSqliteDatabase.ql
@@ -34,6 +34,10 @@ predicate sqlite_encryption_used() {
37
+ override predicate isSource(Expr source) {
38
+ super.isSource(source) and source instanceof SensitiveExpr
39
+ }
40
41
override predicate isSink(Element taintedArg) {
42
exists(SqliteFunctionCall sqliteCall |
43
taintedArg = sqliteCall.getASource() and
0 commit comments