Reolink RLC-410W cgiserver.cgi JSON command parser denial of service vulnerabilities
The camera's CGI server assumes that JSON elements in the request body are objects, so sending a JSON array element or a param value that is not an object triggers an assertion and kills the process. An attacker can send a crafted HTTP request to reboot the device, and some variants need no authentication.
Originally disclosed on Cisco Talos
Multiple denial of service vulnerabilities exist in the cgiserver.cgi JSON command parser functionality of reolink RLC-410W v3.0.0.13620121102. A specially-crafted HTTP request can lead to a reboot.
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 JSON parser assumes that array elements and the param field are JSON objects and accesses them with the subscription operator without validating their type, causing an assertion failure when they are not objects.
Impact
An attacker could reboot the camera remotely, and some variants do not require authentication, though most require a logged-in user or chaining with another vulnerability.
What the attacker needed
Network access to the camera; logged-in session for most variants; no auth for the array-element variant
How it was found
- Send an HTTP POST request to the camera's cgi-bin API endpoint with a JSON body containing a command.
- Include a param field whose value is a string rather than an object, or make an array element a string.
- The CGI server parses the body and reaches the assertion, killing the process.
- The device reboots because the CGI process cannot send its heartbeat.
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 camera runs a small web server that accepts commands in a JSON format. The code expects every command and its parameters to be a structured object, but it does not check this before using them. When it receives a plain string instead, the program hits an internal safety check and stops, which makes the camera restart.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.