#BrokenSesame: Accidental ‘write’ permissions to private registry allowed potential RCE to Alibaba Cloud Database Services
Wiz Research found that Alibaba Cloud's ApsaraDB RDS and AnalyticDB for PostgreSQL services had inadequate container isolation, allowing escape to the Kubernetes node and cross-tenant access. The container registry credentials used for pulling images also had write permissions, enabling a potential supply-chain attack on the services.
Published on wiz.io
Wiz Research has discovered a chain of critical vulnerabilities in two of Alibaba Cloud’s popular services, ApsaraDB RDS for PostgreSQL and AnalyticDB for PostgreSQL. Dubbed #BrokenSesame, the vulnerabilities potentially allowed unauthorized access to Alibaba Cloud customers’ PostgreSQL databases and the ability to…
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 root cause was a combination of shared Linux namespaces between containers, over-privileged kubelet credentials, and container registry credentials with write permissions, all within a multi-tenant Kubernetes cluster.
Impact
The issues could have allowed cross-tenant access and a supply-chain attack on Alibaba Cloud database services, potentially leading to remote code execution.
What the attacker needed
Ability to execute code in the database container; Container escape vulnerability; Registry credentials with write permissions
The fix
Alibaba Cloud mitigated the issues, though the text does not detail the specific measures.
How it was found
- Exploited a container escape vulnerability to gain access to the Kubernetes node.
- Used access to the Kubernetes node to reach Alibaba Cloud databases.
- Obtained container registry credentials and found they had write permissions.
- Potentially overwrote container images to carry out a supply-chain attack.
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.
The researchers found the database services could be escaped from, and the credentials used to download images could also upload them, potentially affecting services.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.