Disclosure: Command Injection in Geutebrück Cameras
An authenticated attacker could inject commands into a sed script through unsanitised input in the web interface of Geutebrück cameras, leading to arbitrary command execution as root. The report also mentions an XSS flaw, an exposed system menu leaking configuration and log data, and an insecure mapping of GET parameters to environment variables that allows abuse of variables such as LD_PRELOAD and LD_DEBUG.
insinuator.net
Published on insinuator.net
During a penetration test for a customer, we identified a command injection vulnerability in Geutebrück security cameras that allows authenticated attackers to execute arbitrary commands as root through the web interface. The root cause is unsanitized user input being passed into a sed script (and at least 12 other…
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 write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely unsanitised user input is passed directly into a sed script (and other CGI endpoints), allowing command injection.
Impact
An authenticated attacker could execute arbitrary commands as root, and the report also notes an XSS vulnerability, an exposed system menu leaking configuration and log data, and an insecure GET-parameter-to-environment-variable mapping that enables abuse of variables like LD_PRELOAD and LD_DEBUG.
What the attacker needed
Authenticated access to the web interface
The fix
A patched firmware was provided by Geutebrück.
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 write-up has not been written yet. The Original tab links to the source.
A security camera's web interface takes input from the user and passes it to a system command without cleaning it first. Because the input is not checked, an attacker who can log in can add extra commands that the camera then runs with the highest privileges (root). This means the attacker can take full control of 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.