Skip to content
RCE Advisory Intermediate CVE-2018-3937

Sony IPELA E Series Camera measurementBitrateExec command injection vulnerability

The camera's measurementBitrateExec function builds an iperf command from user input without validating the server address, allowing an attacker to inject arbitrary shell commands. An attacker could execute commands on the device with the privileges of the web server.

Cory Duplantis Follow

Originally disclosed on Cisco Talos

Critical 9.1 View original

An exploitable command injection vulnerability exists in the measurementBitrateExec functionality of Sony IPELA E Series Network Camera. A specially crafted GET request can cause arbitrary commands to be executed.

Cory Duplantis and Claudio Bozzato, 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 application fails to sanitise user-supplied input before passing it to a system shell command, allowing command injection.

Impact

An attacker could execute arbitrary commands on the camera with the privileges of the web server, potentially leading to full compromise.

What the attacker needed

Authentication with high privileges (PR:H); Network access to the camera's web interface

The fix

The vulnerability was fixed by the vendor in a firmware update.

How it was found

  1. Send a GET request to the camera's main.cgi with a measurement parameter containing a crafted server address.
  2. The camera parses the input and constructs an iperf command without validating the server address.
  3. The injected command is executed via system().

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 camera has a feature to test network speed by running a command-line tool called iperf. When you use this feature, the camera takes the server address you provide and inserts it directly into a system command without checking it. An attacker can put special characters in that address to run their own commands on the camera.

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 Cory Duplantis

View all

1 more disclosed report, 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.