TP-Link ER7206 Omada Gigabit VPN Router uhttpd PPTP client Command injection Vulnerability
A post-authentication command injection vulnerability exists in the PPTP client functionality of the TP-Link ER7206 router. An attacker with administrative access can inject shell commands via the tunnel name parameter, leading to arbitrary command execution and an unrestricted shell.
the Vulnerability Discovery Follow
Originally disclosed on Cisco Talos
A post-authentication command injection vulnerability exists in the PPTP client functionality of Tp-Link ER7206 Omada Gigabit VPN Router 1.3.0 build 20230322 Rel.70591. A specially crafted HTTP request can lead to arbitrary command injection.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The tunnel name parameter is used as an argument to a shell command without any sanitization.
Impact
An attacker with administrative access could execute arbitrary commands and gain an unrestricted shell on the device.
What the attacker needed
Administrative access to the router
The fix
The vendor released a new firmware that fixes the vulnerability.
How it was found
- Log in to the router's web interface as an administrator.
- Navigate to VPN -> PPTP -> PPTP Client.
- Add a new PPTP client and include shell metacharacters in the tunnel name.
- Submit the form, which sends an HTTP POST request to the /cgi-bin/luci/;stok=.../admin/pptp_client endpoint.
- The injected commands are executed by the router, allowing the attacker to gain an unrestricted shell.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
This router has a web interface where you can set up VPN connections. When you add a PPTP client, the router takes the name you give it and runs a system command with that name. Because it doesn't check the name for special characters, someone who can log in as admin can put extra commands in the name and make the router run them, giving them full control of the device.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.