Circle with Disney Configuration Restore Photos File Overwrite Vulnerability
The configuration restore feature of Circle with Disney 2.0.1 allows an attacker to include a symbolic link in the photos directory of a backup archive, which is then copied to the device's photos directory. By subsequently overwriting a user photo, the attacker can overwrite any file on the system, leading to arbitrary command execution.
Originally disclosed on Cisco Talos
An exploitable vulnerability exists in the /api/CONFIG/restore functionality of Circle with Disney running firmware 2.0.1. Specially crafted network packets can cause an arbitrary file to be overwritten.
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 overwrite any file on the system, leading to arbitrary command execution with the privileges of the affected process.
What the attacker needed
Valid API token; network access to the device
How it was found
- Create a backup archive containing a symbolic link in the photos directory pointing to a target system file.
- Encrypt the archive with a chosen appid and send it to the /api/CONFIG/restore endpoint with a valid token.
- Use the /api/UPDATE/users/user/photo endpoint to overwrite the photo for the user whose pid matches the symbolic link name, writing arbitrary content to the target file.
- Wait for the target file to be executed by a scheduled job (cron).
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 device lets you restore a backup that includes photos. The backup is just a compressed file, and the device does not check what is inside the photos folder. An attacker can put a special shortcut (a symbolic link) in that folder that points to an important system file. Later, when the attacker changes a user's photo, the device writes to that shortcut, which actually overwrites the important file. This can let the attacker run their own commands on the device.
What is File upload?
An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.