-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update: Cross Site Scripting Prevention Cheat Sheet #1480
Comments
I think this is a fair concern. The src, href and other attributes that take a URL can be dangerous. DomPurify filters out the URL for these attributes to make sure they are only safe protocols. Would you care to give us a PR clarifying this? |
To be honest I don't know how to better explain the section. Maybe just removing the sentence |
Anyway, I've just create a pull request with my proposal #1484 |
I made a small request for a change in your PR proposal, but otherwise it looks good |
* Update Cross_Site_Scripting_Prevention_Cheat_Sheet.md #1480 * Update Cross_Site_Scripting_Prevention_Cheat_Sheet.md
What is missing or needs to be updated?
Under the section Safe Sinks it is stated:
Opening the link, a broad list of attributes is presented and between them there are also the
src
andhref
attributes which are famous for accepting thejavascript:
directive which allows to execute any arbitrary JS code.How should this be resolved?
I think more info should be provided. Maybe is it just the link wrong? Or did I misunderstand anything?
The text was updated successfully, but these errors were encountered: