File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
javascript/ql/src/experimental/Security/CWE-117 Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -65,8 +65,6 @@ module LogInjection {
65
65
*/
66
66
class LoggingCall extends DataFlow:: CallNode {
67
67
LoggingCall ( ) {
68
- this = any ( ConsoleSource console ) .getAMemberCall ( getAStandardLoggerMethodName ( ) )
69
- or
70
68
exists ( DataFlow:: SourceNode node , string propName |
71
69
any ( ConsoleSource console ) .getAPropertyRead ( ) = node .getAPropertySource ( propName ) and
72
70
this = node .getAPropertyRead ( propName ) .getACall ( )
@@ -88,9 +86,7 @@ module LogInjection {
88
86
*/
89
87
class StringReplaceSanitizer extends Sanitizer {
90
88
StringReplaceSanitizer ( ) {
91
- exists ( string s |
92
- this .( StringReplaceCall ) .replaces ( s , "" ) and s .regexpMatch ( "\\n" )
93
- )
89
+ exists ( string s | this .( StringReplaceCall ) .replaces ( s , "" ) and s .regexpMatch ( "\\n" ) )
94
90
}
95
91
}
96
92
You can’t perform that action at this time.
0 commit comments