BreakingFormation: AWS CloudFormation Vulnerability
An XXE vulnerability in AWS CloudFormation allowed an attacker to read files and make server-side requests on the vulnerable service machine. This could have led to the disclosure of credentials for internal AWS infrastructure services and potentially bypass tenant boundaries.
orca.security
Published on orca.security
Orca Security’s vulnerability researcher, Tzah Pahima, discovered a vulnerability in AWS allowing file and credential disclosure of an AWS internal service. This zero-day, which AWS completely mitigated within 6 days of our submission, was an XXE (XML External Entity) vulnerability found in the CloudFormation service.
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 an XML External Entity (XXE) vulnerability in the template rendering process of CloudFormation, caused by improper handling of XML input.
Impact
An attacker could read files and make server-side requests, potentially disclosing credentials for internal AWS services and bypassing tenant boundaries to gain privileged access to AWS resources.
What the attacker needed
Ability to submit a CloudFormation template
The fix
AWS coded a fix in less than 25 hours and deployed it to all regions within 6 days; the fix was verified to prevent exploitation.
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.
CloudFormation is an AWS service that lets you create and manage cloud resources using templates. A vulnerability in how it processed templates allowed an attacker to trick the service into reading files and making requests to other systems. This could expose sensitive information like passwords or internal access keys.
What is XXE?
An XML parser resolves entities the attacker defines, reading local files or making the server send requests.