Skip to content

Commit 7e3decc

Browse files
committed
[XSS] Fixed anti-HPP coalescing wrongly applied to POST requests causing JSON reduction optimization to choke on big payloads.
1 parent 8f65746 commit 7e3decc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/xss/InjectionChecker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ XSS.InjectionChecker = (async () => {
183183
return this.reduceJSON(s.replace(expr, REPL));
184184
}
185185
} catch (e) {}
186-
let iterations = 0;
186+
187187
for (;;) {
188188
let prev = s;
189189
let start = s.indexOf("{");
@@ -1002,7 +1002,7 @@ XSS.InjectionChecker = (async () => {
10021002
return true;
10031003
}
10041004

1005-
if (s.indexOf("coalesced:") !== 0) {
1005+
if (!isPost && s.indexOf("coalesced:") !== 0) {
10061006
let coalesced = ASPIdiocy.coalesceQuery(s);
10071007
if (coalesced !== s && this.checkRecursive("coalesced:" + coalesced, depth, isPost))
10081008
return true;

0 commit comments

Comments
 (0)