Skip to content
Misconfiguration Disclosed report Beginner

Open S3 Bucket Accessible by any User

An S3 bucket behind a CDN hostname allowed any user to list, read and download its contents through a browser, even though the AWS CLI could not list it. The reporter also claimed an attacker could delete the bucket and re-register the name to take it over, though this was not tested.

ravansurya Follow

Originally disclosed on HackerOne

Bounty$100 View original
  • Disclosed after 2 months

hi team, here i found Open S3 Bucket Accessible by any User

vulnerable URL: https://cdn2.omise.co/

bucket name : omise-cdn-2

I haven't tried this yet as it may delete the bucket. (it is possible) an Attacker can delete the bucket using this command:- $ aws s3 rb s3://<The_bucket_name> and claim the bucket again to takeover the bucket

https://cdn2.omise.co/. (S3 misconfiguration), that allow to any user listing/read/download all folders/files.

i think somthing misconfiguration is happaening here, u cant read the bucket using Aws Cli but u can read it via browser. and also u can download the file using both Aws Cli and Browser.

████████

download:

██████

Impact

Sensitive information Leakage. an Attacker can delete the bucket .and claim the bucket again to takeover the buckaet

The original report as published on HackerOne, by ravansurya. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 4 min read.

What the report shows

The target is Omise's CDN host https://cdn2.omise.co/, which the researcher identified as an S3 bucket named omise-cdn-2. The finding is an open bucket: the researcher states that any user can list, read and download all folders and files through the browser.

The vulnerable URL is given as:

Text
https://cdn2.omise.co/

and the bucket name as:

Text
omise-cdn-2

The researcher notes an inconsistency in behaviour: the bucket cannot be read through the AWS CLI, but it can be read through a browser. Downloading a file, however, works through both the AWS CLI and the browser. The report does not explain this difference further.

The researcher also describes a takeover path. They did not attempt it because it might delete the bucket, but they state it is possible. The command given is:

Bash
$ aws s3 rb s3://<The_bucket_name>

After removing the bucket, an attacker could claim the same name again and take over the bucket.

The report was disclosed on 13 April 2022 and paid a bounty of 100.00 USD. No severity or CVSS score is recorded, and the weakness is classified as information disclosure. The report does not describe a fix.

Root cause

The report attributes the issue to an S3 misconfiguration that allows any user to list, read and download the bucket contents. The report calls it an S3 misconfiguration but does not show the policy or ACL behind it. The report does not include the policy or ACL that produced the behaviour, so the exact grant is not shown.

The takeover angle depends on the bucket being deletable and its name being re-registerable.

Impact

The researcher lists sensitive information leakage as the impact, since every file in the bucket can be listed and downloaded. The second impact is bucket takeover: the researcher states an attacker could delete the bucket and claim the name again. The report hedges this, saying the deletion was not tried because it may delete the bucket, and that it is possible.

How this kind of bug works

S3 buckets are private by default. Public exposure comes from configuration: a bucket policy with a wildcard principal, a public-read or public-read-write ACL, or account-level settings that block public access being turned off. Listing is a separate permission from reading objects, so a bucket can serve individual files to anyone who knows the key while still refusing to enumerate them. That distinction matters when triaging: a public object is often intended, a public listing usually is not.

Bucket takeover is a naming problem. S3 bucket names are globally unique within a partition. If an application still references a bucket name that no longer exists, anyone who registers that name in their own account receives the traffic. The same pattern appears with dangling CNAMEs to cloud storage, where a hostname points at a bucket that has been deleted.

Defences are straightforward: keep S3 Block Public Access enabled unless public hosting is deliberate, scope bucket policies to specific principals or prefixes, separate the bucket used for public assets from anything holding sensitive data, and remove DNS records and application references when a bucket is decommissioned.

How to test for it

  1. Identify storage-backed hosts during recon: hostnames containing s3, cdn, assets, static or storage, CNAMEs pointing to cloud storage endpoints, and URLs whose path structure resembles object keys.
  2. Request the bucket root rather than a known object. A listing response, typically XML containing a ListBucketResult element with keys, is the signal. A single object returning 200 is not.
  3. Try the bucket name directly against the storage provider's virtual-hosted and path-style endpoints, and try the hostname as given. Behaviour can differ between the two, as this report shows.
  4. Check whether write or delete operations are permitted, but do not actually delete or overwrite anything on a live target. A permission probe that fails safely, or a request the program has authorised, is the limit.
  5. For takeover, confirm the bucket name does not resolve to an existing bucket, then check whether the application or DNS still references it. Registering the name is an action with real consequences, so confirm scope with the program first.

Common false positives: a bucket that serves objects publicly by design but refuses listing; a listing that contains only already-public marketing assets; a 403 on the root that is mistaken for exposure; and cached CDN responses that look like direct bucket access. Confirm you are talking to the bucket, not a CDN edge, before reporting.

How it is fixed

Enable S3 Block Public Access at account and bucket level, or replace public bucket policies with policies limited to the CDN's origin access identity or specific principals. Remove public-read and public-read-write ACLs, and set object ownership so ACLs are disabled. Where public hosting is required, keep only intended assets in that bucket and review the contents for sensitive data. For takeover risk, keep the bucket name registered, and remove stale DNS records and application references when storage is retired.

Hunting notes

Open buckets cluster around static asset hosting, backups, log exports and staging environments. Recon signals include CNAMEs to cloud storage, hostnames that mirror bucket naming conventions, and error pages that name the bucket. Response headers and XML error bodies from the storage provider often reveal the bucket name even when the root is protected.

