CVE-2024-33980

7.1 HIGH

📋 TL;DR

This is a Cross-Site Scripting (XSS) vulnerability in a payment module that allows attackers to steal session cookies via a malicious URL. It affects users of the vulnerable payment module version 1.0, potentially compromising their PayPal, credit card, and debit card payment sessions.

💻 Affected Systems

Products:
  • PayPal, Credit Card and Debit Card Payment module
Versions: 1.0
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Vulnerability exists in the printreport.php file within the admin/mod_reports directory.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Attacker steals admin session cookies, gains full administrative access to the payment system, and can manipulate transactions or steal sensitive payment data.

🟠

Likely Case

Attacker steals user session cookies to hijack payment sessions, potentially making unauthorized transactions or accessing payment information.

🟢

If Mitigated

With proper input validation and output encoding, the attack would fail, and session cookies would remain protected with HttpOnly flags.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

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

Exploitation requires the attacker to craft a malicious URL with the 'start' parameter and trick a victim into clicking it.

🛠️ 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:

Check the vendor advisory for updates. If no patch is available, apply workarounds immediately.

🔧 Temporary Workarounds

Input Validation and Sanitization

all

Implement strict input validation for the 'start' parameter in printreport.php to reject malicious scripts.

Modify /admin/mod_reports/printreport.php to sanitize the 'start' parameter using htmlspecialchars() or similar functions.

Disable Vulnerable Endpoint

all

Temporarily disable or restrict access to the vulnerable printreport.php file.

Rename /admin/mod_reports/printreport.php to printreport.php.disabled or move it to a secure location.

🧯 If You Can't Patch

  • Implement a Web Application Firewall (WAF) with XSS protection rules to block malicious requests.
  • Restrict access to the admin/mod_reports directory to trusted IP addresses only.

🔍 How to Verify

Check if Vulnerable:

Test the 'start' parameter in /admin/mod_reports/printreport.php with a payload like <script>alert('XSS')</script> and check if it executes.

Check Version:

Check the module version in the software's admin panel or configuration files.

Verify Fix Applied:

After applying fixes, retest with the same payload to ensure it no longer executes and is properly sanitized.

📡 Detection & Monitoring

Log Indicators:

  • Unusual requests to /admin/mod_reports/printreport.php with script tags or encoded payloads in the 'start' parameter.

Network Indicators:

  • HTTP requests containing malicious scripts in query parameters directed at the vulnerable endpoint.

SIEM Query:

source="web_logs" AND uri="/admin/mod_reports/printreport.php" AND query="*start=*<script>*"

🔗 References

📤 Share & Export