Skip to content
Misconfiguration Disclosed report Beginner

Open AWS S3 bucket leaks all Images uploaded to Zomato chat

An AWS S3 bucket used by Zomato chat was publicly listable, allowing anyone to enumerate and download all images uploaded to the chat. An attacker could mass-download these images, which might include user PII.

yashrs Follow

Originally disclosed on HackerOne

Medium 5.7 View original
  • Triaged in 2 hours
  • Fixed in 4 hours
  • Paid in 6 hours
  • Disclosed after 53 days

Hey,

Summary: The vulnerable bucket is ████images and we can use

aws s3 ls s3://$bucketname/2019/1/ to retreive all images uploaded in 2019 and in January. Similarly we can use different years and months to retreive all images uploaded to Zomato Chat!

The images can be accessed at https://s3-ap-southeast-1.amazonaws.com/████████images/2019/1/{imageid}

Supporting Material/References:

Thanks, Yash :)

Impact

It could have contained User PII too, I haven't checked all the contents. Most of them are food photos :P, but it could easily have been PII if user uploaded some bill or something else that sort of.

An attacker can download all images in mass. Please secure the AWS bucket

The original report as published on HackerOne, by yashrs. 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 report concerns images uploaded to Zomato Chat. The researcher found that the images users upload to Zomato Chat are stored in an AWS S3 bucket named ████images that can be listed and read without authentication.

Listing is done with the AWS CLI against a path built from the year and month:

Bash
aws s3 ls s3://$bucketname/2019/1/

With that command the researcher retrieved every image uploaded in January 2019, and notes that other years and months can be substituted to retrieve images from other periods. The objects themselves are then fetched directly over HTTPS from the regional S3 endpoint, at a URL of the form:

Text
https://s3-ap-southeast-1.amazonaws.com/████████images/2019/1/{imageid}

The bucket name is redacted in the report. The supporting material section is empty.

Root cause

The report points to an S3 bucket that permits anonymous listing and object retrieval. The report does not describe how the bucket was configured. The report does not describe how the bucket was configured or how the researcher found it.

Impact

The researcher states that an attacker can download all images in mass. On the sensitivity of the content, the report is careful: most of the images seen were food photos, and the researcher had not checked all the contents. The stated concern is that the bucket could have contained user PII, for example if a user had uploaded a bill or a similar document to the chat. That possibility is presented as a risk, not as something confirmed.

How this kind of bug works

S3 buckets are private by default, but access is governed by several independent layers: the bucket policy, the object ACLs, the IAM policy of the caller, and the account-level public access block. A bucket becomes publicly listable when a policy or ACL grants s3:ListBucket (or the legacy READ ACL) to AllUsers or AuthenticatedUsers, and publicly readable when it grants s3:GetObject the same way. The public access block, introduced to stop exactly this, can override those grants, but only if it is enabled.

Two things make the exposure worse. First, listing turns a guessing problem into a download problem: without ListBucket an attacker needs to know or guess keys, with it they can walk the whole prefix tree. Second, predictable key structures such as date-based prefixes make bulk collection trivial even when listing is off, because the key space is small enough to enumerate.

Uploads from user-facing features are a common source of this bug because the storage is often provisioned quickly, outside the normal review of the main application, and the developer testing it with a public-read ACL to make images display in a browser may never revisit the setting.

How to test for it

  1. Identify storage endpoints. Look at image and file URLs in the application for hostnames of the form <bucket>.s3.amazonaws.com, <bucket>.s3.<region>.amazonaws.com, s3.<region>.amazonaws.com/<bucket>, or a custom domain that resolves to S3. Upload features (avatars, chat attachments, support tickets, receipts) are the best places to look.
  2. Test anonymous object read. Request a known object URL with no credentials and no session cookie. A 200 with the file body confirms public read; 403 AccessDenied suggests the object is protected.
  3. Test anonymous listing. Request the bucket root and a known prefix without credentials. A 200 returning an XML ListBucketResult with Key entries confirms listing. AccessDenied on the root does not rule out listing on a sub-prefix, so try the prefixes you have seen in object URLs.
  4. Test write access separately. An unauthenticated PUT of a small test object, or a DELETE of an object you created, shows whether the bucket is writable. Only do this where the program's rules allow it, and clean up afterwards.
  5. Check the key structure. If keys follow a date or ID pattern, note whether objects outside the feature you found are reachable, since that determines the real scope.

A positive result is an unauthenticated response containing object data or a key listing. Common false positives: a 403 on the root that hides a listable prefix; a bucket that returns NoSuchBucket because the name in the URL is a CNAME target rather than the bucket; cached or CDN-fronted responses that look public but are served by a distribution with its own access control; and objects that are intentionally public, such as marketing assets, which carry no impact.

