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 491b67e commit ffd442aCopy full SHA for ffd442a
1 file changed
java/ql/src/experimental/CWE-532/SensitiveInfoLog.ql
@@ -17,7 +17,7 @@ import PathGraph
17
*/
18
private string getACredentialRegex() {
19
result = "(?i).*pass(wd|word|code|phrase)(?!.*question).*" or
20
- result = "(?i).*(username|url).*"
+ result = "(?i)(.*username|url).*"
21
}
22
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
predicate isSensitiveLoggingSink(DataFlow::Node sink) {
43
exists(MethodAccess ma |
44
ma.getMethod().getDeclaringType() instanceof LoggerType and
45
- ma.getMethod().hasName("debug") and
+ (ma.getMethod().hasName("debug") or ma.getMethod().hasName("trace")) and
46
sink.asExpr() = ma.getAnArgument()
47
)
48
0 commit comments