Tenda AC6 V5.0 HTTP Header Parsing denial of service vulnerability
The HTTP header parsing function in the Tenda AC6 router does not free previously allocated memory when duplicate headers such as Cookie or Host are received. An unauthenticated attacker can send many requests with duplicate headers to exhaust memory, causing a crash and reboot.
Originally disclosed on Cisco Talos
A denial of service vulnerability exists in the HTTP Header Parsing functionality of Tenda AC6 V5.0 V02.03.01.110. A specially crafted series of HTTP requests can lead to a reboot.
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 code calls strdup on certain header values and assigns the result to a struct member without freeing any previous allocation for that member.
Impact
An unauthenticated attacker on the network can cause the router to reboot, leading to a denial of service.
What the attacker needed
Network access to the router's web interface; no authentication required
How it was found
- Send HTTP requests that include duplicate Cookie, Host, Authorization, or Accept-Language headers.
- Repeat sending such requests to keep allocating memory without freeing the previous values.
- Continue until memory is exhausted and the device crashes and reboots.
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's web server reads HTTP headers and stores some of them in memory. When it sees the same header again, it overwrites the stored value without freeing the old one, so memory is wasted. By sending many requests with repeated headers, an attacker can use up all the router's memory and make it crash and restart.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.