# Local privilege escalation via insecure MSI file

Acronis True Image's MSI repair drops schedule.dll into world-writable %TEMP%, letting a non-admin swap it and get SYSTEM via MsiExec auto-elevation.

- Payout: $250
- Severity: high
- Program: Acronis
- Found by: twvyy3vyaw8k
- Disclosed: 2021-08-07
- Write-up quality: 6/10
- Original: https://hackerone.com/reports/1071832
- Library page: https://bugbountylibrary.com/r/h1%3A1071832
- Tags: area:os domain:desktop impact:privesc kind:bounty platform:hackerone sev:high tech:windows technique:recon vuln:misconfiguration vuln:privilege-escalation

**Target:** Acronis Cyber Protect Home Office / True Image MSI installer (C:\Windows\Installer, %TEMP%)
**Root cause:** MSI repair action writes schedule.dll into the user-writable %TEMP% directory, and MsiExec.exe auto-elevates and later loads that DLL, enabling DLL hijacking.
**Steps:**
1. Open `%TEMP%` and `C:\Windows\Installer`
2. Identify the ~1.3 GB Acronis-authored MSI in `C:\Windows\Installer`
3. Run `msiexec /fa C:\Windows\Installer\installer_name.msi`; a new folder appears in `%TEMP%`
4. Replace `schedule.dll` in that folder with attacker DLL
5. Wait for process to finish; dismiss UAC prompt with 'no'
6. New cmd pops up; run `whoami` to confirm SYSTEM
**How found:** Noticed the installer drops MSIs into world-readable C:\Windows\Installer, then observed that forcing repair of the large Acronis MSI creates a DLL in writable %TEMP% that MsiExec later loads.
**Exploitation:** Non-admin triggers MSI repair, swaps the dropped schedule.dll in %TEMP% with a malicious DLL before MsiExec loads it; MsiExec auto-elevates, loading the attacker DLL as nt authority\system.
**Insight:** World-readable C:\Windows\Installer MSIs can be force-repaired by any user via `msiexec /fa`; watch where the repair action writes DLLs — if it's %TEMP% rather than C:\Windows\TEMP%, it's a hijack-to-SYSTEM primitive.

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

**msiexec repair command on installer MSI**

```
msiexec /fa C:\Windows\Installer\installer_name.msi
```

