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
{{ message }}
This repository has been archived by the owner on Jul 20, 2018. It is now read-only.
Note that comments in the CSS style can break normal detection - so we need to strip comments from the source first. Also, the word javascript can be broken up with slashes in some cases, which can defeat basic scanning.
Browser support for some of these is limited, but it's still worth catching.
XSS can come from CSS:
In external and inline CSS, we should block:
<link>
withhref
set to JSexpression
andbehavior
@import
set to JSNote that comments in the CSS style can break normal detection - so we need to strip comments from the source first. Also, the word
javascript
can be broken up with slashes in some cases, which can defeat basic scanning.Browser support for some of these is limited, but it's still worth catching.
https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet
The text was updated successfully, but these errors were encountered: