A GPU Cluster Manager Let Attackers Become Admin by Just Claiming
GPUStack before 2.2.0 trusts a client-supplied header to decide the request's source address, so an unauthenticated attacker can claim to be localhost and be treated as the built-in administrator. From there they can mint a persistent admin API key and register model backends that the scheduler runs on worker nodes, leading to code execution.
Published on medium.com
GPUStack is an open-source GPU cluster manager that pools GPUs across on-prem servers, Kubernetes clusters, and cloud providers to serve large language models — think of it as the control plane deciding which GPU runs which model, holding the cloud credentials to provision more, and exposing an OpenAI-compatible API…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the authentication code trusted a client-controlled header to determine the request's source address, and then granted administrator rights to any request that appeared to come from localhost.
Impact
An unauthenticated attacker could become administrator, create a persistent admin key, and potentially run code on every worker node and reach cloud credentials the cluster holds; the text notes the exact code-execution payload was not published.
What the attacker needed
Network access to the GPUStack API; no credentials needed
The fix
It was fixed in version 2.2.0; interim mitigations include stripping the header at the proxy, setting force_auth_localhost to true, and keeping the control plane off untrusted networks.
How it was found
- Send an unauthenticated request with a forged header claiming the source is 127.0.0.1.
- The server returns administrator-level data such as the user directory and cluster configuration.
- Use that access to create a new administrator API key.
- Register a new model backend and push a workload for the scheduler to run on worker nodes.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
GPUStack is software that manages a pool of graphics cards (GPUs) for running AI models. It had a shortcut: if a request seemed to come from the same machine, it was let in as the top administrator without a password. The program believed a label the sender could write themselves, so anyone could pretend to be on the same machine and get in.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.