Cluster Existence Oracle via Unauthenticated Import Endpoint
SUSE Rancher
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| SUSE Rancher |
| No fix yet |
Original description
The endpoint /v3/import/{token}_{clusterId}.yaml retrieves the cluster object before validating the token. When a valid cluster ID references a cluster that has private registry secrets configured, a nil pointer dereference in pkg/systemtemplate/private_registry.go causes the request to return HTTP 502 Bad Gateway. For cluster IDs that do not exist, the endpoint returns HTTP 200. This observable difference in response codes constitutes a reliable enumeration oracle.