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 f6d42bd commit 2ec3746Copy full SHA for 2ec3746
java/ql/src/Security/CWE/CWE-113/ResponseSplitting.ql
@@ -36,7 +36,7 @@ class ResponseSplittingConfig extends TaintTracking::Configuration {
36
ma.getMethod().hasQualifiedName("java.lang", "String", methodName) and
37
target = ma.getArgument(0) and
38
(
39
- methodName = "replace" and target.getIntValue() = [10, 13]
+ methodName = "replace" and target.getIntValue() = [10, 13] // 10 == "\n", 13 == "\r"
40
or
41
methodName = "replaceAll" and
42
target.getStringValue().regexpMatch(".*([\n\r]|\\[\\^[^\\]\r\n]*\\]).*")
0 commit comments