Non-root containers, Kubernetes CVE-2019-11245 and why you should care
A Kubernetes bug caused containers that were supposed to run as a non-root user to run as root on their second execution or after a restart. This weakened the isolation between the container and the host, making a container breakout more likely if a runtime vulnerability existed.
twistlock.com
Published on twistlock.com
On May 31th, the Kubernetes Product Security Committee announced a security regression in Kubernetes for which they had assigned CVE-2019-11245. The problem caused containers that use images which are supposed to run with a non root user to run as root, on the second time they are used or upon restart of the container.
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 a commit in Kubelet broke the detection of an image's configured user ID, and this broken logic only ran when the Docker image had already been pulled to the node.
Impact
Containers ran with root privileges, which could make container breakout easier and allow modification of host files without further privilege escalation, though the text does not describe a specific exploit.
What the attacker needed
Kubernetes v1.13.6 or v1.14.2; Docker image with non-root USER; Image already pulled to the node
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.
Containers are meant to keep programs separate from the rest of the computer. Normally, a program inside a container should run as a limited user, not as the all-powerful 'root' user. This bug made some containers run as root by mistake, so if an attacker broke into the container they would have more power to damage the host machine.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.