A deep dive into AWS S3 access controls – taking full control over your assets
The article explains that misconfigured AWS S3 bucket and object ACLs can allow unauthorised users to read, write, or modify access controls, potentially leading to full control over the bucket and its assets. An attacker could then modify files, inject malicious content, or cause denial of service.
labs.detectify.com
Published on labs.detectify.com
A simplified version of this write-up is available on the Detectify blog.
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 root cause is that S3 bucket and object ACLs are often misconfigured to grant excessive permissions (such as WRITE or WRITE_ACP) to groups like AuthenticatedUsers or AllUsers, allowing unintended access.
Impact
An attacker could gain full control over the bucket, modify existing files, inject malicious scripts, or cause denial of service, potentially affecting the company's website and users.
What the attacker needed
Knowledge of bucket name; AWS credentials (for AuthenticatedUsers); no authentication (for AllUsers)
How it was found
- Identify the S3 bucket name by inspecting HTTP responses, DNS entries, or error messages.
- Check the bucket ACL for permissions granted to AllUsers or AuthenticatedUsers.
- If WRITE_ACP is granted, modify the bucket ACL to grant full control to your account.
- Upload or modify objects in the bucket to inject malicious content or cause denial of service.
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.
AWS S3 is a cloud storage service where files are kept in containers called buckets. Access to these buckets is controlled by permissions called ACLs. If these permissions are set too loosely, anyone on the internet might be able to read, change, or even take over the bucket, affecting the websites that use those files.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.