Skip to content
Access control Write-up Intermediate

AnyDesk Vulnerability (CVE-2024–12754)

AnyDesk copied desktop background images into a world-writable Temp directory, and an attacker could use a junction to redirect that copy into sensitive system folders. This allowed reading of SAM hashes and machine keys, potentially leading to administrative access.

medium.com

Published on medium.com

AnyDesk, a popular remote desktop software, disclosed a vulnerability that allowed attackers to obtain/exploit and attain admin privileges via Windows Background Images.

Abdul Moeez Siddiqui, on medium.com

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

Root cause

Likely the background image was copied to a predictable, low-privilege-writable Temp directory without validating the destination path, allowing a junction to redirect the write.

Impact

An attacker with a low-privilege local account could read SAM hashes and machine keys, potentially escalating to administrative access, though the text notes Windows 10 blocks the junction and only older AnyDesk versions are affected.

What the attacker needed

Local user account on the target; AnyDesk version before 8.0.10; Windows version that allows junctions (e.g., Windows 8); admin user accepts the remote session

The fix

AnyDesk versions after 8.0.10 patched the vulnerability, and the text notes Windows 10 does not allow the junction to proceed.

How it was found

  1. Set up a virtual machine with two local accounts: one admin and one standard user.
  2. Install AnyDesk (version before 8.0.10) and the CVE executable in the standard user account.
  3. Run the CVE executable and enter the command that changes the background image.
  4. From the standard user, send an AnyDesk connection request to the admin account and have the admin accept it.
  5. After the admin accepts, the SAM and credentials are copied into an output.bin file.

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.

AnyDesk is remote desktop software. When a session starts, it saves a picture of your desktop to a temporary folder that any user can write to. An attacker can create a special shortcut (a junction) that makes AnyDesk save that picture somewhere sensitive instead, like the folder holding Windows password hashes. Then the attacker can read those hashes and try to crack them to become administrator.

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.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.