File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
java/ql/lib/semmle/code/java/security Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import semmle.code.java.dataflow.TaintTracking
6
6
import semmle.code.java.security.SensitiveActions
7
7
import DataFlow
8
8
9
- /** Variable keeps sensitive information judging by its name * */
9
+ /** A variable that may hold sensitive information, judging by its name. * */
10
10
class CredentialExpr extends Expr {
11
11
CredentialExpr ( ) {
12
12
exists ( Variable v | this = v .getAnAccess ( ) |
@@ -16,14 +16,11 @@ class CredentialExpr extends Expr {
16
16
}
17
17
}
18
18
19
- class SensitiveLoggerConfiguration extends DataFlow:: Configuration {
19
+ /* A data-flow configuration for identifying potentially-sensitive data flowing to a log output. */
20
+ class SensitiveLoggerConfiguration extends TaintTracking:: Configuration {
20
21
SensitiveLoggerConfiguration ( ) { this = "SensitiveLoggerConfiguration" }
21
22
22
23
override predicate isSource ( DataFlow:: Node source ) { source .asExpr ( ) instanceof CredentialExpr }
23
24
24
25
override predicate isSink ( DataFlow:: Node sink ) { sinkNode ( sink , "logging" ) }
25
-
26
- override predicate isAdditionalFlowStep ( DataFlow:: Node node1 , DataFlow:: Node node2 ) {
27
- TaintTracking:: localTaintStep ( node1 , node2 )
28
- }
29
26
}
You can’t perform that action at this time.
0 commit comments