When a GlobalRole is deleted in Rancher, any ClusterRole it referenced via annotation persists with the destructive changes intact. This isn't a deletion bug — it's architectural. The controller that processes GlobalRoles treats annotation-specified ClusterRoles as authoritative overwrite targets rather than managed derivatives. It writes to those ClusterRoles imperatively, without registering any ownership reference or finalizer that would trigger cleanup on deletion. The result: a silent, persistent corruption pathway that survives both the attacker's access and the attacker's identity.
The permission model compounds this dramatically. Exploiting this requires only GlobalRole create/update — a permission likely held by Rancher's own automation service accounts, not just administrators. But that permission doesn't just create a GlobalRole; it grants the controller implicit write access to any ClusterRole whose name appears in an annotation. The privilege scope was defined around the CRD boundary, not the controller's actual blast radius. A service account with GlobalRole create/update can silently overwrite cluster-admin or any other heavily-bound ClusterRole, and that overwrite persists after the GlobalRole is deleted.
What makes this worse: there's no ownership claim to trigger detection. The anomaly goes unseen because the GlobalRole is gone. The audit log shows a create that vanished. The victim faces an orphaned corruption with no attribution, no obvious remediation path, and no clear ownership for restoration.
Audit your GlobalRole grants immediately. Treat GlobalRole create/update as a high-privilege permission that enables cluster-wide ClusterRole modification through the controller side-effect. Examine whether any automation pipelines hold this permission and whether they reference external ClusterRoles. The fix requires either ownership verification at write time or controller-side cleanup logic — but until that's deployed, treat any GlobalRole with an annotation targeting an existing ClusterRole as a potential destruction vector.