cbcvebase.
CVE-2021-3110
published 2021-01-20

CVE-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
VendorProductVersion rangeFixed in
prestashopprestashop

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)
url/module/productcomments/CommentGrade?id_products[]=1*if(now()=sysdate()%2Csleep(8)%2C0)
commandSELECT 3875 FROM (SELECT(SLEEP(8)))xoOt
command1*if(now()=sysdate(),sleep(8),0)
  • 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.