Skip to content
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

link_to text not being escaped #17

Open
pupeno opened this issue Mar 21, 2010 · 3 comments
Open

link_to text not being escaped #17

pupeno opened this issue Mar 21, 2010 · 3 comments

Comments

@pupeno
Copy link

pupeno commented Mar 21, 2010

The text part of link_to is not being escaped when it's not a safe string. The following snippet triggers a popup:

<%= link_to "<script>alert(\"XSS!!!\")</script>", nil %>

Thanks.

@spastorino
Copy link

This was fixed on github.com/rails/rails_xss but this version will be usable with Rails 2.3.6

@pupeno
Copy link
Author

pupeno commented Mar 22, 2010

Can it be backported? Would it be merged back into NZKoz/rails_xss if I backport it?

@spastorino
Copy link

Yes it will be backported, don't worry we are fixing a couple of thing and we will do that sooner, thank you for helping.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants