-
Notifications
You must be signed in to change notification settings - Fork 340
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
XSS Vulnerability when filtering PLP #1211
Comments
Hello @giraclion Thanks for submitting it, Something is unclear for me, if the problematic file is Do you have the same error on legacy Magento installation without Elasticsuite ? Regards |
Hi @romainruaud I put the example of XSS on your Elastic Suite demo site =) So it is ElasticSuite responsibility. |
Fixed by #1271 Will be part of next 2.6.x and 2.7.x minor releases. We'll also update the demo website once they'll be published. Regards |
In combination with Magento 2 unescaped HTML code in layered navigation state PHTML template, the Smile ElasitSuite feature, where multiple filter attributes are represented as human readable values in the URL - you can perform an XSS attack.
Preconditions
Magento Version: v2.2.5
ElasticSuite Version: 5.5
Environment: Production
Third party modules: None
Steps to reproduce
Expected result
Inside
vendor/magento/module-layered-navigation/view/frontend/templates/layer/state.phtml
PHTML template the filter value and filter name must be escaped:The text was updated successfully, but these errors were encountered: