CVE-2023-45385

7.5 HIGH

📋 TL;DR

This directory traversal vulnerability in ProQuality pqprintshippinglabels allows attackers to access files outside the intended directory via the module's functionality. It affects PrestaShop stores using this shipping label printing module before version 4.15.0.

💻 Affected Systems

Products:
  • ProQuality pqprintshippinglabels
Versions: All versions before 4.15.0
Operating Systems: Any OS running PrestaShop
Default Config Vulnerable: ⚠️ Yes
Notes: Requires the pqprintshippinglabels module to be installed and enabled in PrestaShop.

⚠️ 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

Attackers could read sensitive files like configuration files, database credentials, or source code, potentially leading to complete system compromise.

🟠

Likely Case

Unauthorized access to sensitive files containing configuration data, user information, or system details.

🟢

If Mitigated

Limited impact with proper file permissions and web server restrictions in place.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Directory traversal vulnerabilities typically have low exploitation complexity and can be exploited without authentication.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 4.15.0

Vendor Advisory: https://security.friendsofpresta.org/modules/2024/04/29/pqprintshippinglabels.html

Restart Required: No

Instructions:

1. Log into PrestaShop admin panel. 2. Navigate to Modules > Module Manager. 3. Find pqprintshippinglabels module. 4. Update to version 4.15.0 or later. 5. Clear PrestaShop cache.

🔧 Temporary Workarounds

Disable vulnerable module

all

Temporarily disable the pqprintshippinglabels module until patching is possible

Restrict file access via web server

linux

Configure web server to restrict access to sensitive directories

# Apache: Add to .htaccess
<FilesMatch "\.(php|inc|conf|sql)$">
  Order allow,deny
  Deny from all
</FilesMatch>
# Nginx: Add to server block
location ~ /\.(php|inc|conf|sql)$ {
  deny all;
}

🧯 If You Can't Patch

  • Remove the pqprintshippinglabels module completely from the PrestaShop installation
  • Implement strict file permission controls and disable directory listing on the web server

🔍 How to Verify

Check if Vulnerable:

Check the module version in PrestaShop admin panel under Modules > Module Manager > pqprintshippinglabels

Check Version:

No direct command - check via PrestaShop admin interface

Verify Fix Applied:

Confirm module version is 4.15.0 or higher in the module manager

📡 Detection & Monitoring

Log Indicators:

  • Unusual file access patterns in web server logs
  • Requests containing directory traversal sequences (../, ..\) to the pqprintshippinglabels module

Network Indicators:

  • HTTP requests with path traversal payloads targeting the vulnerable module endpoint

SIEM Query:

web_access_logs WHERE url CONTAINS 'pqprintshippinglabels' AND (url CONTAINS '../' OR url CONTAINS '..\')

🔗 References

📤 Share & Export