Amazon AWS CloudFormation Templates Uncontrolled Search Path Element Remote Code Execution Vulnerability
An AWS CloudFormation sample template, when installed from the official GitHub repository, tried to load a cloud resource that did not exist and could be taken over by someone else. An attacker who registered that resource could then run code on systems that depend on it.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to execute arbitrary code on affected installations of Amazon AWS. Authentication is not required to exploit this vulnerability.
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 report has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker could execute code on systems that depend on the hijacked cloud resource; the text does not describe any limits on the attack.
What the attacker needed
Install the sample from the official repo; attacker claims the missing resource
The fix
Amazon issued an update to the sample repository to correct the vulnerability.
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 report has not been written yet. The Original tab links to the source.
CloudFormation templates are files that set up cloud services automatically. This sample template pointed at a cloud resource that had not been created yet, so anyone could claim that name first. Whoever claimed it could then influence the systems that used the template.
What is Subdomain takeover?
A company's DNS still points at a cloud service it no longer uses, so anyone can claim it and serve content on the company's domain.