Reolink RLC-410W cgiserver.cgi Login authentication bypass vulnerability
The camera's login check only looks at the URL's cmd parameter, while the actual commands are taken from a JSON array in the request body. By setting cmd=Login and putting other commands in the body, an attacker can reach API code without authenticating, though session permission checks still block some actions.
Originally disclosed on Cisco Talos
An authentication bypass vulnerability exists in the cgiserver.cgi Login functionality of reolink RLC-410W v3.0.0.13620121102. A specially-crafted HTTP request can lead to authentication bypass.
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 could reach several APIs without authentication, but the empty session's permission table blocks actions such as Upgrade; combined with other flaws it could lead to camera reboot or execution of listed APIs.
What the attacker needed
Network access to the camera
How it was found
- Send an HTTP request with cmd=Login in the URL and no username parameter.
- Put a JSON array in the body containing a command other than Login.
- The server parses the body commands and calls the corresponding API function without a valid session.
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 decides whether you are allowed in by looking at a label in the web address, but it then runs whatever instructions are in the request body. So you can write 'login' in the address to pass the check, while the body asks for something else. This lets someone reach parts of the camera's software without a password, although some actions are still blocked because the session has no permissions.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.