[XSS] Fix false positive on Microsoft authentication (thanks GrK and Hanna_Payne for reporting).
This commit is contained in:
parent
e34405ab2e
commit
962cfda0b7
|
@ -886,7 +886,7 @@ XSS.InjectionChecker = (async () => {
|
||||||
l = l.replace(/[^=]*=\s*/i, '').replace(/[\u0000-\u001f]/g, '');
|
l = l.replace(/[^=]*=\s*/i, '').replace(/[\u0000-\u001f]/g, '');
|
||||||
l = /^["']/.test(l) ? l.replace(/^(['"])([^]*?)\1[^]*/g, '$2') : l.replace(/[\s>][^]*/, '');
|
l = /^["']/.test(l) ? l.replace(/^(['"])([^]*?)\1[^]*/g, '$2') : l.replace(/[\s>][^]*/, '');
|
||||||
|
|
||||||
if (/^(?:javascript|data):|\[[^]+\]/i.test(l) || /[<'"(]/.test(unescape(l)) && await this.checkUrl(l)) return true;
|
if (/^(?:javascript|data):/i.test(l) || /[<'"([]/.test(unescape(l)) && await this.checkUrl(l)) return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return this._rxCheck("HTML", s) || this._rxCheck("Globals", s);
|
return this._rxCheck("HTML", s) || this._rxCheck("Globals", s);
|
||||||
|
|
Loading…
Reference in New Issue