[XSS] Fixed anti-HPP coalescing wrongly applied to POST requests causing JSON reduction optimization to choke on big payloads.
This commit is contained in:
parent
8f6574661d
commit
7e3decc8f4
|
@ -183,7 +183,7 @@ XSS.InjectionChecker = (async () => {
|
|||
return this.reduceJSON(s.replace(expr, REPL));
|
||||
}
|
||||
} catch (e) {}
|
||||
let iterations = 0;
|
||||
|
||||
for (;;) {
|
||||
let prev = s;
|
||||
let start = s.indexOf("{");
|
||||
|
@ -1002,7 +1002,7 @@ XSS.InjectionChecker = (async () => {
|
|||
return true;
|
||||
}
|
||||
|
||||
if (s.indexOf("coalesced:") !== 0) {
|
||||
if (!isPost && s.indexOf("coalesced:") !== 0) {
|
||||
let coalesced = ASPIdiocy.coalesceQuery(s);
|
||||
if (coalesced !== s && this.checkRecursive("coalesced:" + coalesced, depth, isPost))
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue