A Pain in the NAS: Exploiting Cloud Connectivity to PWN your NAS: Synology DS920+ Edition
The Synology QuickConnect cloud service authenticated devices using identifiers that could be obtained by an attacker on the same network, allowing device impersonation and redirection of users to an attacker-controlled machine. This enabled credential theft and, with admin tokens, remote code execution on the real NAS.
Synology is a top-tier network-attached storage vendor, and one that has embraced providing users with remote access to their stored data via its Synology QuickConnect cloud-based infrastructure. In preparation for Pwn2Own Toronto, the annual hacking competition focused on small office IoT devices, we zeroed in to…
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 write-up has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker could impersonate the device, redirect users to an attacker-controlled machine, steal credentials and stored data, and in some cases remotely execute code on the real device.
What the attacker needed
Attacker on the same network as the device; knowledge of the victim's email address; device uses QuickConnect
The fix
Synology updated its QuickConnect cloud service to address the vulnerabilities.
How it was found
- Use the discovery protocol to obtain the device serial number and model.
- Generate the DS-Token from the serial number and obtain the MAC address from the network.
- Register the device again to receive a new API key without revoking the old one.
- Call the get_auth_key action with the collected identifiers to leak the AUTH-KEY.
- Use the check action to obtain the device alias, and the register command to obtain the device ID.
- Impersonate the device, update its network address to the attacker's machine, and capture the user's tokens.
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 write-up has not been written yet. The Original tab links to the source.
A NAS is a home storage device. Synology's cloud service lets you reach it from anywhere. The service trusted information that an attacker on the same network could learn, so the attacker could pretend to be your NAS and capture your login when you connected.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.