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

Robustel R1510 web_server /ajax/remove/ directory traversal vulnerability

The web_server's /ajax/remove/ API fails to check for path traversal in the file_name parameter, allowing an attacker to delete arbitrary files. An attacker can send a crafted request to trigger arbitrary file deletion.

Francesco Benvenuto Follow

Originally disclosed on Cisco Talos

Medium 4.9 View original

A directory traversal vulnerability exists in the webserver /ajax/remove/ functionality of Robustel R1510 3.1.16. 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 file_name parameter is not checked for path traversal sequences before being used to construct a file path for deletion.

Impact

An attacker could delete arbitrary files on the device, potentially disrupting its operation.

What the attacker needed

Admin access to the web interface

The fix

The vulnerability was fixed by the vendor in a patch release.

How it was found

  1. Send a request to the /ajax/remove/ API with a file_name parameter containing path traversal sequences.
  2. The server constructs a path using the file_name and other parameters.
  3. The server executes 'rm -rf' on the constructed path, deleting the targeted file.

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 has a web interface that lets you delete files from certain folders. The code that builds the file path doesn't check if you use '..' to escape those folders, so you can delete any file on the device. An attacker with admin access could send a request to delete important system files.

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.