Skip to content
Access control Write-up Intermediate

AnyDesk Exploit Alert: CVE-2024–12754 Enables Privilege Escalat

AnyDesk running as SYSTEM copies a user-chosen background image into a Windows temp folder while keeping the original file's ownership and permissions, so a low-privileged user can pre-create a file with the same name and have it overwritten with SYSTEM ownership. The attacker could then use that ownership to replace or read critical system files such as the SAM, SYSTEM and SECURITY hives, potentially extracting credentials or fully compromising the machine.

Jiniyaasma Follow

Published on medium.com

A newly disclosed vulnerability in AnyDesk, a widely used remote administration tool, could allow attackers to escalate privileges and gain complete control over a system. Tracked as CVE-2024–12754, this security flaw was analyzed by researcher Naor Hodorov, who demonstrated how a low-privileged user could exploit it…

Jiniyaasma, 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 service copies an attacker-influenced file into a shared temp directory without resetting ownership or permissions, so the resulting file inherits SYSTEM-level access.

Impact

An attacker could extract user credentials, manipulate system settings, or achieve full system compromise, though the text does not state whether any defence limited the attack.

What the attacker needed

Local low-privileged access to the machine; AnyDesk prior to v9.0.1 running as SYSTEM

The fix

The vulnerability was fixed in AnyDesk v9.0.1, and users should update immediately.

How it was found

  1. Pre-create a file in the Windows temp directory with the same name as the background image.
  2. Trigger AnyDesk to copy the chosen background image, which overwrites the attacker's file while keeping SYSTEM-level ownership.
  3. Use the resulting file ownership to replace or access critical system files such as the SAM, SYSTEM and SECURITY hives.

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 a remote-control program that often runs with the highest Windows permissions (SYSTEM). When a normal user changes the background picture, AnyDesk copies that picture into a shared temporary folder but keeps the file's original owner and permissions. Because the user can predict the file name and create a file there first, the copy overwrites their file but leaves it owned by SYSTEM, which lets them tamper with protected system files.

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.