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.
Originally disclosed on Cisco Talos
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.
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
- Send a GET request to the camera's main.cgi with a measurement parameter containing a crafted server address.
- The camera parses the input and constructs an iperf command without validating the server address.
- 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.