Realtek rtl819x Jungle SDK boa formWsc stack-based buffer overflow vulnerability
A stack-based buffer overflow in the boa formWsc function of Realtek rtl819x Jungle SDK v3.4.11 allows an attacker to send a crafted HTTP request with an overly long targetAPMac parameter, leading to remote code execution. The vulnerability is triggered when WPS is enabled and the triggerPIN parameter is provided.
Originally disclosed on Cisco Talos
A stack-based buffer overflow vulnerability exists in the boa formWsc functionality of Realtek rtl819x Jungle SDK v3.4.11. A specially crafted series of HTTP requests can lead to remote code execution.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The formWsc function copies hexadecimal characters from the targetAPMac parameter into a fixed-size stack buffer without checking the length, causing a stack-based buffer overflow.
Impact
An attacker could potentially execute arbitrary code remotely, but the exploit requires valid admin credentials and WPS to be enabled.
What the attacker needed
Valid admin credentials; WPS enabled; network access to device
The fix
Realtek has provided updates to their customers, but LevelOne has declined to patch the issues in their software.
How it was found
- Load the HTML page that calls the API to bypass CSRF protection.
- Send a POST request to /boafrm/formWsc with a long targetAPMac parameter and triggerPIN=1.
- The boa process crashes due to the buffer overflow.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
This report describes a bug in the web server of a router. When the router receives a request to change Wi-Fi settings, it copies part of the request into a small fixed-size memory area without checking length. If the request is too long, it overwrites other memory, which can crash the router or let an attacker run their own code.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.