File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
test/query-tests/diagnostics Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ private import codeql.rust.AstConsistency as AstConsistency
10
10
private import codeql.rust.controlflow.internal.CfgConsistency as CfgConsistency
11
11
private import codeql.rust.dataflow.internal.DataFlowConsistency as DataFlowConsistency
12
12
private import codeql.rust.security.SqlInjectionExtensions
13
+ private import codeql.rust.security.CleartextLoggingExtensions
13
14
14
15
/**
15
16
* Gets a count of the total number of lines of code in the database.
@@ -58,7 +59,9 @@ int getTaintEdgesCount() {
58
59
* Gets a kind of query for which `n` is a sink (if any).
59
60
*/
60
61
string getAQuerySinkKind ( DataFlow:: Node n ) {
61
- ( n instanceof SqlInjection:: Sink and result = "SqlInjection" )
62
+ n instanceof SqlInjection:: Sink and result = "SqlInjection"
63
+ or
64
+ n instanceof CleartextLogging:: Sink and result = "CleartextLogging"
62
65
}
63
66
64
67
/**
Original file line number Diff line number Diff line change 14
14
| Macro calls - resolved | 8 |
15
15
| Macro calls - total | 9 |
16
16
| Macro calls - unresolved | 1 |
17
- | Taint edges - number of edges | 2 |
17
+ | Taint edges - number of edges | 3 |
18
18
| Taint reach - nodes tainted | 0 |
19
19
| Taint reach - per million nodes | 0 |
20
20
| Taint sinks - cryptographic operations | 0 |
21
- | Taint sinks - query sinks | 0 |
21
+ | Taint sinks - query sinks | 3 |
22
22
| Taint sources - active | 0 |
23
23
| Taint sources - disabled | 0 |
24
24
| Taint sources - sensitive data | 0 |
You can’t perform that action at this time.
0 commit comments