Skip to content
Memory corruption Advisory Advanced CVE-2026-41223

Totolink X2000R boa formMapDelDevice macstr stack-based buffer overflow vulnerability

A stack-based buffer overflow exists in the Totolink X2000R router's boa web server handling of the macstr parameter in the formMapDelDevice page. An authenticated attacker can send a crafted HTTP request to execute arbitrary code on the device.

Lilith Wyatt Follow

Originally disclosed on Cisco Talos

Critical 9.1 View original

A stack-based buffer overflow vulnerability exists in the boa formMapDelDevice macstr functionality of X2000R (version(s): TOTOLINK-X2000R-Gh-V1.0.0-B20250421.1327). A specially crafted HTTP request can lead to arbitrary code execution.

Lilith Wyatt, 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 map_del_device binary uses strcpy to copy the macstr argument into a fixed-size stack buffer without bounds checking.

Impact

An authenticated attacker could achieve arbitrary code execution on the router, potentially leading to full compromise.

What the attacker needed

Authenticated access to the web interface

How it was found

  1. Authenticate to the router's web interface via the login page.
  2. Send an HTTP POST request to /boafrm/formMapDelDevice with macstr and clientoff parameters set so that clientoff is non-zero.
  3. The boa server calls /bin/map_del_device with macstr as an argument.
  4. The map_del_device binary copies macstr into a stack buffer using strcpy, causing a 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 router's web interface has a page that takes a device MAC address from a form. The program copies that address into a fixed-size memory area on the stack without checking its length. By sending a very long value, an attacker can overwrite nearby memory and potentially run their own code on the router.

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

View all

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