TP-Link ER7206 Omada Gigabit VPN Router uhttpd web filtering Command injection Vulnerability
A command injection vulnerability exists in the web filtering functionality of the TP-Link ER7206 router. An authenticated attacker can send a crafted HTTP request with shell metacharacters in the 'time' parameter to execute arbitrary commands as root.
the Vulnerability Discovery Follow
Originally disclosed on Cisco Talos
A post authentication command execution vulnerability exists in the web filtering 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 'time' parameter of a web filtering policy is passed to a shell command without sanitisation, allowing shell metacharacter injection.
Impact
An authenticated attacker could execute arbitrary commands as root, gaining unrestricted shell access to the device.
What the attacker needed
Authenticated access to the web interface
The fix
The vendor released a firmware update to address the vulnerability.
How it was found
- Log in to the router's web interface.
- Navigate to Behavior Control -> Web Filtering -> Web Group Filtering.
- Add a new web filtering policy and intercept the HTTP POST request.
- Modify the 'time' parameter to include shell metacharacters and send the request.
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 for configuration. When adding a web filtering rule, the router runs a system command using a value from the request without cleaning it. An attacker who can log in can insert extra commands into that value, and the router will run them with 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.