Skip to content
Subdomain takeover Advisory Intermediate

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.

Nitesh Surana Follow

Originally disclosed on Zero Day Initiative

Critical 9.8 View original

This vulnerability allows remote attackers to execute arbitrary code on affected installations of Amazon AWS. Authentication is not required to exploit this vulnerability.

Nitesh Surana (@_niteshsurana) of Trend Micro Research, on the Zero Day Initiative

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.

More by Nitesh Surana

View all

51 more disclosed reports, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Subdomain takeover

The lesson behind this report.

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.