-
-
Notifications
You must be signed in to change notification settings - Fork 399
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
Script tags not stripped from feed titles on /feeds endpoint #490
Comments
Thanks for the report. Here is the relevant section of the code: https://github.com/swanson/stringer/blob/master/app/repositories/story_repository.rb#L106-L117 We are using the loofah gem for sanitization: https://github.com/flavorjones/loofah but it sounds like this case is not being caught. Not sure if there is a problem with the library or our usage of it. We should be able to add a failing test for this scenario as well: https://github.com/swanson/stringer/blob/master/spec/repositories/story_repository_spec.rb |
Attempt to fix a recently reported XSS vulnerability. We reuse the same sanitization strategy as for _story_ titles. Fixes #490.
Attempt to fix a recently reported XSS vulnerability. We reuse the same sanitization strategy as for _story_ titles. Fixes #490.
Thanks Victor! |
I believe I have discovered an XSS issue in Stringer (the most recent version pushed to Docker Hub).
Here's a POC for it:
I have created an example RSS feed that demonstrates this at https://gist.github.com/rwhogg/1a7b9e9f82db6fdfb266af2cd09cfb9a
The text was updated successfully, but these errors were encountered: