Realtek rtl819x Jungle SDK boa setRepeaterSsid stack-based buffer overflow vulnerability
A stack-based buffer overflow exists in the setRepeaterSsid function of the boa web server used in Realtek rtl819x Jungle SDK. An attacker can send a crafted HTTP request with an overly long repeaterSSID parameter to overwrite the stack and potentially execute arbitrary code.
Originally disclosed on Cisco Talos
A stack-based buffer overflow vulnerability exists in the boa setRepeaterSsid functionality of Realtek rtl819x Jungle SDK v3.4.11. A specially crafted series of network requests can lead to arbitrary 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 setRepeaterSsid function uses sprintf to copy the user-controlled repeaterSSID parameter into a 33-byte stack buffer without any length validation.
Impact
An attacker could exploit this vulnerability to achieve arbitrary code execution.
What the attacker needed
Admin credentials (default admin:admin used); network access to the device's web interface
The fix
Realtek has provided updates software to their customers, but LevelOne has declined to patch the issues in their software.
How it was found
- Load the wlbasic.htm page to satisfy CSRF protection.
- Send a POST request to /boafrm/formWlanSetup with repeaterEnabled0=ON and an overly long repeaterSSID0 value.
- The boa process crashes due to the stack 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 is a memory corruption bug in a router's web server. The server copies a user-supplied string into a fixed-size buffer without checking its length, so a long string spills over into adjacent memory and can crash the program or let an attacker run their own code.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.