S3 Bucket takeover with simple technique lead to $$
An S3 bucket referenced in an Android app was found to be unclaimed, allowing an attacker to register it and potentially serve malicious content. The author demonstrated taking over the bucket by creating it with AWS CLI.
Published on medium.com
Hi guys! doosec101 back again with another article , In this article will talk about s3 bucket takeover at private program at Hackerone .
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 app referenced an S3 bucket that was deleted but not removed from the app, leaving the name available for anyone to claim.
Impact
An attacker could take over the bucket and potentially serve malicious content to app users, though the text does not specify the exact impact.
What the attacker needed
Access to the APK file; bucket name found in app; bucket must be unclaimed
How it was found
- Unzip the APK file using apktool.
- Search the extracted files for strings containing 's3.amazon.com' or 's3-<region>-amazonaws.com'.
- Test the discovered bucket to see if it exists.
- After some months, test again and find the bucket no longer exists.
- Create the bucket using AWS CLI with the same name and region.
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.
An S3 bucket is a cloud storage folder. If an app uses a bucket name that no longer exists, anyone can create a bucket with that name and control what the app loads from it. This can let an attacker serve harmful files to users.
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.