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

Totolink X2000R boa formTR069Config stack-based buffer overflow vulnerability

The router's web server copies the TR-069 password from flash into a fixed-size stack buffer that is smaller than the stored value, so a long password overflows the stack. An authenticated attacker could send a crafted HTTP request to overwrite the return address and potentially execute arbitrary code.

Lilith Wyatt Follow

Originally disclosed on Cisco Talos

Critical 9.1 View original

A stack-based buffer overflow vulnerability exists in the boa formTR069Config 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 code reads the stored TR-069 password into a stack buffer smaller than the maximum length the flash setting allows, without checking the length first.

Impact

An authenticated attacker could achieve arbitrary code execution on the device, though the exploit requires valid credentials and a password that passes the space and ASCII checks.

What the attacker needed

Valid admin credentials; access to the web interface; password without spaces or high ASCII

How it was found

  1. Log in to the router's web interface via the login page.
  2. Send a POST request to the TR-069 configuration page with the url parameter set.
  3. Include a password parameter that has no spaces and only ASCII characters below 0x7f.
  4. The password is saved to flash and then read back into a stack buffer, overflowing it.
  5. The saved return address is overwritten, and the program crashes with the attacker's bytes in the program counter.

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.

The router's web interface saves a password and later reads it back into a small box of memory on the stack. If the saved password is longer than that box, it spills over and overwrites nearby memory, including the address the program returns to. Because the attacker controls the spilled bytes, they may be able to redirect execution to 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 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.