File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
java/ql/src/experimental/CWE-532 Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ import PathGraph
17
17
*/
18
18
private string getACredentialRegex ( ) {
19
19
result = "(?i).*pass(wd|word|code|phrase)(?!.*question).*" or
20
- result = "(?i).*( username|url).*"
20
+ result = "(?i)(.* username|url).*"
21
21
}
22
22
23
23
/** The variable or concatenated string with the variable that keeps sensitive information judging by its name * */
@@ -42,7 +42,7 @@ class LoggerType extends RefType {
42
42
predicate isSensitiveLoggingSink ( DataFlow:: Node sink ) {
43
43
exists ( MethodAccess ma |
44
44
ma .getMethod ( ) .getDeclaringType ( ) instanceof LoggerType and
45
- ma .getMethod ( ) .hasName ( "debug" ) and
45
+ ( ma .getMethod ( ) .hasName ( "debug" ) or ma . getMethod ( ) . hasName ( "trace" ) ) and
46
46
sink .asExpr ( ) = ma .getAnArgument ( )
47
47
)
48
48
}
You can’t perform that action at this time.
0 commit comments