GHSL-2023-190: Several vulnerabilities in Frigate - CVE-2023-45672, CVE-2023-45671, CVE-2023-45670
Frigate had an unsafe deserialization vulnerability in its config save endpoint, allowing unauthenticated remote code execution. It also had reflected XSS in camera name endpoints, CSRF in config save/set, and a non-exploitable XSS in the logs endpoint.
Originally disclosed on GitHub Security Lab
Input is initially accepted through http.py at frigate/http.py:998:
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 application used yaml.load with a loader that can instantiate arbitrary Python objects, allowing code execution from user-supplied YAML.
Impact
This issue may lead to pre-authenticated Remote Code Execution.
What the attacker needed
Network access to Frigate
How it was found
- Start Frigate in Docker.
- Navigate to the /config page.
- Enter a YAML payload that executes a command and save the configuration.
- Observe that the command runs (e.g., a file is created).
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.
Frigate is a video surveillance software. An attacker could send a specially crafted configuration file that, when loaded, runs commands on the server. This is called unsafe deserialization: the software turns data into objects without checking if it is safe, so an attacker can make it run code.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.