Skip to content

Commit 6c05f7a

Browse files
remove url from sensitive info regex
1 parent 4ad402f commit 6c05f7a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

java/ql/src/Security/CWE/CWE-532/SensitiveInfoLog.ql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @name Insertion of sensitive information into log files
3-
* @description Writing sensitive information to log files can give valuable
4-
* guidance to an attacker or expose sensitive user information.
3+
* @description Writing sensitive information to log files can allow that
4+
* information to be leaked to an attacker more easily.
55
* @kind path-problem
66
* @problem.severity warning
77
* @precision medium
@@ -20,7 +20,7 @@ import PathGraph
2020
/**
2121
* Gets a regular expression for matching names of variables that indicate the value being held may contain sensitive information
2222
*/
23-
private string getACredentialRegex() { result = "(?i)(.*username|url).*" }
23+
private string getACredentialRegex() { result = "(?i).*username.*" }
2424

2525
/** Variable keeps sensitive information judging by its name * */
2626
class CredentialExpr extends Expr {

0 commit comments

Comments
 (0)