-
Notifications
You must be signed in to change notification settings - Fork 146
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
Missing forward slash escape value in hamlcoffee.js.coffee.erb #75
Comments
Wow, thanks for the link. The reason for the omission is that I didn't know about it, duh! It would be great to have it added. |
Nice! |
I don’t get why this is necessary. HAML doesn’t escape the slash either.
Well, that’s right, but a space for example also ends a broken HTML entity reference. “" ” works in most browsers, the same goes for numerical character references. So why isn’t space escaped? |
Agree, the quote
is nonsense and the OWASP minimal encoding rules lists only Just tested Backbone and it also escapes the forward slash: > new Backbone.Model({ test: 'hello/' }).escape('test')
"hello/" |
I noticed in vendor/assets/javascripts/hamlcoffee.js.coffee.erb
That there is no escape of forward slash. OWASP suggests you escape it per https://www.owasp.org/index.php/XSS_(Cross_Site_Scripting)_Prevention_Cheat_Sheet (see RULE#1).
Is there a reason for this omission? If not, should it be added?
The text was updated successfully, but these errors were encountered: