CVE-2024-34989

9.8 CRITICAL

📋 TL;DR

This SQL injection vulnerability in the RSI PDF/HTML catalog evolution module for PrestaShop allows unauthenticated attackers to execute arbitrary SQL commands. Attackers can potentially access, modify, or delete database content, affecting all PrestaShop installations using vulnerable versions of this module.

💻 Affected Systems

Products:
  • RSI PDF/HTML catalog evolution (prestapdf) module for PrestaShop
Versions: <= 7.0.0
Operating Systems: All operating systems running PrestaShop
Default Config Vulnerable: ⚠️ Yes
Notes: Affects PrestaShop installations with the prestapdf module enabled, regardless of underlying OS or database.

⚠️ Manual Verification Required

This CVE does not have specific version information in our database, so automatic vulnerability detection cannot determine if your system is affected.

Why? The CVE database entry doesn't specify which versions are vulnerable (no version ranges provided by the vendor/NVD).

🔒 Custom verification scripts are available for registered users. Sign up free to download automated test scripts.

Recommended Actions:
  1. Review the CVE details at NVD
  2. Check vendor security advisories for your specific version
  3. Test if the vulnerability is exploitable in your environment
  4. Consider updating to the latest version as a precaution

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise leading to data theft, data destruction, or full system takeover via SQL injection to RCE techniques.

🟠

Likely Case

Unauthorized data access including customer information, order details, and administrative credentials stored in the database.

🟢

If Mitigated

Limited impact with proper input validation and parameterized queries preventing SQL injection.

🌐 Internet-Facing: HIGH - The vulnerability is exploitable by unauthenticated guests via public-facing web interface.
🏢 Internal Only: LOW - The module is typically deployed in internet-facing e-commerce environments.

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

SQL injection via PrestaPDFProductListModuleFrontController::queryDb() requires minimal technical skill to exploit.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: > 7.0.0

Vendor Advisory: https://security.friendsofpresta.org/modules/2024/06/20/prestapdf.html

Restart Required: No

Instructions:

1. Update the prestapdf module to latest version via PrestaShop admin panel. 2. Verify module version is > 7.0.0. 3. Clear PrestaShop cache.

🔧 Temporary Workarounds

Disable vulnerable module

all

Temporarily disable the prestapdf module until patching is possible.

Navigate to PrestaShop admin > Modules > Module Manager > Disable 'RSI PDF/HTML catalog evolution'

WAF rule implementation

all

Deploy web application firewall rules to block SQL injection patterns targeting the vulnerable endpoint.

Add WAF rule: Detect and block SQL injection patterns in POST/GET parameters to prestapdf controller

🧯 If You Can't Patch

  • Implement strict input validation and parameterized queries in the queryDb() method
  • Restrict module access via .htaccess or web server configuration to trusted IPs only

🔍 How to Verify

Check if Vulnerable:

Check module version in PrestaShop admin panel under Modules > Module Manager > RSI PDF/HTML catalog evolution.

Check Version:

SELECT version FROM ps_module WHERE name = 'prestapdf';

Verify Fix Applied:

Confirm module version is > 7.0.0 and test SQL injection attempts are blocked.

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL queries in database logs
  • Multiple failed login attempts following SQL errors
  • HTTP requests containing SQL keywords to prestapdf endpoints

Network Indicators:

  • SQL error messages in HTTP responses
  • Unusual database connection patterns from web server

SIEM Query:

source="web_logs" AND (uri="*prestapdf*" AND (query="*SELECT*" OR query="*UNION*" OR query="*OR 1=1*"))

🔗 References

📤 Share & Export