Cyber Security News

PoC Exploit Released for AnyDesk Vulnerability Exploited to Gain Admin Access Via Wallpapers

A recently disclosed vulnerability in AnyDesk, a popular remote desktop software, identified as CVE-2024-12754, enables local attackers to exploit the handling of Windows background images to gain unauthorized access to sensitive system files. 

This could potentially escalate their privileges to administrative levels, posing a significant threat to system security.

The vulnerability has been categorized under CWE-59 (Improper Link Resolution Before File Access) and assigned a CVSS score of 5.5 (Medium), indicating its potential to cause confidentiality breaches.

A proof-of-concept exploit has been disclosed, showing how attackers can take advantage of this vulnerability. 

AnyDesk Local Privilege Escalation Vulnerability

According to cybersecurity researcher Naor Hodorov, the flaw lies in how AnyDesk processes desktop background images during session initialization. 

When a session starts, AnyDesk copies the current desktop wallpaper into the C:\Windows\Temp directory. 

AnyDesk copy the existing background image into C:\Windows\Temp\

This operation is executed by the AnyDesk service running under the NT AUTHORITY\SYSTEM account, which has elevated privileges.

File Copy performed by AnyDesk as NT AUTHORITY\SYSTEM

Attackers with low privileges can manipulate this process by pre-creating files in the C:\Windows\Temp directory or leveraging symbolic links (junctions). Here’s how the attack works:

When AnyDesk copies the desktop wallpaper, it retains the ownership and permissions of the SYSTEM account. This makes the copied file inaccessible to low-privileged users by default.

Attackers create a junction (a type of symbolic link) that redirects AnyDesk’s file copy operation to sensitive directories like \Device\HarddiskVolumeShadowCopy1\Windows\System32\CONFIG. 

This allows attackers to gain access to critical files such as SAM (Security Account Manager), SYSTEM, and SECURITY.

By obtaining these files, attackers can extract hashed credentials or machine keys using tools like mimikatz. This enables them to escalate privileges and potentially gain administrative access.

Proof-of-Concept (PoC) Exploit

A PoC exploit has been released, demonstrating how attackers can leverage this vulnerability. 

The exploit involves manipulating file operations using reparse points in Windows Object Manager Namespace (OMNS) directories such as \RPC Control. 

PoC Exploit

This shows successful exploitation where sensitive files are accessed and restored after triggering an oplock (opportunistic lock).

Recommendation

To address this vulnerability, AnyDesk has released a patch in version 9.0.1 and later. Users are strongly advised to update their software immediately. 

The discovery of CVE-2024-12754 highlights the evolving sophistication of local privilege escalation techniques that exploit seemingly innocuous features like desktop background images. 

While AnyDesk has acted swiftly by issuing patches, this incident underscores the importance of proactive security measures and vigilance against emerging threats.

Organizations must remain alert and adopt robust security practices to mitigate similar vulnerabilities in the future.

Are you from SOC/DFIR Team? - Join 500,000+ Researchers to Analyze Cyber Threats with ANY.RUN Sandbox - Try for Free

Guru Baran

Gurubaran KS is a cybersecurity analyst, and Journalist with a strong focus on emerging threats and digital defense strategies. He is the Co-Founder and Editor-in-Chief of Cyber Security News, where he leads editorial coverage on global cybersecurity developments.

Recent Posts

NSA, CISA and NIST Release New Security Guidelines to Detect and Shut Down Rogue AI Agents

NSA, CISA, and NIST have released joint security guidelines to help organizations detect, contain, and…

3 hours ago

Hackers Exploit SiteGuard WAF Vulnerability That Could Give Them Full Control of Servers

Hackers are exploiting a command injection flaw in SiteGuard Server Edition, a web application firewall…

3 hours ago

Hackers Registered New Teams-Based Domains and Used a Login Page to Steal Your Logins

A newly registered domain copies Microsoft Teams’ login page and interface, raising concerns about a…

4 hours ago

16-Year-Old Broadcom Wi-Fi Flaw Lets Attackers Hack Routers Without Knowing Passwords

A 16-year-old flaw in Broadcom’s Wi-Fi software can let attackers within wireless range take control…

4 hours ago

Google Unveils New Android AI Protections to Block Scam Calls, Phishing Links and OTP Theft

Google has announced a new set of Android security protections designed to stop mobile scams…

9 hours ago

Hackers Exploiting Plex Vulnerabilities in the Wild to Deploy Cryptominer Malware

Hackers are exploiting flaws in Plex Media Server to install cryptocurrency mining malware, with a…

11 hours ago