How it is fixed

The standard fix is to remove public grants: delete AllUsers and AuthenticatedUsers entries from the bucket policy and ACLs, and enable the account-level S3 Block Public Access settings so future mistakes are overridden. Applications should serve user uploads through signed URLs or a controlled proxy rather than direct public object URLs, and object keys should not be trivially enumerable. Where public hosting is genuinely required, restrict it to a dedicated bucket that never receives user content. Detection matters too: enable S3 access logging and alert on anonymous ListBucket calls.

Hunting notes

This bug class hides in secondary storage: chat attachments, support ticket uploads, invoice and receipt PDFs, exported reports, backups, and mobile app assets. Recon signals include S3 hostnames in page source and JavaScript bundles, DNS records pointing at S3 or CloudFront, and upload responses that return a direct object URL rather than a signed one. Certificate transparency and subdomain enumeration often surface buckets that the main application never links to.

To get the report accepted, show the unauthenticated request and response, state clearly what the objects are, and quantify the exposure without downloading more than necessary: a listing count and a couple of representative object types are usually enough. If the content is sensitive, describe the category rather than reproducing it, and never publish personal data. If the objects are non-sensitive, say so, because that changes the severity the triager will assign.

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. 8 min read.

What happened, in plain words

Zomato has a chat feature where users upload pictures. When you upload a picture in a chat, the picture has to be stored somewhere so the other person can see it. Zomato kept those pictures in a cloud storage service called Amazon S3.

S3 is Amazon's online storage: think of it as a very large set of lockers in a warehouse, where each locker is called a bucket and each item inside is called an object. Normally a bucket is private, and only the owner can open it. In this case the bucket holding the chat images could be opened by anyone on the internet, without logging in at all. The researcher who found it could ask the bucket for a list of everything inside, and then download the files one by one.

The bucket was named ████images. The researcher used a command-line tool called the AWS CLI, which is the official program for talking to Amazon's cloud services from a terminal, to list the contents of one folder at a time:

Bash
aws s3 ls s3://$bucketname/2019/1/

Here is what each part does:

  • aws runs the AWS CLI program.
  • s3 says which Amazon service to talk to, in this case S3 storage.
  • ls means "list", the same idea as the ls command that lists files on Linux or macOS.
  • s3://$bucketname/2019/1/ is the address being listed. $bucketname is a placeholder for the bucket name, and 2019/1/ is a folder path meaning the year 2019 and month 1, January.

That single command returned every image uploaded to Zomato Chat during January 2019. Because the folder names follow the pattern year then month, the researcher could swap in other years and months to list images from other periods. This matters because it turns a guessing game into a simple browse: without a listing, you would have to know a file's exact name to fetch it, but with a listing the bucket hands you all the names.

Once a name was known, the image itself could be downloaded directly in a browser or with any download tool, from a URL of this shape:

Text
https://s3-ap-southeast-1.amazonaws.com/████████images/2019/1/{imageid}

Reading that URL from left to right: https:// is the normal secure web protocol; s3-ap-southeast-1.amazonaws.com is Amazon's S3 address for the Singapore region (ap-southeast-1 is Amazon's code for that area); ████████images is the bucket; 2019/1/ is the year and month folder; and {imageid} stands for the unique name of a particular image. The images could be accessed at that URL. The bucket name is redacted in the report, and its supporting material section is empty.

Why the bucket was open

The report does not explain how the bucket was configured or how the researcher found it. What it shows is a bucket that allows anonymous listing and anonymous download. In S3, access is controlled by settings such as the bucket policy (a set of rules saying who may do what) and access control lists, or ACLs (per-item permissions). Granting read access to a special group called AllUsers, which means literally everyone, makes a bucket public. Amazon also offers an account-level switch called Block Public Access that overrides such grants, but only when it is switched on.

What the impact was

The researcher's own summary is careful. Most of the images seen were food photos, and not all contents had been checked. The concern raised is that the bucket could have held user PII, meaning personally identifiable information such as a name, address or payment details, for example if someone had uploaded a bill or a similar document into a chat. That is presented as a risk, not as something confirmed. The concrete impact stated is that an attacker can download all the images in bulk.

In general, how this kind of bug works

S3 buckets are private by default, but several independent settings decide who gets in: the bucket policy, the object ACLs, the permissions of the person making the request, and the account-level public access block. A bucket becomes publicly listable when a policy or ACL gives the list permission, called s3:ListBucket, to everyone, and publicly readable when it gives the download permission, s3:GetObject, the same way. The public access block exists to stop exactly this, but it only helps if it is enabled.

Two things make the exposure worse. First, listing turns a guessing problem into a download problem: without listing, an attacker must know or guess file names; with it, they can walk through every folder. Second, predictable names such as date-based folders make bulk collection easy even when listing is off, because there are only so many combinations to try.

Uploads from user-facing features are a common source of this bug. Storage for a chat or avatar feature is often set up quickly, outside the usual review of the main application, and a developer who makes a file public just to display it in a browser may never revisit that setting.

How to test for it

  1. Find the storage addresses. Look at image and file links in the application for hostnames shaped like <bucket>.s3.amazonaws.com, <bucket>.s3.<region>.amazonaws.com, s3.<region>.amazonaws.com/<bucket>, or a custom domain that points at S3. Upload features such as avatars, chat attachments, support tickets and receipts are the best places to look.
  2. Test anonymous download. Open a known file link with no login and no session cookie. A 200 response with the file contents confirms public read; 403 AccessDenied suggests the file is protected.
  3. Test anonymous listing. Request the bucket root and a known folder with no credentials. A 200 returning an XML ListBucketResult with Key entries confirms listing. AccessDenied on the root does not rule out listing on a sub-folder, so try folders you have seen in file links.
  4. Test write access separately. An unauthenticated PUT of a small test file, or a DELETE of a file you created, shows whether the bucket is writable. Only do this where the programme's rules allow it, and clean up afterwards.
  5. Check the naming pattern. If file names follow a date or ID pattern, note whether files outside the feature you found are reachable, since that decides the real scope.

A positive result is an unauthenticated response containing file data or a list of names. Common false positives: a 403 on the root that hides a listable folder; a bucket that returns NoSuchBucket because the name in the URL is an alias rather than the bucket itself; cached or CDN-fronted responses that look public but are served by a distribution with its own access control; and files that are intentionally public, such as marketing images, which carry no impact.

How it is fixed

The standard fix is to remove public grants: delete AllUsers and AuthenticatedUsers entries from the bucket policy and ACLs, and enable the account-level S3 Block Public Access settings so future mistakes are overridden. Applications should serve user uploads through signed URLs, which are temporary links carrying their own permission, or through a controlled proxy, rather than direct public links, and file names should not be trivially guessable. Where public hosting is genuinely required, restrict it to a dedicated bucket that never receives user content. Detection matters too: enable S3 access logging and alert on anonymous ListBucket calls.

Where to look when hunting

This bug class hides in secondary storage: chat attachments, support ticket uploads, invoice and receipt PDFs, exported reports, backups and mobile app assets. Useful signals include S3 hostnames in page source and JavaScript bundles, DNS records pointing at S3 or CloudFront, and upload responses that return a direct file link rather than a signed one. Certificate transparency logs, which publicly record issued HTTPS certificates, and subdomain enumeration often surface buckets the main application never links to.

To get a report accepted, show the unauthenticated request and response, state clearly what the files are, and quantify the exposure without downloading more than necessary: a count from the listing and a couple of representative file types are usually enough. If the content is sensitive, describe the category rather than reproducing it, and never publish personal data. If the files are non-sensitive, say so, because that changes the severity the triager will assign.

Glossary

  • S3 (Simple Storage Service): Amazon's cloud file storage, organised into buckets that hold objects.
  • Bucket: a named container in S3, like a folder at the top level.
  • Object: a single stored file in S3, such as one image.
  • AWS CLI: Amazon's command-line program for managing cloud services.
  • Anonymous access: using a service without logging in or presenting any credentials.
  • Listing: asking a bucket to return the names of the objects it contains.
  • Bucket policy: a set of rules attached to a bucket saying who may perform which actions.
  • ACL (access control list): per-object or per-bucket permissions naming who is allowed what.
  • AllUsers: a special S3 group meaning every person on the internet.
  • AuthenticatedUsers: a special S3 group meaning any AWS account holder, not just the owner.
  • s3:ListBucket: the permission to list the objects in a bucket.
  • s3:GetObject: the permission to download an object.
  • Block Public Access: an account-level S3 setting that overrides public grants when enabled.
  • Region: the geographic area where Amazon runs a data centre, here ap-southeast-1 for Singapore.
  • PII (personally identifiable information): data that can identify a specific person, such as a name, address or bill.
  • CVSS: a standard scoring system for the severity of a security flaw.
  • Signed URL: a temporary link that carries its own permission and expires.
  • CDN (content delivery network): a service that caches and serves files from many locations, with its own access rules.
  • CNAME: a DNS record that points one hostname at another.
  • Certificate transparency: public logs of issued HTTPS certificates, useful for discovering hostnames.
  • Triager: the person who reviews a submitted report and decides whether it is valid and how severe it is.

More by yashrs

View all

6 more disclosed reports, best first.

More from Eternal

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.