Skip to content
Subdomain takeover Advisory Intermediate

Amazon AWS CloudFormation Templates Uncontrolled Search Path Element Remote Code Execution Vulnerability

The AWS CloudFormation templates for Simple Storage Service attempt to load a non-existent cloud resource that can be taken over by an attacker. An attacker could exploit this to execute code on systems that depend on the resource.

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

Root cause

Likely the CloudFormation templates referenced a cloud resource (such as an S3 bucket) that did not exist, allowing an attacker to register it and serve malicious content.

Impact

An attacker could execute arbitrary code on systems that depend on the taken-over cloud resource.

What the attacker needed

None

The fix

Amazon has issued an update to correct this 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.

When you install software, it sometimes looks for extra files or resources online. If those resources don't exist, someone else can create them and control what your software loads. Here, the AWS templates looked for a cloud resource that wasn't there, so an attacker could claim it and run their own code on affected systems.

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.