You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Function isValidXss works incorrectly.
To Reproduce
// I just copy & paste the function declarationfunctionisValidXss(requestURL){varxssRegex=/(\b)(on\w+)=|javascript|(<\s*)(\/*)script/gi;returnxssRegex.test(requestURL);};// Calling this will result in `true`isValidXss('https://www.somedomain.com?only=true')
Expected behavior
I expect the previous function call to result in false. I see no XSS attack in there.
Environment:
Axios Version 0.19.1
The text was updated successfully, but these errors were encountered:
ZeroCho
added a commit
to ZeroCho/axios
that referenced
this issue
Jan 16, 2020
Describe the bug
Function
isValidXss
works incorrectly.To Reproduce
Expected behavior
I expect the previous function call to result in false. I see no XSS attack in there.
Environment:
The text was updated successfully, but these errors were encountered: