File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
javascript/ql/src/semmle/javascript/security/dataflow Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ module CleartextLogging {
54
54
*/
55
55
private class NameGuidedNonCleartextPassword extends NonCleartextPassword {
56
56
NameGuidedNonCleartextPassword ( ) {
57
- exists ( string name | name .regexpMatch ( notSensitive ( ) ) |
57
+ exists ( string name | name .regexpMatch ( notSensitiveRegexp ( ) ) |
58
58
this .asExpr ( ) .( VarAccess ) .getName ( ) = name
59
59
or
60
60
this .( DataFlow:: PropRead ) .getPropertyName ( ) = name
@@ -94,7 +94,7 @@ module CleartextLogging {
94
94
* A call that might obfuscate a password, for example through hashing.
95
95
*/
96
96
private class ObfuscatorCall extends Barrier , DataFlow:: InvokeNode {
97
- ObfuscatorCall ( ) { getCalleeName ( ) .regexpMatch ( notSensitive ( ) ) }
97
+ ObfuscatorCall ( ) { getCalleeName ( ) .regexpMatch ( notSensitiveRegexp ( ) ) }
98
98
}
99
99
100
100
/**
@@ -113,7 +113,7 @@ module CleartextLogging {
113
113
ObjectPasswordPropertySource ( ) {
114
114
exists ( DataFlow:: PropWrite write |
115
115
name .regexpMatch ( maybePassword ( ) ) and
116
- not name .regexpMatch ( notSensitive ( ) ) and
116
+ not name .regexpMatch ( notSensitiveRegexp ( ) ) and
117
117
write = this .( DataFlow:: SourceNode ) .getAPropertyWrite ( name ) and
118
118
// avoid safe values assigned to presumably unsafe names
119
119
not write .getRhs ( ) instanceof NonCleartextPassword
You can’t perform that action at this time.
0 commit comments