We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9cc3c6 commit 632cb8bCopy full SHA for 632cb8b
java/ql/src/experimental/CWE-532/SensitiveInfoLog.ql
@@ -20,14 +20,10 @@ private string getACredentialRegex() {
20
result = "(?i)(.*username|url).*"
21
}
22
23
-/** The variable or concatenated string with the variable that keeps sensitive information judging by its name * */
+/** Variable keeps sensitive information judging by its name * */
24
class CredentialExpr extends Expr {
25
CredentialExpr() {
26
- exists(Variable v |
27
- (this.(AddExpr).getAnOperand() = v.getAnAccess() or this = v.getAnAccess())
28
- |
29
- v.getName().regexpMatch(getACredentialRegex())
30
- )
+ exists(Variable v | this = v.getAnAccess() | v.getName().regexpMatch(getACredentialRegex()))
31
32
33
0 commit comments