To make a report land, show the listing response with keys visible, redact anything sensitive, and state clearly what an attacker gains. For takeover, demonstrate that the name is unclaimed and that a live reference still points to it, without actually claiming it. Programs tend to accept listing exposure when it contains real data and reject it when the bucket only holds public assets, so check the contents before writing up.

The original is short, so this covers everything it reports, then explains this kind of bug in general: how it works, how to test for it and how it is fixed. The general sections are about the bug class, not this target. Written with AI and checked against the original; the original is the record. 5 min read.

What happened, in plain words

A security researcher found that a web address belonging to Omise, https://cdn2.omise.co/, was backed by an Amazon S3 bucket that anyone on the internet could browse. S3 is Amazon's file storage service: you put files in a named container called a bucket, and each bucket has a name that is unique across the whole world. Omise uses this bucket to serve files for its CDN, which is the network of servers that delivers images and other static files to visitors quickly.

The researcher identified the bucket behind that address as omise-cdn-2. The problem is that the bucket was configured to let any visitor list every folder and file in it, read them, and download them. In everyday terms, imagine a self-storage facility where the front desk will happily hand anyone a printed inventory of every locker and its contents, and then open each locker on request. The researcher lists sensitive information leakage as the impact.

The vulnerable URL is:

Text
https://cdn2.omise.co/

and the bucket name is:

Text
omise-cdn-2

The researcher noticed something odd. The bucket could not be read through the AWS CLI, Amazon's command-line tool for managing cloud resources, but it could be read through a browser. Downloading a file worked through both. The report does not explain why the two behaved differently. This matters because it shows that testing only one way of reaching a bucket can give you a false sense of safety: the same storage can answer differently depending on how you ask.

The researcher also described a more serious possibility. If the bucket could be deleted, someone else could register the same name in their own Amazon account and take it over. The command they gave is:

Bash
$ aws s3 rb s3://<The_bucket_name>

Line by line: aws is the Amazon command-line program, s3 selects the storage service, rb means remove bucket, and s3://<The_bucket_name> is the address of the bucket to delete, with the placeholder standing in for the real name. The researcher did not run it, because doing so might actually delete the bucket, and they only state that it is possible.

The report was disclosed on 13 April 2022 and paid a bounty of 100.00 USD. It is classified as information disclosure, meaning the bug leaks data rather than, say, letting an attacker run code. No severity score is recorded, and the report does not describe how the issue was fixed.

In general, how this kind of bug works

S3 buckets are private by default. When one becomes public, it is because of configuration: a bucket policy that allows everyone, an access control list (ACL) that grants public read, or account-level settings that block public access being switched off. Listing and reading are separate permissions. A bucket can serve a single file to anyone who knows its exact address while still refusing to show a list of what is inside. That difference matters: a public file is often intentional, a public inventory usually is not.

Bucket takeover is a naming problem. Because bucket names are globally unique, a name that has been freed can be claimed by anyone. If a website or DNS record still points at that name, the new owner receives the traffic. The same pattern appears with dangling CNAMEs, where a hostname points at storage that no longer exists.

The defences are simple. Keep S3 Block Public Access switched on unless public hosting is deliberate. Limit bucket policies to specific users or folders. Keep public assets in a separate bucket from anything sensitive. When a bucket is retired, remove the DNS records and application references that point at it.

If you want to check for this yourself, here is the general approach:

  1. Look for storage-backed hostnames during recon: names containing s3, cdn, assets, static or storage, CNAMEs pointing to cloud storage, and URLs whose paths look like file keys.
  2. Request the bucket root rather than a known file. A listing response, typically XML containing a ListBucketResult element with keys, is the signal. A single file returning 200 is not.
  3. Try the bucket name against the provider's different addressing styles, and try the hostname as given. Behaviour can differ, as this report shows.
  4. Check whether write or delete is permitted, but never actually delete or overwrite anything on a live target. A safe permission probe, or a request the program has authorised, is the limit.
  5. For takeover, confirm the name is unclaimed and that something still references it. Registering the name has real consequences, so confirm scope with the program first.

Common false positives: a bucket that serves files publicly by design but refuses listing; a listing that contains only already-public marketing assets; a 403 on the root that is mistaken for exposure; and cached CDN responses that look like direct bucket access. Confirm you are talking to the bucket, not a CDN edge, before reporting.

To make a report land, show the listing response with keys visible, redact anything sensitive, and state clearly what an attacker gains. For takeover, show that the name is unclaimed and that a live reference still points to it, without claiming it. Programs tend to accept listing exposure when it contains real data and reject it when the bucket only holds public assets, so check the contents before writing up.

Glossary

  • S3: Amazon's cloud file storage service, where files live in named containers called buckets.
  • Bucket: a named container in S3 that holds files; its name is unique worldwide.
  • CDN: a network of servers that delivers static files to visitors quickly from locations near them.
  • AWS CLI: Amazon's command-line tool for managing cloud resources from a terminal.
  • Bucket policy: a set of rules attached to a bucket saying who may do what with it.
  • ACL: access control list, a per-resource list of who is allowed to read or write.
  • Block Public Access: an Amazon setting that overrides policies and ACLs to keep a bucket private.
  • Listing: the ability to see the names of every file in a bucket, not just open one you already know.
  • Object key: the path-like name of a single file inside a bucket.
  • Bucket takeover: registering a freed bucket name so that traffic still pointing at it comes to you.
  • CNAME: a DNS record that points one hostname at another.
  • DNS: the system that translates human-readable hostnames into server addresses.
  • Information disclosure: a bug class where data is exposed to people who should not see it.
  • False positive: a finding that looks like a bug but is actually intended behaviour.
  • Recon: the early phase of testing where you map out a target's hosts and services.

More from Omise

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.