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 ad12f38 commit 822d452Copy full SHA for 822d452
javascript/ql/src/semmle/javascript/security/dataflow/LogInjection.qll
@@ -67,4 +67,11 @@ module LogInjection {
67
class HtmlSanitizer extends Sanitizer {
68
HtmlSanitizer() { this instanceof HtmlSanitizerCall }
69
}
70
+
71
+ /**
72
+ * A call to `JSON.stringify` or similar, seen as sanitizing log output.
73
+ */
74
+ class JsonStringifySanitizer extends Sanitizer {
75
+ JsonStringifySanitizer() { this = any(JsonStringifyCall c).getOutput() }
76
+ }
77
0 commit comments