CWE-552Data exposureSeverity · High

Public storage buckets

A storage bucket of exports, uploads or backups that anyone can list or read. One leaked or guessed address can expose every customer file inside it.

At a glance

Controls
CWE-552 · A01:2021 Broken Access Control
Typical severityHigh
ReferenceCWE-552
OWASP Top 10A01:2021 Broken Access Control

What it is

Products keep customer files in cloud storage buckets. A bucket is public when its policy or access list lets anyone on the internet list it or read objects without signing in. This often happens when a bucket was opened for a quick test, a migration or a public asset and never closed again.

An attacker who learns the bucket name can list its contents and download exports, invoices, identity documents or database backups. Bucket names are easy to find in page source, mobile apps and code. AI-assisted attackers can pull candidate names from these places and test them in bulk within minutes.

Where it hides

What a reviewer can look for in the code and in the behaviour, before anyone proves it.

  • Buckets behind data export and report download features
  • Upload buckets for avatars, attachments and documents
  • Backup and log archive buckets created by deploy scripts
  • Storage policies in infrastructure-as-code templates

How MATT tests it

The proof runs against the deployed product, on every release, whoever wrote the code.

  1. 01Read the infrastructure code and front end to list every bucket the product uses.
  2. 02Request each bucket listing and a known test object with no credentials at all.
  3. 03Sign in as test user B and request a file that belongs to test user A by its direct address.
The rule, in plain English

Customer files must be readable only by the people they belong to.

Executable check

as anonymous: GET https://{bucket}/?list-type=2 expect: 403 and no object keys in the body as user B: GET /files/{A's file id} expect: 403 or 404

Every rule MATT holds →

What the fix looks like

  1. 01

    Turn on the provider's block on public access for every bucket that holds customer data.

  2. 02

    Serve customer files through short‑lived signed links issued after an authorisation check.

  3. 03

    Keep public assets in a separate bucket that never holds customer data.

  4. 04

    Scan storage policies in infrastructure code on every change.

A check that was never written is found by proving the deployed behaviour, fixed with the engineer who shipped it, and kept fixed by running the control on every change. What is ExploitOps? →

ExploitOps discovery call

Understand where your security loop breaks.

A call with a MATT co-founder to understand your product and whether an ExploitOps Review is worth doing. If there is a real need, we scope one with the research team.

Let’s understand your priority

What brings you to MATT?

What would you like help with?
01 / 02