Skip to content
Access control Write-up Advanced

Mitigating RBAC-Based Privilege Escalation in Popular Kubernetes Platforms

Many Kubernetes platforms installed DaemonSets with overly broad permissions, including admin-equivalent credentials on every node. An attacker who escaped a container could abuse these credentials to escalate privileges and compromise the entire cluster.

unit42.paloaltonetworks.com

Published on unit42.paloaltonetworks.com

Prisma Cloud and Unit 42 recently released a report examining the use of powerful credentials in popular Kubernetes platforms, which found most platforms install privileged infrastructure components that could be abused for privilege escalation. We're happy to share that, as of today, all platforms mentioned in our…

Yuval Avrahami, on unit42.paloaltonetworks.com

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, DaemonSets were granted broad permissions such as updating all nodes, which allowed a compromised node to manipulate taints and steal pods from other nodes.

What the attacker needed

Container escape; compromised node

The fix

Platforms mitigated the issue by removing unnecessary permissions, scoping permissions down, using validating admission webhooks to restrict actions, or moving privileged functionality to the control plane; the article states that all attacks are now resolved.

How it was found

  1. Add a NoSchedule taint to every node except the compromised one.
  2. Add a NoExecute taint to the node hosting the target pod to force eviction.
  3. Kubernetes recreates the target pod and schedules it on the only available node, the compromised one.

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.

Kubernetes runs small helper programs called DaemonSets on every machine (node) in a cluster. If those helpers have too much power, an attacker who breaks out of one container can use their credentials to take over the whole cluster. This article explains how several platforms fixed that by reducing those permissions.

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.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.