Realtek rtl819x Jungle SDK boa formFilter stack-based buffer overflow vulnerability
A stack-based buffer overflow exists in the boa formFilter function of the Realtek rtl819x Jungle SDK, where the ip6addr parameter is copied without length checks into a fixed-size stack buffer. An attacker with admin credentials could send a crafted HTTP request to crash the boa process and potentially achieve arbitrary code execution.
Originally disclosed on Cisco Talos
A stack-based buffer overflow vulnerability exists in the boa formFilter functionality of Realtek rtl819x Jungle SDK v3.4.11. A specially crafted series of HTTP 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 formFilter function uses strcpy to copy the ip6addr request parameter into a fixed-size stack buffer without any bounds checking.
Impact
An attacker could exploit this vulnerability to achieve arbitrary code execution, though the proof of concept only demonstrates a crash.
What the attacker needed
Admin credentials (default admin:admin used)
The fix
Realtek has provided updated software 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 satisfy CSRF protection.
- Send a POST request to /boafrm/formFilter with addFilterIp set and an overly long ip6addr value.
- Observe that the boa process crashes.
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.
A buffer overflow happens when a program copies more data into a fixed-size memory space than it can hold, causing the extra data to spill over and corrupt nearby memory. Here, the router's web server takes a user-supplied value and copies it without checking its length, so a very long value can overwrite important data and crash the server 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.