fix: harden guest driver host APIs

- run elevated actions as fixed System32 tools instead of a hidden subcommand
- require a SHA-256 for plugin downloads
- keep records of secret files that could not be deleted, and never overwrite
  files the host did not create
- stop two concurrent requests from starting the same VM
- drop invalid endpoints instead of failing the whole VM list, and reject ssh
  users and IPv6 zones that could inject command-line text
- accept driver screenshots only at the requested path
- do not treat an unreadable guest phase as normal

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
NwflowerandClaude Opus 5.5 committed 2026-12-03 09:07:46 -07:00
1 parent 58cf86d5eb
commit 44e2174fff
32 files changed
+431 -689

No files matched your search

-4
View File
@@ -45,10 +45,6 @@ func IsCommand(args []string) bool {
}
func run(args []string) (i18n.Locale, error) {
// The elevated helper must not read or create anything in the data folder.
if len(args) > 0 && args[0] == "__elevate" {
return i18n.Detect(), cmdElevate(args[1:])
}
fs := flag.NewFlagSet("reims-go", flag.ContinueOnError)
fs.SetOutput(io.Discard)
langFlag := fs.String("lang", "", "UI/CLI language: auto | zh-CN | en-US | <BCP-47> | en-XA")