The title's crash dumps carry the PC's whole environment block, credentials included #702
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl#702
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@derekhearst on GitHub · 2026-11-24 03:51 UTC · original
On
main91f9a5e, before I ran withXCL_NETWORK=0(see #305 for why that alone isn't enough), the title's Breakpad reporter uploaded a 29 MB minidump tosubmit.backtrace.io(HTTP 200). I scanned my local copy of that dump: it contains the process's full environment block, 56 variables. That includes the Windows user and computer name, user-profile paths, PATH, and four credentials I had set as user environment variables (an API key, a cloud connection string and two passwords). I'm rotating them.The title runs in
xcl.exe's process, so it inherits the PC's environment. A console title never sees one. Proposal: before the title's entry point, XCL replaces the process environment with a minimal one, keeping only what the runtime and Windows need (SystemRoot,windir,TEMP/TMP,XCL_*and the like), with an opt-out switch. Any dump that escapes then carries nothing personal, and the title sees something closer to a console.Until then, users can avoid the leak by keeping credentials out of user environment variables and running with
XCL_NETWORK=0plus a firewall block onxcl.exe.Tested: a scan of my own dump, counting variable names only; no values or game data shared. Windows 11, RTX 4070 Ti. AI use: Claude Code (Claude Opus 5.5) found the upload in the log, scanned the dump and drafted this issue.
github-bot referenced this issue2026-11-26 04:31:03 +00:00
github-bot referenced this issue2026-11-26 04:59:09 +00:00
@upipibi on GitHub · 2026-11-24 04:42 UTC · original
Two open PRs fix this: #730 (
e494814) and #740 (5579aac). They take different routes. A comparison from reading both againstmainf4ce27c(not run):CreateProcessW(launcher.rsspawn_host)remove_varjust before the title's entry point (host.rs)xcl-activity,xcl-thread-dump) and any DLL loaded before then see them, and a copy made earlier (e.g. the CRT'senviron, if something calledgetenv) isn't cleared byremove_var, so a dump with heap memory can still carry itLOCALAPPDATAkept)USERNAME,COMPUTERNAME,USERDOMAIN,USERPROFILE,APPDATA,HOMEPATHPATH%SystemRoot%\System32XCL_KEEP_ENV=1XCL_KEEP_ENV=1Does #730's narrower block break anything? Not that I found. Outside
XCL_*, the runtime only readsLOCALAPPDATA(agility.rs:226,dxc.rs:559,launcher.rs:14) andSystemRoot(pe.rs:630,preflight.rs:152), and both are kept. DXC is found throughXCL_DXC_DIR, the exe's folder or the Windows SDK folders, notPATH(dxc.rscandidates), and the Agility loader usesLOAD_LIBRARY_SEARCH_SYSTEM32.spawn_hostis the only way into the host process (main.rs:48is entered throughXCL_HOST), so #730 covers every launch.So #730 covers what this issue asks for, by construction; #740 covers credentials but leaves the user and profile names. Either way, one of the two can close.
AI-assisted (Claude Code), read-only review.