Skip to content
Path traversal Advisory Advanced CVE-2026-9827

Totolink X2000R boa formUploadFile arbitrary file write vulnerability

The router's file upload handler takes the filename from the multipart form data and appends it to a directory path without validating it, so a traversal sequence in the name lets the uploaded contents land anywhere writable by root. An authenticated attacker could therefore write arbitrary files and, per the report, achieve code execution.

Lilith Wyatt Follow

Originally disclosed on Cisco Talos

Critical 9.1 View original

A arbitrary file write vulnerability exists in the boa formUploadFile 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 upload handler concatenates the user-supplied multipart filename onto a fixed directory path and writes the uploaded data there without sanitising traversal sequences.

Impact

An authenticated attacker could write arbitrary files as root and, as the report states, achieve arbitrary code execution; the report does not demonstrate the execution step itself.

What the attacker needed

Valid admin credentials; access to the router's web interface; uploaded content passes format check

How it was found

  1. Log in through the router's login page to obtain an authenticated session.
  2. Send a request to the firmware upload settings page so the temporary upload marker file exists.
  3. Submit a multipart upload to the file upload page with a filename containing traversal sequences.
  4. The handler validates the uploaded content, then builds the destination path from the supplied filename.
  5. The uploaded bytes are written to the traversed path, which is writable by root.

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 router has a web page for uploading firmware files. The program builds the save location by gluing a folder path onto whatever filename the uploader supplies, and it never checks that the name is a plain name. By putting folder-jumping characters in the name, someone already logged in can make the router save their file somewhere else, such as a place the router later runs as a program.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

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.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.