Skip to content

Commit 962cfda

Browse files
committed
[XSS] Fix false positive on Microsoft authentication (thanks GrK and Hanna_Payne for reporting).
1 parent e34405a commit 962cfda

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/xss/InjectionChecker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@ XSS.InjectionChecker = (async () => {
886886
l = l.replace(/[^=]*=\s*/i, '').replace(/[\u0000-\u001f]/g, '');
887887
l = /^["']/.test(l) ? l.replace(/^(['"])([^]*?)\1[^]*/g, '$2') : l.replace(/[\s>][^]*/, '');
888888

889-
if (/^(?:javascript|data):|\[[^]+\]/i.test(l) || /[<'"(]/.test(unescape(l)) && await this.checkUrl(l)) return true;
889+
if (/^(?:javascript|data):/i.test(l) || /[<'"([]/.test(unescape(l)) && await this.checkUrl(l)) return true;
890890
}
891891
}
892892
return this._rxCheck("HTML", s) || this._rxCheck("Globals", s);

0 commit comments

Comments
 (0)