Publicly Accessible Cloud Storage Bucket Containing Sensitive Data

Illustrative example. ACME Financial is an invented company and every detail below is made up. The layout is the one our reports use.

Finding 4.1
Publicly Accessible Cloud Storage Bucket Containing Sensitive Data
C1
Severity
Critical
CVSS 3.1 score
7.5High
Risk rating
Likelihood:  High
Impact:  Critical
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Classification
CWE-732 Incorrect Permission Assignment for Critical Resource
CWE-200 Exposure of Sensitive Information
MITRE ATT&CK T1530 Data from Cloud Storage
Description
A cloud storage bucket is private unless its owner grants access. When its policy lets everyone list and read it, anyone on the internet can download its contents without an account, and none of the organization's network or sign-in controls apply.
Affected assets
acme-financial-example-backups.s3.amazonaws.com (storage bucket)
The CVSS score rates the technical characteristics of the flaw. The severity rating also accounts for likelihood and business impact: the bucket required no account or password, and it held database backups, customer statements and production credentials.

Impact

Any person on the internet could list and download the contents of an ACME Financial storage bucket. The bucket held nightly backups of the core banking database, a monthly export of customer statements, and an application configuration file containing the address, user name and password of the production database. No account, password or foothold in the bank’s network was required.

A threat actor who downloaded the backups would hold customers’ banking records in bulk. The credentials in the configuration file could support further access to the bank’s systems. Within an attack chain, this finding provides collection of sensitive data and credential access with no prior access. Strafe assesses the likelihood as high and the impact as critical.

Technical details

During reconnaissance, Strafe found a storage bucket named in the source of a public ACME Financial web page, which loaded images from it. A second bucket followed the same naming pattern, acme-financial-example-backups. Strafe sent an unauthenticated request for a listing of that bucket, and the storage service returned its contents:

2026-10-12 16:40:18    1.2 KiB config/app.env
2026-11-29 02:13:52    2.1 GiB db/acme_core_2026-11-29.sql.gz
2026-11-30 02:14:07    2.1 GiB db/acme_core_2026-11-30.sql.gz
2026-11-01 04:02:31  148.0 MiB exports/customer_statements_2026-10.csv
An unauthenticated request listing the contents of the storage bucket, with the database backups, the statement export and the configuration file marked
Figure 1 - The bucket lists its contents to an anonymous request Open full size

To confirm that the objects could be read and not only listed, Strafe retrieved the smallest file, the configuration file, with a second unauthenticated request. It contained the connection details of the production database:

# ACME core banking, production
DB_HOST=db01.corp.acme-financial.example
DB_NAME=acme_core
DB_USER=app_core
DB_PASSWORD=[redacted]
STATEMENTS_API_KEY=[redacted]
The configuration file retrieved from the bucket without credentials, showing the production database host and user name, with the password and an API key covered
Figure 2 - Production credentials in a file anyone could read Open full size

Testing stopped there. Strafe did not download the database backups or the statement export, and did not use the credentials. ACME Financial’s point of contact was notified the same day.

Remediation

  1. Remove the statement in the bucket’s policy that grants listing and reading to everyone, and turn on the storage service’s account-wide block on public access, so that no bucket in the account can be made public by its own policy.
  2. Treat the contents as exposed. Change the database password and the API key found in the configuration file, and review the bucket’s access logs to establish who retrieved which objects and when.
  3. Keep credentials out of storage buckets. Hold them in a secrets manager, and give the application access to them through its own role.
  4. Encrypt backups with a key the bank controls, so that reading an object also requires permission to use the key.
  5. Review every bucket in the account for the same policy, and add a continuous check that reports any bucket readable by an anonymous request.

Renaming the bucket or removing the links to it would not correct the flaw. The policy is the control.

Retest

StatusResolved

After the policy was corrected and public access was blocked for the account, Strafe repeated both unauthenticated requests. The storage service answered each with "Access Denied".

The same unauthenticated listing request after the fix, answered with Access Denied
Figure 3 - The same request after the fix Open full size

References

  • MITRE ATT&CK, T1530: Data from Cloud Storage
  • CWE-732: Incorrect Permission Assignment for Critical Resource
  • Amazon S3 documentation, Blocking public access to your Amazon S3 storage