# Arbitrary File Write as SYSTEM from unprivileged user

Steam Client Service running as SYSTEM writes its log into a user-writable folder, letting an unprivileged user symlink the log to any file and write as SYSTEM.

- Payout: $1,250
- Severity: high
- Program: Valve
- Found by: b0yd
- Disclosed: 2020-01-15
- Write-up quality: 8/10
- Original: https://hackerone.com/reports/583184
- Library page: https://bugbountylibrary.com/r/h1%3A583184
- Tags: area:os domain:desktop impact:integrity impact:privesc kind:bounty platform:hackerone sev:high tech:windows technique:chained technique:source-review vuln:misconfiguration vuln:privilege-escalation

**Target:** Steam Client Service (steamservice.exe) log file service_log.txt on Windows
**Root cause:** The SYSTEM-privileged Steam Client Service writes its error log to C:\Program Files (x86)\Steam\logs\service_log.txt, a directory with Full Control granted to unprivileged users, enabling symlink redirection of the privileged write.
**Steps:**
1. Confirm unprivileged user has Full Control over C:\Program Files (x86)\Steam\logs and C:\Program Files (x86)\Steam\bin\steamservice.dll.
2. Create a symlink from C:\Program Files (x86)\Steam\logs\service_log.txt to a target SYSTEM-writable file (e.g. C:\Windows\System32\evil.dll) using CreateSymlink.
3. Modify/move/delete C:\Program Files (x86)\Steam\bin\steamservice.dll to force the service into an error state.
4. Start the Steam Client Service (unprivileged users can start/stop it) to trigger the error log write, which follows the symlink and writes as SYSTEM.
5. Repeat to overwrite C:\Windows\System32\drivers\pci.sys to break the box.
**How found:** Observed that the SYSTEM service logs into a folder with Full Control for unprivileged users, that steamservice.dll is user-writable and can trigger errors, and that the service can be started/stopped by unprivileged users — combining these into a symlink-based privileged file write.
**Exploitation:** An unprivileged local user plants a symlink at the user-writable log path pointing to an arbitrary SYSTEM-writable file, corrupts steamservice.dll to force an error, then starts the service so the SYSTEM process writes attacker-controlled log content to the target file, achieving arbitrary file write as SYSTEM and system compromise.
**Escalation:** Chained arbitrary SYSTEM file write to overwrite C:\Windows\System32\evil.dll and C:\Windows\System32\drivers\pci.sys, escalating to full system compromise.
**Insight:** Look for privileged services that write logs or temp files into directories where unprivileged users have write/Full Control, and check whether the service binary or its dependencies are also user-writable so you can force an error on demand; symlink the writable log path to a SYSTEM-writable target.

