[XSS] Skip naps when InjectionChecker runs in its own worker.
This commit is contained in:
parent
17f3bfd14b
commit
445d7ff1af
|
@ -31,7 +31,7 @@ class Timing {
|
||||||
throw new TimingException(`Timing: exceeded ${this.longTime}ms timeout`);
|
throw new TimingException(`Timing: exceeded ${this.longTime}ms timeout`);
|
||||||
}
|
}
|
||||||
this.calls = 0;
|
this.calls = 0;
|
||||||
await Timing.sleep(this.pauseTime);
|
if (this.pauseTime > 0) await Timing.sleep(this.pauseTime);
|
||||||
this.lastPause = Date.now();
|
this.lastPause = Date.now();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,7 +36,7 @@ include("InjectionChecker.js");
|
||||||
|
|
||||||
let {timing} = ic;
|
let {timing} = ic;
|
||||||
timingsMap.set(request.requestId, timing);
|
timingsMap.set(request.requestId, timing);
|
||||||
timing.fatalTimeout = true;
|
timing.pauseTime = 0; // skip the default 20ms nap
|
||||||
|
|
||||||
let postInjection = xssReq.isPost &&
|
let postInjection = xssReq.isPost &&
|
||||||
request.requestBody && request.requestBody.formData &&
|
request.requestBody && request.requestBody.formData &&
|
||||||
|
|
Loading…
Reference in New Issue