Skip to content
CSRF Advisory Intermediate CVE-2023-47677

Realtek rtl819x Jungle SDK boa CSRF protection cross-site request forgery (CSRF) vulnerability

The boa web server in the Realtek rtl819x Jungle SDK only enables an API endpoint after an HTML page containing a form for that endpoint has been loaded, which does not actually stop cross-site request forgery. An attacker could make a victim's browser load the enabling page and then submit a request to a privileged endpoint, such as one that reboots the router.

Francesco Benvenuto Follow

Originally disclosed on Cisco Talos

High 8.8 View original

A cross-site request forgery (csrf) vulnerability exists in the boa CSRF protection functionality of Realtek rtl819x Jungle SDK v3.4.11. A specially crafted network request can lead to CSRF.

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

Likely the CSRF protection only checks that the enabling HTML page was loaded rather than using an unguessable per-request token, so the check can be satisfied by the attacker's page.

Impact

An attacker could cause a victim's router to reboot, and the same bypass could likely be used against other privileged endpoints; the text notes most browsers would include the Authorization header.

What the attacker needed

Victim visits attacker page; victim's browser can reach the router

The fix

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

How it was found

  1. The victim visits an attacker-controlled HTML page while their browser can reach the router.
  2. The page loads the router's syscmd.htm page in an iframe, which enables the formSysCmd endpoint.
  3. After a short delay the page submits a form to the formSysCmd endpoint with a reboot command.
  4. The router processes the request and reboots.

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.

Cross-site request forgery is when a malicious web page makes your browser send a request to another site you are logged into, without you meaning to. Here the router tried to protect itself by only allowing certain actions after a page with a matching form was opened, but an attacker can simply open that page first and then send the action. The result is that a victim who visits a crafted page could have their router rebooted.

What is CSRF?

Another site makes a signed-in user's browser perform an action they did not intend.

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.

Cross-site request forgery (CSRF)

The lesson behind this report.

Another site makes a signed-in user's browser perform an action they did not intend.