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
HTML Scanner parser regression #2550
Comments
|
I highly recommend you use a real HTML parser like loofah. I will be replacing the html scanner with loofah in Rails 3.2. |
|
That's a good idea, but |
|
Yes. Your choices are:
Writing an HTML parser is a fools errand. I advise against it. Bottom line is that I won't fix this until 3.2, but I will apply patches. |
|
I'd veto #2 in that list too, it's too risky for us to make those changes given the severity of the vulnerability that was fixed. A patch to fix assert_select itself would be worth it, but the html scanner is a big risk to change. |
|
@tenderlove Did you actually put loofah into Rails 3.2? Can this be closed? Doesn't look like it: https://github.com/rails/rails/tree/master/actionpack/lib/action_controller/vendor |
|
Not yet. Maybe we can get some help with that? /cc @flavorjones |
|
Serious work needs to be done to either a) deprecate parts of Rails's sanitization API which are both undocumented and untested (yes, srsly) or b) enhance Loofah to support Rails's sanitzation API. I've got a side branch where some of b) is done, but if we can have an conversation about deprecating some of the API, that might be both easier and better. |
|
I can help to get this done. |
|
@rafaelfranca - Let me ramp back up on what's partially done ... give me a day or two to find the code and reread my notes. |
|
@flavorjones sure! |
|
Guys I'll close this since looks like this won't be fixed in 4.0.x and we have a patch to integrate Loofah in 4.1 |
@tenderlove:
586a944 causes at least two different types of false-positive parse errors that did not exist in 3.0.9:
The text was updated successfully, but these errors were encountered: