# DLL Hijacking when performing operations in Acronis Secure Zone partition leading to Privilege Escalation

Acronis aszbrowsehelper.exe loads tcmalloc.dll via untrusted search order, letting a normal user plant a DLL in a user-writable PATH folder and execute code as Administrator/SYSTEM.

- Payout: $250
- Severity: medium
- Program: Acronis
- Found by: z3ron3
- Disclosed: 2024-08-26
- Write-up quality: 6/10
- Original: https://hackerone.com/reports/1004740
- Library page: https://bugbountylibrary.com/r/h1%3A1004740
- Tags: area:os domain:desktop impact:privesc impact:rce kind:bounty platform:hackerone sev:medium tech:windows technique:default-creds vuln:misconfiguration vuln:privilege-escalation

**Target:** aszbrowsehelper.exe in Acronis Cyber Protect Home Office / True Image 2021
**Root cause:** aszbrowsehelper.exe resolves tcmalloc.dll using the default Windows DLL search order, which includes user-writable directories such as %USERPROFILE%\AppData\Local\Microsoft\WindowsApps and any folder the user adds to the User PATH variable.
**Steps:**
1. Create an Acronis Secure Zone partition via Tools > Acronis Secure Zone.
2. Build a malicious tcmalloc.dll that spawns cmd.exe.
3. Place tcmalloc.dll in `%USERPROFILE%\AppData\Local\Microsoft\WindowsApps` (or any user-writable folder added to User PATH).
4. Trigger aszbrowsehelper.exe by opening Manage Acronis Secure Zone Wizard or browsing the Secure Zone in Explorer.
5. Confirm elevated shell via `net session` (no entries = admin).
6. Escalate to SYSTEM: `schtasks /create /SC WEEKLY /RU "NT AUTHORITY\SYSTEM" /TN EOP /TR C:\Windows\System32\winver.exe /IT /RL HIGHEST` then `schtasks /run /I /TN EOP`.
**How found:** Researcher inspected the DLL search order of aszbrowsehelper.exe and noticed tcmalloc.dll was resolved from user-writable PATH directories, then verified by planting a DLL and triggering Secure Zone operations.
**Exploitation:** A low-privileged local user drops a crafted tcmalloc.dll into a directory that appears in the User PATH (WindowsApps is user-writable by default). When the victim/admin triggers any Secure Zone operation, aszbrowsehelper.exe loads the DLL with Administrator rights, giving the attacker an elevated shell; a scheduled task then runs code as NT AUTHORITY\SYSTEM.
**Escalation:** Administrator shell escalated to NT AUTHORITY\SYSTEM by creating and running a scheduled task with /RU "NT AUTHORITY\SYSTEM" /RL HIGHEST.
**Insight:** On Windows, enumerate every DLL a privileged helper loads and check whether any resolves through User PATH or WindowsApps — both are writable by standard users, so a missing DLL there is a direct admin-to-SYSTEM path.

## Proof of concept (copied exactly from the original report)

**Malicious tcmalloc.dll placed in WindowsApps**

````
[ 1 ] - Copy or write the DLL file named ```tcmalloc.dll``` in ```%USERPROFILE%\AppData\Local\Microsoft\WindowsApps``` folder.
````

**schtasks create SYSTEM task command**

````
schtasks /create /SC WEEKLY /RU "NT AUTHORITY\SYSTEM" /TN EOP /TR C:\Windows\System32\winver.exe /IT /RL HIGHEST```
````

**schtasks run SYSTEM task command**

````
schtasks /run /I /TN EOP```
````

