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 {
6565 */
6666 class LoggingCall extends DataFlow:: CallNode {
6767 LoggingCall ( ) {
68- this = any ( ConsoleSource console ) .getAMemberCall ( getAStandardLoggerMethodName ( ) )
69- or
7068 exists ( DataFlow:: SourceNode node , string propName |
7169 any ( ConsoleSource console ) .getAPropertyRead ( ) = node .getAPropertySource ( propName ) and
7270 this = node .getAPropertyRead ( propName ) .getACall ( )
@@ -88,9 +86,7 @@ module LogInjection {
8886 */
8987 class StringReplaceSanitizer extends Sanitizer {
9088 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" ) )
9490 }
9591 }
9692
You can’t perform that action at this time.
0 commit comments