image_url is unvalidated and the image download is uncapped #79
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?
From the pre-launch security audit (finding API-5, ranked #4 of the outstanding set).
image_urlon VM create is neither validated nor size-capped. It is SSRF-shaped, butself-directed: a tenant may only place VMs on their own hosts, so the request originates
from the tenant's own host, not the control plane. The genuinely live half is the
unbounded download — a create can point at an arbitrarily large URL and the host
fetches it with no cap.
Fix. Validate the scheme/host, and cap the fetched image size (fail the create past
a ceiling rather than filling the host's disk). Authenticated-tenant only; Low–Medium.
Migrated from git-collab issue
4636c0b9e91e6710f9cbc54fc92354c019bc3ec1.Original author: a73x dev@a73x.sh.