Skip to content
DoS Advisory Beginner CVE-2021-40423

Reolink RLC-410W cgiserver.cgi command parser denial of service vulnerability

The cgiserver.cgi API command parser fails to validate that each element of a JSON array is an object with a string 'cmd' key, so malformed requests never complete and remain in the request queue until timeout. An attacker can send many such requests to exhaust the queue and block legitimate API requests, causing a denial of service.

Francesco Benvenuto Follow

Originally disclosed on Cisco Talos

High 7.5 View original

A denial of service vulnerability exists in the cgiserver.cgi API command parser functionality of reolink RLC-410W v3.0.0.13620121102. A specially-crafted series of HTTP requests can lead to denial of service.

Francesco Benvenuto, on Cisco Talos

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

Likely the body_request_to_command function does not validate that each JSON array element is an object with a string 'cmd' field, so invalid elements cause the request to never complete and remain in the incoming request list until timeout.

Impact

An attacker can cause a denial of service by making the cgiserver.cgi unreachable for close to a minute with 80 requests, and potentially longer with more requests.

What the attacker needed

Network access to the camera's web interface

The fix

The vendor patched the vulnerability, likely by adding validation to ensure each JSON array element is an object with a string 'cmd' field before processing.

How it was found

  1. Send an HTTP POST request to the cgiserver.cgi API endpoint with a JSON body containing an array element that is not a valid command object (e.g., null or a number for cmd).
  2. The server parses the array element, fails to find a string 'cmd' value, and does not associate any command with the request.
  3. The request remains in the incoming request list until the timeout period (16 seconds) expires.
  4. Repeat sending such requests many times to fill the request queue.
  5. The cgiserver.cgi stops accepting new requests because the queue is full, causing a denial of service.

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's web API accepts commands in a JSON list. If a request contains an item that is not a proper command object, the server never finishes processing it and keeps it in a queue for 16 seconds. By sending many such broken requests, an attacker fills the queue and prevents the camera from handling normal requests, making it unresponsive.

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.

More by Francesco Benvenuto

View all

152 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.