mirror of
https://github.com/getcompanion-ai/computer-host.git
synced 2026-04-14 22:03:17 +00:00
stores guest data in overly-permissive host paths #6
Loading…
Add table
Add a link
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?
Several host-side paths that can contain guest secrets are created with permissive
0755directories and0644files.Why this matters:
CreateMachineclones the writable system disk image usingcloneFile, which creates the disk image as0644(internal/daemon/create.go:65-79,internal/daemon/files.go:47-90).guest-config.jsonwith login webhook configuration and bearer token data (internal/daemon/files.go:262-295).0755, and snapshot files are moved or copied without tightening permissions (internal/daemon/snapshot.go:60-63,internal/daemon/snapshot.go:369-387).0755, and JSON/state temp files use0644(internal/daemon/daemon.go:60-61,internal/store/file_store.go:385-444).Impact:
Expected behavior:
Suggested follow-up:
0700or0750as appropriate.0600unless they are intentionally public.