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

Netgear RAX30 JSON Parsing getblockschedule() stack-based buffer overflow vulnerability

A stack-based buffer overflow exists in the getblockschedule() function of Netgear RAX30 routers because user-controlled JSON data is copied into a fixed-size buffer without length checking. An authenticated attacker could send a crafted HTTP request to crash the device and potentially execute code.

Michael Gentile Follow

Originally disclosed on Cisco Talos

High 7.2 View original

A stack-based buffer overflow vulnerability exists in the JSON Parsing getblockschedule() functionality of Netgear RAX30 1.0.11.96 and 1.0.7.78. A specially crafted HTTP request can lead to code execution.

Michael Gentile, 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 getblockschedule() function uses an unbounded string copy (cmsUtl_strcpy) to copy user-supplied JSON data into a fixed-size stack buffer without validating the length.

What the attacker needed

Authenticated access to the router's web interface

The fix

The vendor released a patch on 2024-03-06.

How it was found

  1. Send an authenticated HTTP POST request to the router's CGI endpoint with a JSON body.
  2. Include a 'function' field set to 'getblockschedule' and a 'data' object without a 'message' key.
  3. Provide an overly long string value in the data object to overflow the stack buffer.

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 memory corruption. Here, the router's web interface takes a value from a JSON request and copies it into a small buffer without checking its length. An attacker who is already logged in could send a very long value to crash the router or possibly 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.

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.