Case Study Aws And Capital One
A former AWS employee used a server-side request forgery flaw against Capital One's AWS-hosted systems to reach the AWS metadata service and obtain temporary credentials, then downloaded customer data. The exposed records included Social Security numbers, bank account numbers and credit card applications.
Published on systemweakness.com
UPDATE: Paige Thompson was convicted June 18, 2022 in court of “f wire fraud, unauthorized access to a protected computer and damaging a protected computer” (Johnson, 2022, para. 3).
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 application allowed attacker-controlled requests to reach the AWS metadata service, which returned temporary credentials without authentication or authorisation, and the stored data was not encrypted.
Impact
Over 100,000 Social Security numbers and nearly as many bank account numbers were exposed, along with millions of credit card applications; the text notes the breach went undetected for months and led to an $80 million regulatory fine.
What the attacker needed
Attacker can reach the vulnerable app; app can reach the metadata service; no IMDSv2 enforced
The fix
Capital One fixed the SSRF vulnerability, and the text recommends request validation, AWS IMDSv2, static code analysis and timely log review.
How it was found
- The attacker scanned Capital One's network for vulnerabilities.
- The attacker connected to the targeted Capital One EC2 instance.
- The attacker accessed the AWS metadata service to obtain temporary login credentials.
- The attacker used those credentials to download information stored in AWS.
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.
A server-side request forgery (SSRF) is when an attacker makes a company's own server send a request to somewhere the attacker chooses. Here the server was tricked into asking a cloud service for temporary login credentials, which the attacker then used to read stored files. The mistake was that the cloud service answered such requests without checking who was asking.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.