File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
java/ql/src/Security/CWE/CWE-532 Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
/**
2
2
* @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 .
5
5
* @kind path-problem
6
6
* @problem.severity warning
7
7
* @precision medium
@@ -20,7 +20,7 @@ import PathGraph
20
20
/**
21
21
* Gets a regular expression for matching names of variables that indicate the value being held may contain sensitive information
22
22
*/
23
- private string getACredentialRegex ( ) { result = "(?i)( .*username|url) .*" }
23
+ private string getACredentialRegex ( ) { result = "(?i).*username.*" }
24
24
25
25
/** Variable keeps sensitive information judging by its name * */
26
26
class CredentialExpr extends Expr {
You can’t perform that action at this time.
0 commit comments