prestashop/productcomments is vulnerable to SQL Injection
72
High Risk
The ProductCommentCriterionRepository builds the SQL INSERT statements that link review criteria to categories and products by concatenating the submitted category and product IDs directly into the query string. A back-office employee with access to the product comments module configuration page can submit a crafted category or product ID that breaks out of the query and injects arbitrary SQL. Successful injection lets that user read, modify, or destroy arbitrary data in the shop database. The fix casts the IDs to integers and binds them as parameters instead of concatenating them into the query.
You are affected if you are using a version that falls within the vulnerable range and you grant back-office employees access to the product comments module's configuration page.
prestashop/productcomments is vulnerable to SQL Injection in versions 6.0.0 - 8.0.0.
Upgrade the prestashop/productcomments library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.