Skip to content
Memory corruption Advisory Advanced CVE-2023-47856

Realtek rtl819x Jungle SDK boa set_RadvdPrefixParam stack-based buffer overflow vulnerability

A stack-based buffer overflow exists in the boa web server's set_RadvdPrefixParam function of the Realtek rtl819x Jungle SDK, where the if6to4_<j> request parameter is copied without size checks into a fixed-size stack buffer. An attacker with admin credentials can send a crafted request to crash the boa process and potentially achieve remote code execution.

Francesco Benvenuto Follow

Originally disclosed on Cisco Talos

High 7.2 View original

A stack-based buffer overflow vulnerability exists in the boa setRadvdPrefixParam functionality of Realtek rtl819x Jungle SDK v3.4.11. A specially crafted series of network requests can lead to remote code execution.

Francesco Benvenuto, on Cisco Talos

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

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 in PoC); access to the device's web interface

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

  1. Load the radvd.htm page to satisfy the CSRF protection mechanism.
  2. Send a POST request to /boafrm/formRadvd with submit=Save, enable_radvd=1, and an oversized if6to4_0 parameter.
  3. 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.

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 into a small stack buffer without checking its length, so a long value overwrites the stack and can crash the server or let an attacker run their own code. The attacker needs to be logged in as admin to reach the vulnerable page.

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.

More by Francesco Benvenuto

View all

152 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.