gpt: User-controlled version can escape the app support directory #11
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?
src/cmd_download.zig and src/utils.zig
versionis joined naively into a filesystem path. A value like../../somewherecan cause downloads and run paths to resolve outside~/Library/Application Support/vmz. Validate versions as a path segment: reject empty strings, separators,./.., and probably anything outside Alpine-ish version names pluslatest-stable.