(0Day) (Pwn2Own) Lorex 2K Indoor Wi-Fi Security Camera CDeviceOperator Format String Remote Code Execution Vulnerability
A format string vulnerability in the sonia binary of Lorex 2K Indoor Wi-Fi Security Cameras allows network-adjacent attackers to execute arbitrary code as root without authentication. The flaw arises from improper validation of a user-supplied string used as a format specifier when parsing JSON requests.
Originally disclosed on Zero Day Initiative
This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of Lorex 2K Indoor Wi-Fi Security Cameras. Authentication is not required to exploit this vulnerability.
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
Impact
An attacker on the same network could execute arbitrary code as root on the camera, but the only mitigation is to restrict network interaction with the device.
What the attacker needed
Network-adjacent access to the camera
The fix
The vendor communicated that the fix was in progress, but no fixed version is confirmed.
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.
A format string bug happens when a program takes text from an attacker and uses it as a template for printing, which can let the attacker read or write memory. Here, an attacker on the same network can send a crafted request to the camera and run their own code with the highest privileges, without needing to log in.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.