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

Fixes #16020 - Prevent reflective XSS on form validation #3712

Closed
wants to merge 1 commit into from

Conversation

tbrisker
Copy link
Member

@tbrisker tbrisker commented Aug 9, 2016

Error messages for various form fields were not properly escaped to
prevent HTML from being insert into them. This caused a possible
reflective XSS in smart class parameter/varaible default value
validations.

Error messages for various form fields were not properly escaped to
prevent HTML from being insert into them. This caused a possible
reflective XSS in smart class parameter/varaible default value
validations.
@domcleal
Copy link
Contributor

domcleal commented Aug 9, 2016

To the reviewer: please note that this was reported to foreman-security, though it appears to have no noticeable security impact, as the XSS is not stored. For this reason, no CVE will be requested, it's just a preventative measure.

@dLobatog
Copy link
Member

I looked for instances of help_inline and validations where we would call it with an error with HTML in it, didn't find any. It seems like the .html_safe call has been there for ages (0fe08ca)

We call .html_safe on the result of help_inline on add_help_to_label too but I don't think it's a problem now. Merging

@dLobatog
Copy link
Member

Merged as cf0ce6d, thanks @tbrisker!

@dLobatog dLobatog closed this Aug 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants