Email storage leaking ticket-attachment
A Google Cloud Storage bucket used for ticket attachments had directory listing enabled, so anyone who visited the bucket URL could browse and see the stored files. The reporter found it by following an image link in a support email and then reported the exposed listing.
As part of the Google VRP reward process I received a Google Ticket acknowledgment email from “Google GUTS” this email had an image embedded from https://storage.googleapis.com/guts/ when visiting directly I noticed listing was enabled and I saw https://storage.googleapis.com/guts/ticket-attachments/ that I then…
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.
What the report shows
The target was a Google Cloud Storage bucket whose base URL appeared in an embedded image in a Google Ticket acknowledgment email. The researcher, NDevTK, did not start from the bucket: he started from an email. During the Google VRP reward process he received a Google Ticket acknowledgment email from "Google GUTS". That email had an image embedded from the following base URL:
https://storage.googleapis.com/guts/
When he visited that URL directly, he noticed that listing was enabled. Listing was enabled, and he saw the following path:
https://storage.googleapis.com/guts/ticket-attachments/
He reported that path. The report stops there: it does not describe the contents of the prefix, the number of objects, any individual attachment, or the response to a request against the prefix itself. It also does not give a severity rating or a CVSS score. The platform record shows a bounty of 5,000 USD and a disclosure date of 30 December 2021.
The chain is short:
- Receive a transactional email from the ticketing system.
- Note the host that serves the embedded image.
- Request the bucket root directly instead of the image path.
- Note that listing was enabled.
- See the path
ticket-attachments. - Report the exposed prefix.
Root cause
The report only states that listing was enabled; it does not say which IAM role, ACL or bucket policy produced that state. Serving an image from a bucket requires read access to that object, but it does not require the ability to enumerate the bucket. When listing is left on, the bucket becomes a directory index of everything stored in it, including prefixes that were never meant to be discoverable.
Impact
The report's own claim is narrow: a listing was enabled and a ticket-attachment path was seen. The prefix name suggests that files attached to support tickets live there. A listing, where present, can reveal the names of stored objects without guessing.
How this kind of bug works
Object storage separates two permissions that are easy to conflate: the right to read a specific object, and the right to list the container. Applications frequently need the first and almost never need the second for public traffic. A bucket that serves public assets therefore often ends up with a policy that is broader than the application requires, and listing is the visible symptom.
Enumeration matters because it defeats the usual protection of unguessable names. Random object keys are a form of access control by obscurity; once a listing is available, that protection is gone and every key becomes known. The same class of exposure appears with directory indexes on web servers, exposed backup directories, and open indices in search clusters or log stores.
Defences are straightforward: keep the bucket private and serve objects through the application or through signed URLs; if public read is genuinely needed, grant object read without list permission; enable the storage provider's public-access prevention settings; and monitor for buckets that answer a listing request with content rather than an error.
How to test for it
Look for storage hostnames in places where the application emits URLs: transactional emails, exported reports, PDFs, image tags in marketing pages, mobile app traffic, JavaScript bundles and error pages. Any hostname of the form used by a cloud storage provider is a candidate.
- Take the full object URL and strip everything after the bucket name.
- Request the bucket root with no query string and no authentication.
- Also request a known prefix, with and without a trailing slash, since some configurations list a prefix while denying the root.
- Try the provider's list API form as well as the plain HTTP form, because the two can be governed by different permissions.
- If a listing comes back, look for prefixes whose names imply sensitive content: attachments, uploads, backups, exports, invoices, avatars, temp.
A positive result is an XML or JSON listing document containing Contents or Key entries, returned to an unauthenticated client. A single object that downloads successfully is a different finding: public object read without listing.
Common false positives: a listing that contains only deliberately public static assets such as site images or fonts; a listing page that is actually an application error rendered with a 200 status; a bucket that returns a listing only to authenticated principals, which you should confirm by repeating the request without credentials; and cached responses from a CDN in front of the bucket.
How it is fixed
Remove list permission from all untrusted principals, including allUsers and any broad authenticated group, and keep object read only where the application truly needs it. Where public delivery is required, front the bucket with a CDN or application endpoint and keep the bucket itself private. Enable public-access prevention at the organisation or project level so a future policy change cannot silently reopen the bucket. Audit existing policies for list grants, and review logs for listing requests from unexpected sources.
Hunting notes
This class hides wherever an application hands out storage URLs: email templates, attachment download links, rich-text editors that embed images, data exports, and mobile API responses. Recon signals include storage hostnames in page source and in email, bucket names that match the product or team, and object keys that look sequential or human-readable rather than random.
What happened, in plain words
This report is about a storage service where listing was enabled. The researcher, NDevTK, found it by accident while taking part in Google's bug bounty programme, which pays people for reporting security problems.
During the Google VRP reward process, NDevTK received a Google Ticket acknowledgment email from "Google GUTS". NDevTK received one of these emails from "Google GUTS". The email contained an image, and that image was not stored on Google's normal website but on a separate storage service. The address the image was loaded from was:
https://storage.googleapis.com/guts/
Think of this like a photo in a letter: the letter is the email, but the photo itself lives in a warehouse somewhere else, and the email just points to it. The address above is the warehouse's front door.
Instead of opening the image, NDevTK typed that address into a browser directly. Normally, a storage service should refuse to show you anything unless you ask for a specific file by its exact name. But here listing was enabled, like a warehouse that hands you an inventory of every shelf.
He saw this path:
https://storage.googleapis.com/guts/ticket-attachments/
The path was ticket-attachments. NDevTK reported that path.
The report stops there. It does not describe what was inside that folder, how many files it held, or whether any individual file could be downloaded. It also gives no severity rating or CVSS score. The platform record shows a bounty of 5,000 USD and a disclosure date of 30 December 2021.
The chain of events is short, and it helps to see it as steps:
- Receive an automatic email from the ticketing system.
- Notice which storage service the embedded image comes from.
- Request the storage service's root address directly, instead of the image's address.
- Note that listing was enabled.
- See the path
ticket-attachments. - Report the exposed folder.
Each step matters. The email is the clue: it tells you where the organisation keeps files. Requesting the root instead of the image is the test: it checks whether the service will reveal its inventory. Reporting the folder is the action: it tells the owner what is exposed so they can close it.
In general, how this kind of bug works
Cloud storage services, such as Google Cloud Storage, hold files called objects inside containers called buckets. A bucket is like a filing cabinet and each object is a document inside it. The service has two separate permissions that are easy to mix up:
- The right to read one specific object, for example the image in the email.
- The right to list the bucket, meaning to see the names of everything inside it.
A website that shows a public image needs the first permission. It almost never needs the second, because visitors only ever ask for files by name. When the second permission is left switched on for everyone, the bucket behaves like an open directory: anyone who visits the root address gets an inventory.
Why does that matter? Because many systems rely on file names being hard to guess. If a file is called something long and random, an outsider cannot find it without the exact name. That is protection by obscurity, like hiding a spare key under a particular flowerpot: it works only as long as nobody knows which pot. A listing removes that protection entirely, because every name is handed over at once.
The same mistake appears in other places: web servers that show a directory index when no home page exists, backup folders left browsable, and search or logging systems that answer queries without a password.
The usual fixes are simple:
- Keep the bucket private and let the application serve files on the user's behalf, or hand out temporary signed links.
- If public reading is genuinely needed, allow reading objects but not listing the bucket.
- Switch on the storage provider's settings that block public access by default.
- Watch for buckets that answer a listing request with content instead of an error.
In general, how to test for it
Storage addresses turn up wherever an application produces links: automatic emails, exported reports, PDFs, images on marketing pages, mobile app traffic, JavaScript files and error pages. Any address on a cloud storage provider's domain is worth a look.
- Take the full file address and cut everything after the bucket name.
- Request the bucket root with no extra parameters and without logging in.
- Also request a known folder name, both with and without a trailing slash, because some setups list a folder while refusing the root.
- Try the provider's listing interface as well as the plain web address, since the two can be governed by different permissions.
- If a list comes back, look for folder names that suggest sensitive content: attachments, uploads, backups, exports, invoices, avatars, temp.
A positive result is a listing document, in XML or JSON, containing entries for the stored files, returned to someone who is not logged in. A single file that downloads successfully is a different finding: that is public reading without listing.
Common false positives to rule out:
- A list that contains only deliberately public assets such as site images or fonts.
- A page that looks like a listing but is really an error message shown with a success status.
- A bucket that lists only for logged-in users, which you confirm by repeating the request without credentials.
- Cached responses from a content delivery network sitting in front of the bucket.
In general, how it is fixed
Remove the list permission from anyone untrusted, including the special group that means "everyone" and any broad group of logged-in users, and keep object reading only where the application truly needs it. Where public delivery is required, put a content delivery network or an application endpoint in front and keep the bucket itself private. Turn on public-access prevention at the organisation or project level so a future policy change cannot quietly reopen the bucket. Audit existing policies for list grants, and review logs for listing requests from unexpected sources.
In general, hunting notes
This class of bug hides wherever an application hands out storage addresses: email templates, attachment download links, editors that embed images, data exports and mobile API responses. Useful signals include storage addresses in page source and in email, bucket names that match the product or team, and file names that look sequential or human-readable rather than random.
Glossary
- Bug bounty programme: a scheme where an organisation pays people for reporting security problems to it.
- Bucket: a container in a cloud storage service that holds files, called objects.
- Object: a single file stored in a cloud storage bucket.
- Cloud storage service: an online service for storing and serving files, such as Google Cloud Storage.
- Listing: the response that shows the names of everything stored in a bucket or folder.
- Prefix: the leading part of a file path that acts like a folder name.
- Root: the top-level address of a bucket, with nothing after the bucket name.
- Permission: a rule saying who may do what with a stored file or bucket.
- Access denied: the error returned when a service refuses a request.
- Enumeration: systematically discovering the names of things that exist, such as files in a bucket.
- Security by obscurity: relying on something being hard to guess, such as a random file name, rather than on real access control.
- Signed URL: a temporary link that grants access to one file for a limited time.
- Content delivery network (CDN): a network of servers that caches and serves content close to users.
- False positive: a result that looks like a problem but is not one.
- CVSS: a standard scoring system for rating the severity of a security flaw.
- Severity rating: a label describing how serious a security flaw is.
- IAM role: a named set of permissions in a cloud platform.
- ACL: an access control list, a per-file or per-bucket rule about who may access it.
- Bucket policy: a set of rules attached to a bucket that says who may do what.
- Public-access prevention: a cloud setting that blocks making storage public by accident.
- Transactional email: an automatic email triggered by an action, such as a ticket acknowledgment.