CVE-2021-3110
published 2021-01-20CVE-2021-3110: The store system in PrestaShop 1.7.7.0 allows time-based boolean SQL injection via the module=productcomments controller=CommentGrade id_products[] parameter.
PriorityP272critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EXPLOIT
EPSS
20.70%
97.2th percentile
The store system in PrestaShop 1.7.7.0 allows time-based boolean SQL injection via the module=productcomments controller=CommentGrade id_products[] parameter.
Affected
1 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| prestashop | prestashop | — | — |
Detection & IOCsextracted from sources · hover to see the quote
url/index.php?fc=module&module=productcomments&controller=CommentGrade&id_products[]=1%20AND%20(SELECT%203875%20FROM%20(SELECT(SLEEP(8)))xoOt)↗
- →Detect time-based blind SQLi attempts targeting PrestaShop productcomments module via the id_products[] parameter with SLEEP payloads; flag requests where response duration >= 8 seconds. ↗
- →Monitor HTTP GET requests to /index.php with query parameters fc=module, module=productcomments, controller=CommentGrade, and id_products[] containing SQL injection payloads (e.g., SLEEP, IF, SYSDATE). ↗
- →Also monitor the alternate route /module/productcomments/CommentGrade with id_products[] parameter for time-based SQLi payloads using IF(NOW()=SYSDATE(),SLEEP(N),0) pattern. ↗
- →A successful exploitation response body contains the string 'average_grade'; correlate with slow response times to confirm exploitation. ↗
- →Use Shodan query to identify exposed PrestaShop instances for proactive asset identification. ↗
- ·The vulnerability is specific to PrestaShop version 1.7.7.0; other versions are not confirmed affected by this CVE. ↗
- ·Detection probes use a SLEEP(8) threshold; adjust timeout and duration thresholds to match your environment's baseline latency to avoid false positives or missed detections. ↗
- ·The exploit requires no authentication (PR:N, UI:N), meaning any unauthenticated remote attacker can trigger the injection via the productcomments module endpoint. ↗
CVSS provenance
nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
CVEs like this are exactly what “Exploited This Week” covers.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
No detection rules found.
Nuclei
PrestaShop 1.7.7.0 - SQL Injection
nuclei·CVSS 9.8
CVE-2021-3110 [CRITICAL] PrestaShop 1.7.7.0 - SQL Injection
PrestaShop 1.7.7.0 - SQL Injection
PrestaShop 1.7.7.0 contains a SQL injection vulnerability via the store system. It allows time-based boolean SQL injection via the module=productcomments controller=CommentGrade id_products[] parameter. An attacker can possibly obtain sensitive information, modify data, and/or execute unauthorized administrative operations in the context of the affected site.
Template:
id: CVE-2021-3110
info:
name: PrestaShop 1.7.7.0 - SQL Injection
author: Jaimin Gondaliya,mastercho
severity: critical
description: |
PrestaShop 1.7.7.0 contains a SQL injection vulnerability via the store system. It allows time-based boolean SQL injection via the module=productcomments controller=CommentGrade id_products[] parameter. An attacker can possibly obtain sensitive informatio
No writeups or analysis indexed.
2021-01-20
Published