Apache CloudStack: RCE and SSRF in direct download, metalink and NFS templates
Apache Software Foundation Apache CloudStack
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Apache Software Foundation Apache CloudStack |
| No fix yet |
Original description
SSRF via Metalink Mirror URL Resolution:
An authenticated tenant can register a template pointing to an attacker-controlled metalink file containing internal targets. The Secondary Storage VM will retrieve the data and persist it as a template file, which can later be downloaded through normal APIs.
RCE on KVM hypervisor via NFS, Metalink files with/without Direct Downloads:
An authenticated CloudStack tenant holding the default User role can execute arbitrary shell commands as root on the KVM hypervisor host that runs other tenants' VMs. This is cross-tenant root on the underlying compute, reachable via the public CloudStack API.