Skip to content

Commit 2ec3746

Browse files
author
Sebastian Bauersfeld
committed
Address PR comments.
1 parent f6d42bd commit 2ec3746

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/ql/src/Security/CWE/CWE-113/ResponseSplitting.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class ResponseSplittingConfig extends TaintTracking::Configuration {
3636
ma.getMethod().hasQualifiedName("java.lang", "String", methodName) and
3737
target = ma.getArgument(0) and
3838
(
39-
methodName = "replace" and target.getIntValue() = [10, 13]
39+
methodName = "replace" and target.getIntValue() = [10, 13] // 10 == "\n", 13 == "\r"
4040
or
4141
methodName = "replaceAll" and
4242
target.getStringValue().regexpMatch(".*([\n\r]|\\[\\^[^\\]\r\n]*\\]).*")

0 commit comments

Comments
 (0)