Skip to content
RCE Advisory Advanced CVE-2023-49867

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.

Francesco Benvenuto Follow

Originally disclosed on Cisco Talos

High 7.2 View original

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.

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 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

  1. Load the HTML page that calls the API to bypass CSRF protection.
  2. Send a POST request to /boafrm/formWsc with a long targetAPMac parameter and triggerPIN=1.
  3. 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.

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.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.