Skip to content
RCE Advisory Intermediate CVE-2022-33150

Robustel R1510 js_package install OS command injection vulnerability

The js_package install functionality in Robustel R1510 3.1.16 constructs an OS command using an unsanitised filename from a multipart upload, allowing an attacker to inject arbitrary commands. An authenticated attacker could execute commands on the router.

Francesco Benvenuto Follow

Originally disclosed on Cisco Talos

Critical 9.1 View original

An OS command injection vulnerability exists in the jspackage install functionality of Robustel R1510 3.1.16. A specially-crafted network request can lead to arbitrary command execution.

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 filename from the multipart upload is passed unsanitised into a shell command via sysprintf, enabling command injection.

Impact

An authenticated attacker could execute arbitrary commands on the router, potentially leading to full compromise.

What the attacker needed

Authenticated access to the web interface

How it was found

  1. Send a multipart request to /action/import_nodejs_app/ with a file whose name contains shell metacharacters and ends in .tar.
  2. Call /ajax/system_nodejs_app_upgrade_start/ to trigger the installation.
  3. The js_package binary runs tar xf <FILENAME> -C /app/node-js-app/tmp, executing the injected commands.

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 lets you upload a Node.js app, and it later runs a command to unpack the file. The filename you provide is inserted directly into that command without cleaning, so special characters in the filename can make the router run extra commands. An attacker with login access could take over the device.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

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.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.