Open oreoshake opened 9 years ago
Hm. Passing strings marked as safe to any method which automatically escapes them will cause them to not be escaped. I suppose Brakeman could look for any use of html_safe
or raw
on obvious user input like params
?
If we can detect anything that's been raw
'd or html_safe
'd, we should always flag that in this case. The data must be escaped for it to be valid.
@ytrezq please keep comments related to the issue or at least this project.
Rails 4, automatic escaping turned on. Same result with
html_safe
brakeman . -d
Output