CVE-2024-33959

9.8 CRITICAL

📋 TL;DR

This SQL injection vulnerability in PayPal, Credit Card and Debit Card Payment version 1.0 allows attackers to execute arbitrary SQL queries through the 'categ' parameter in '/admin/mod_reports/printreport.php'. Successful exploitation could lead to complete database compromise, affecting all users of this payment processing software.

💻 Affected Systems

Products:
  • PayPal, Credit Card and Debit Card Payment
Versions: 1.0
Operating Systems: Any OS running the vulnerable software
Default Config Vulnerable: ⚠️ Yes
Notes: Specifically affects the printreport.php file in the admin module. Requires admin access path but may be exploitable if admin interface is accessible.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise including sensitive payment data (credit card numbers, PayPal credentials), financial fraud, and potential lateral movement to other systems.

🟠

Likely Case

Data exfiltration of payment information, user credentials, and transaction records leading to financial loss and privacy violations.

🟢

If Mitigated

Limited data exposure if proper input validation and database permissions are implemented.

🌐 Internet-Facing: HIGH - The vulnerable endpoint appears to be accessible via web interface, making it directly exploitable from the internet.
🏢 Internal Only: MEDIUM - Even if not internet-facing, internal attackers or compromised systems could exploit this vulnerability.

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: LIKELY
Unauthenticated Exploit: ✅ No
Complexity: LOW

SQL injection vulnerabilities are well-understood and easily weaponized. The reference indicates this is part of multiple vulnerabilities in Janobe products.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Unknown

Vendor Advisory: https://www.incibe.es/en/incibe-cert/notices/aviso/multiple-vulnerabilities-janobe-products

Restart Required: No

Instructions:

1. Check vendor for updated version. 2. If no patch available, implement workarounds immediately. 3. Consider replacing with alternative payment processing software.

🔧 Temporary Workarounds

Input Validation and Sanitization

all

Implement strict input validation for the 'categ' parameter to only accept expected values

Modify printreport.php to validate categ parameter: if(!is_numeric($_GET['categ'])) { die('Invalid input'); }

Web Application Firewall Rules

all

Block SQL injection patterns targeting the vulnerable endpoint

WAF rule: deny requests to /admin/mod_reports/printreport.php containing SQL keywords in parameters

🧯 If You Can't Patch

  • Restrict access to /admin/mod_reports/printreport.php using IP whitelisting or authentication
  • Implement database-level protections: use least privilege accounts, enable query logging

🔍 How to Verify

Check if Vulnerable:

Test the endpoint with SQL injection payloads: /admin/mod_reports/printreport.php?categ=1' OR '1'='1

Check Version:

Check software version in admin panel or configuration files

Verify Fix Applied:

Attempt SQL injection tests and verify they are blocked or sanitized

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL queries in database logs
  • Multiple failed login attempts to admin interface
  • Requests to printreport.php with SQL keywords

Network Indicators:

  • Unusual outbound database connections
  • Large data transfers from web server

SIEM Query:

source="web_logs" AND uri="/admin/mod_reports/printreport.php" AND (param="categ" AND value CONTAINS "' OR ")

🔗 References

📤 Share & Export