TP-Link ER7206 Omada Gigabit VPN Router uhttpd freeStrategy Command injection Vulnerability
A command injection vulnerability exists in the guest resource functionality of the TP-Link ER7206 router. An authenticated attacker can send a crafted HTTP request to execute arbitrary commands as root.
the Vulnerability Discovery Follow
Originally disclosed on Cisco Talos
A command execution vulnerability exists in the guest resource 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 execution.
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 name of the guest resource is used as an argument to a shell command without any sanitization.
Impact
An authenticated attacker could execute arbitrary commands as root on the router, leading to full compromise.
What the attacker needed
Authenticated access to the router's web interface
The fix
The vendor released a new firmware that fixes the vulnerability.
How it was found
- Log in to the router's web interface.
- Navigate to Authentication -> Authentication Settings -> Guest Resources.
- Add a new guest resource, entering a name that contains shell metacharacters and a command.
- Submit the form, which sends an HTTP POST request to the freeStrategy endpoint.
- The injected command executes on the router with root privileges.
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 add 'guest resources'. When you type a name for a guest resource, the router passes that name to a system command without cleaning it. An attacker who can log in can put special characters in the name to run their own commands on the router, taking full control.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.