TP-Link TL-R600VPN HTTP server ping address remote code execution vulnerability
The TP-Link TL-R600VPN HTTP server does not properly check the size of the 'ping_addr' field when performing a ping operation, allowing a stack buffer overflow. An authenticated attacker can send a single HTTP request with a crafted IP address to crash the server or potentially execute remote code.
Originally disclosed on Cisco Talos
An exploitable remote code execution vulnerability exists in the ping and tracert functionality of the TP-Link TL-R600VPN http server. A specially crafted IP address can cause a stack overflow, resulting in remote code 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 ping_addr parameter is copied into a fixed-size stack buffer without any length check, leading to a classic stack buffer overflow.
Impact
An authenticated attacker could crash the HTTP server or potentially achieve remote code execution on the device.
What the attacker needed
Authenticated access to the router's web interface
The fix
The vulnerability was fixed by the vendor after testing a beta patch.
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 report describes a bug in a router's web interface. When you use the ping tool, the router copies the IP address you type into a small memory space without checking its length. If you type a very long address, it spills over into other memory, which can crash the router or let an attacker run their own code.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.