Skip to content
Memory corruption Advisory Advanced CVE-2023-50239CVE-2023-50240

Realtek rtl819x Jungle SDK boa set_RadvdInterfaceParam stack-based buffer overflow vulnerabilities

Two stack-based buffer overflows exist in the boa web server's formRadvd handler of the Realtek rtl819x Jungle SDK, because the interfacename and AdvDefaultPreference request parameters are copied into fixed-size struct members without length checks. An authenticated attacker could send crafted requests to crash the boa process and potentially achieve arbitrary code execution.

Francesco Benvenuto Follow

Originally disclosed on Cisco Talos

High 7.2 View original

Two stack-based buffer overflow vulnerabilities exist in the boa setRadvdInterfaceParam 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

Root cause

The set_RadvdInterfaceParam function copies the interfacename and AdvDefaultPreference request parameters into fixed-size struct members using strcpy without any length validation.

Impact

An attacker could exploit this to achieve arbitrary code execution, though the proof of concept only demonstrates a crash of the boa process.

What the attacker needed

Admin credentials (default admin:admin used); load radvd.htm before the API call; network access to the device

The fix

Realtek provided updated software to its customers, but LevelOne declined to patch the issues in its router software.

How it was found

  1. Load the radvd.htm page first so the CSRF protection allows the API call.
  2. Send a POST request to the formRadvd API with submit=Save and enable_radvd=1.
  3. Include an oversized interfacename or AdvDefaultPreference parameter value.
  4. The boa process crashes as a result.

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 space than it can hold, so the extra data spills over into nearby memory. Here the router's web server takes a value from a form and copies it into a small slot without checking its length, which can crash the server and, in theory, let an attacker run their own code. The attacker needs to be logged in as admin first.

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.