exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

AnyDesk 7.0.9 Arbitrary File Write / Denial Of Service

AnyDesk 7.0.9 Arbitrary File Write / Denial Of Service
Posted Jun 28, 2022
Authored by Erwin Chan

AnyDesk version 7.0.9 suffers from an arbitrary file write vulnerability via a symlink attack.

tags | exploit, arbitrary
advisories | CVE-2022-32450
SHA-256 | a24a864d0cf210e9aa4cf317353b4651dcf88793c38af3fcf86fc7d93525574a

AnyDesk 7.0.9 Arbitrary File Write / Denial Of Service

Change Mirror Download
# Exploit Title: AnyDesk allow arbitrary file write by symbolic link attack lead to denial-of-service attack on local machine
# Google Dork: [if applicable]
# Date: 24/5/2022
# Exploit Author: Erwin Chan
# Vendor Homepage: https://anydesk.com/en
# Software Link: https://anydesk.com/en
# Version: 7.0.9
# Tested on: Windows 11



It was found that AnyDesk (version 7.0.9) was vulnerable to arbitrary file
write by symbolic link attack leading to denial-of-service attack on local
machine. It was noted that two functions were affected.

*Affected function A*
When there was a remote connection come in, a directory under AppData of
current user (without admin privilege) and a "ad.trace" file (i.e.,
"C:\Users\<user>\AppData\Roaming\AnyDesk") will be created by "AnyDesk.exe"
with "NT Authority\SYSTEM" privilege.

*Affected function B*
After a connection was made, local or remote user could use the chat room.
The chat log was written to folder
"C:\Users\<user>\AppData\Roaming\AnyDesk\chat\" by "AnyDesk.exe" with "NT
Authority\SYSTEM" privilege. Or the local user (without admin privilege)
could change the location of the chat log to anywhere that he/she has
"Modify" privilege.

*Vulnerability Summary*
Since the directories (i.e., "C:\Users\<user>\AppData\Roaming\AnyDesk\",
"C:\Users\<user>\AppData\Roaming\AnyDesk\chat\") were assigned with
"Modify" privilege for current user, current user could modify the entire
directory. With this setup, an unprivileged user is able to achieve
arbitrary file write by creating a symbolic link to a privileged location
(e.g., C:\Windows\System32). As a result, a malicious user could
potentially deny any service by overwriting the configuration or system
file of applications such as Anti Virus solutions. It was noted that the
file content could be manipulated in affected function B such that a low
privileged user could write an arbitrary file to an arbitrary location.

*Affected function A: Exploit steps by local user (without admin privilege)*

1. Remove the directory "C:\Users\<user>\AppData\Roaming\AnyDesk"
2. Create symbolic link of "ad.trace" file to a privileged location
(e.g., C:\Windows\System32\test.file) (PoC binary could be found here:
https://github.com/googleprojectzero/symboliclink-testing-tools/blob/main/CreateSymlink/CreateSymlink_readme.txt
)


1. Connect to local machine (target machine) from a remote machine.
After the connection was initiated, the content of "ad.trace" file would be
written to target file (e.g., C:\Windows\System32\test.file)

*Affected function B: Exploit steps by local user (without admin privilege)*

1. edit username of remote connector


1. Establish a AnyDesk connection from remote. Enter arbitrary text into
the chat box. Mark down the filename of chat log


1. Remove the directory "C:\Users\<user>\AppData\Roaming\AnyDesk\chat"
2. Create symbolic link of chat log file (e.g., 657584961.txt) to a
privileged location (e.g., C:\Windows\test.conf) (PoC binary could be found
here:
https://github.com/googleprojectzero/symboliclink-testing-tools/blob/main/CreateSymlink/CreateSymlink_readme.txt
)


1. Open the chat room and enter arbitrary content into it. After that,
the content of chat room would be written to target file (e.g.,
C:\Windows\test.conf)


Please let me know if any detail need further. Thanks

Regards,
Erwin
Login or Register to add favorites

File Archive:

May 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    May 1st
    44 Files
  • 2
    May 2nd
    5 Files
  • 3
    May 3rd
    11 Files
  • 4
    May 4th
    0 Files
  • 5
    May 5th
    0 Files
  • 6
    May 6th
    28 Files
  • 7
    May 7th
    3 Files
  • 8
    May 8th
    4 Files
  • 9
    May 9th
    54 Files
  • 10
    May 10th
    12 Files
  • 11
    May 11th
    0 Files
  • 12
    May 12th
    0 Files
  • 13
    May 13th
    17 Files
  • 14
    May 14th
    11 Files
  • 15
    May 15th
    17 Files
  • 16
    May 16th
    13 Files
  • 17
    May 17th
    22 Files
  • 18
    May 18th
    0 Files
  • 19
    May 19th
    0 Files
  • 20
    May 20th
    17 Files
  • 21
    May 21st
    18 Files
  • 22
    May 22nd
    7 Files
  • 23
    May 23rd
    111 Files
  • 24
    May 24th
    27 Files
  • 25
    May 25th
    0 Files
  • 26
    May 26th
    0 Files
  • 27
    May 27th
    0 Files
  • 28
    May 28th
    0 Files
  • 29
    May 29th
    0 Files
  • 30
    May 30th
    0 Files
  • 31
    May 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close