File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
java/ql/src/experimental/CWE-532 Expand file tree Collapse file tree 1 file changed +2
-1
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).*challenge|pass(wd|word|code|phrase)(?!.*question).*" or
20
- result = "(?i)(.*username|url).*"
20
+ result = "(?i)(.*username|.*secret| url).*"
21
21
}
22
22
23
23
/** Variable keeps sensitive information judging by its name * */
@@ -31,6 +31,7 @@ class CredentialExpr extends Expr {
31
31
class LoggerType extends RefType {
32
32
LoggerType ( ) {
33
33
this .hasQualifiedName ( "org.apache.log4j" , "Category" ) or //Log4J
34
+ this .hasQualifiedName ( "org.apache.logging.log4j" , "Logger" ) or //Log4J 2
34
35
this .hasQualifiedName ( "org.slf4j" , "Logger" ) or //SLF4j and Gradle Logging
35
36
this .hasQualifiedName ( "org.jboss.logging" , "BasicLogger" ) //JBoss Logging
36
37
}
You can’t perform that action at this time.
0 commit comments