# Steam Deck Single Click Root Remote Code Execution 

Outdated CEF in steamwebhelper allowed v8 RCE via a Steam Chat link, then chained to root by writing ~/.bashrc since deck has passwordless sudo.

- Payout: $750
- Severity: high
- Program: Valve
- Found by: g1a55er
- Disclosed: 2023-08-01
- CVE: CVE-2020-16040
- Write-up quality: 8/10
- Original: https://hackerone.com/reports/1974296
- Library page: https://bugbountylibrary.com/r/h1%3A1974296
- Tags: area:os domain:desktop impact:ato impact:privesc impact:rce kind:bounty platform:hackerone sev:high tech:chromium technique:chained technique:source-review vuln:privilege-escalation vuln:rce

**Target:** Steam Deck steamwebhelper (Chromium Embedded Framework 85.0.4183.121)
**Root cause:** steamwebhelper bundles Chromium 85.0.4183.121 vulnerable to CVE-2020-16040, runs with CEF sandbox disabled as user deck, and deck has passwordless sudo with no-new-privs bypassable via writable executables.
**Steps:**
1. Send Steam Chat message with link to attacker page rendering the CVE-2020-16040 v8 exploit.
2. Victim clicks link; steamwebhelper loads page and v8 exploit achieves RCE in steamwebhelper process (sandbox disabled, runs as deck).
3. Read ~/.local/share/Steam/ssfn* Sentry credential for account takeover.
4. Because no-new-privs blocks direct sudo, write payload into `~/.bashrc` (executed on reboot) to set a deck password and invoke sudo.
5. After reboot, payload runs outside steamwebhelper, sets password, escalates to root shell.
**How found:** Researcher identified the bundled CEF version as Chromium 85.0.4183.121, matched it to CVE-2020-16040, observed sandbox disabled and deck's passwordless sudo, then found ~/.bashrc executes on reboot to bypass no-new-privs.
**Exploitation:** Single click on malicious link in Steam Chat triggers CVE-2020-16040 in unsandboxed steamwebhelper, giving code exec as deck; shellcode reads Sentry file and plants payload in ~/.bashrc; on reboot payload sets deck password and calls sudo for persistent root.
**Escalation:** Chained v8 RCE (user) with passwordless-sudo privesc by writing ~/.bashrc to escape no-new-privs and gain persistent root.
**Insight:** When a desktop app embeds an old CEF/Electron, check the exact Chromium version against known v8 CVEs and whether the sandbox is disabled; then look for writable startup files (~/.bashrc) executed by other processes to escape no-new-privs and reach passwordless sudo.

