Skip to content
Path traversal Advisory Intermediate CVE-2022-28127

Robustel R1510 web_server /action/remove/ API data removal vulnerability

The web server's file removal API builds a shell command from a user-supplied file name and only blocks the '..' sequence, so an absolute path can be passed instead. An attacker who can reach the API could delete arbitrary files and directories on the device.

Francesco Benvenuto Follow

Originally disclosed on Cisco Talos

High 8.7 View original

A data removal vulnerability exists in the webserver /action/remove/ API functionality of Robustel R1510 3.3.0. A specially-crafted network request can lead to arbitrary file deletion.

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

The input is only checked for the '..' sequence and then passed unvalidated into a shell command, so an absolute path bypasses the traversal check and reaches the delete command.

Impact

An attacker able to send requests to the API could delete arbitrary files and directories on the router, though the CVSS score indicates high privileges are required.

What the attacker needed

Access to the web server API; high privileges per CVSS

The fix

The file name should be validated against an allowlist of permitted paths and never passed into a shell command, for example by using a file API instead of invoking the system shell.

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 runs a small web server that lets logged-in users delete files. The code takes the file name you give it and pastes it straight into a system command that deletes files. It only refuses names containing two dots, which is one way to climb folders, but it forgets that you can just give a full path starting from the top of the disk instead.

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

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.