Exposure of Shareable AWS S3 Pre-Signed Download URLs for Paid Digital Products
GraphQL product responses included AWS S3 pre-signed download URLs for paid digital products, valid for about 24 hours. Anyone holding such a URL could fetch the file directly from S3 without a Linktree session, potentially bypassing purchase checks.
Published on medium.com
Bug Bounty
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.
Context
Linktree offers a digital-product feature: creators can sell downloadable digital content, and buyers retrieve it through the application. GraphQL responses returned AWS S3 pre-signed download URLs as part of the product and listing data.
While testing that functionality, I found that GraphQL responses exposed AWS S3 pre-signed download URLs for digital products. The URLs came back as part of the product/listing data and carried the usual AWS S3 signing parameters.
Setup
The testing was carried out against Linktree's digital-product functionality, inspecting the GraphQL responses returned when retrieving product information. The report does not describe any special accounts, roles, tools or versions; the work consisted of inspecting GraphQL responses and then requesting the returned URL directly.
Finding it
When retrieving product information, I inspected the GraphQL responses. A field similar to:
listing.url
contained an AWS S3 pre-signed URL. The URL included AWS signing parameters such as:
X-Amz-AlgorithmX-Amz-CredentialX-Amz-DateX-Amz-ExpiresX-Amz-Signature
The observed expiration value was:
X-Amz-Expires=86400
which corresponds to a validity period of approximately 24 hours.
A pre-signed S3 URL is effectively a temporary bearer capability. Anyone who possesses a valid URL can generally access the associated S3 object until the signature expires, subject to the permissions encoded into that signed URL. Exposing such a URL through an API response therefore deserves careful authorization analysis, particularly when the underlying object represents paid digital content.
Exploitation
Step 1: Retrieve the product information
I obtained the product information through the application's GraphQL functionality and inspected the returned listing.url value. The response contained a signed AWS S3 URL.
Step 2: Request the URL without the session
I then tested the URL independently of the application's normal authenticated download flow. The URL could be requested directly without supplying the Linktree session that originally exposed the URL.
The important security property was therefore that possession of the signed URL was sufficient to access the underlying object during its validity period.
Root cause
The application exposed a bearer-style S3 download capability through the GraphQL response. Application-level authorization and object-level S3 access therefore need to be carefully aligned. A signed URL should only be generated and returned when the requesting user is authorized to access the corresponding object.
Impact
If the signed URL corresponds to content that should only be available to a paying customer, exposing the URL to an unauthorized party could allow the content to be downloaded directly from S3. Potential consequences include:
- Unauthorized access to digital products
- Sharing of temporary download URLs
- Circumvention of application-level access controls
- Loss of control over paid digital content
- Potential redistribution of purchased content
The exact impact depends on whether the URL is intentionally exposed to the requesting user and whether the corresponding object is supposed to be restricted to purchasers.
Fix
Possible mitigations include:
- Generate pre-signed URLs only after verifying the user's entitlement.
- Keep sensitive product objects private in S3.
- Use short expiration periods where practical.
- Avoid exposing download URLs earlier than necessary.
- Bind access to the application's authorization/entitlement logic.
- Consider a controlled download endpoint that verifies authorization before issuing a short-lived signed URL.
- Monitor and revoke/rotate exposed URLs where possible.
Variants to test
- Other GraphQL fields returning storage URLs. Query product, listing and order objects and look for fields whose values contain
X-Amz-Signatureor similar signing parameters. - Entitlement checks around URL generation. Request product data with an account that has no purchase and with one that has.
- Expiration windows. Compare the
X-Amz-Expiresvalue across responses. - Direct object access. Take a returned URL and request it without the application session.
- Other storage backends. Check whether equivalent signed URLs are issued for other providers or CDNs.
What happened, in plain words
Linktree is a website where people build a single page of links to everything they do online. One of its features lets creators sell digital products, for example a downloadable file such as a guide, a template or a pack of images. A buyer pays, and then downloads the file through the Linktree application.
The download addresses point at Amazon S3, which is Amazon's online storage service. which is Amazon's online storage service: think of it as a very large, very reliable online filing cabinet that any website can rent space in.
That special address is called a pre-signed URL. "URL" is just the address of something on the web, the text you type in the address bar. "Pre-signed" means the address has been stamped with a cryptographic signature by whoever owns the file, so S3 can check the stamp and serve the file without asking the visitor to log in. It works a bit like a cloakroom ticket: whoever holds the ticket gets the coat, no questions asked, until the ticket expires.
While testing this feature, the researcher found that Linktree's GraphQL responses included these pre-signed S3 addresses for digital products. GraphQL is a way for a website's front end to ask its back end for exactly the data it needs, and the answer comes back as structured data. The addresses came back as part of the normal product and listing data, and they carried the usual AWS S3 signing parameters, which are the pieces of the signature written into the address.
The researcher then requested one of those addresses directly, without supplying the Linktree session that had exposed it. It worked. That is the core of the finding: holding the address was enough to get the file, for as long as the signature stayed valid.
Context
To follow the rest of this article you only need a few ideas.
- API: the private doorway a website's own pages use to talk to its servers. When you click something on a site, your browser usually does not fetch the data itself; it asks the API, and the API answers with data. It is like a restaurant: you (the browser) order from the menu, the kitchen (the API) prepares the dish, and the waiter brings it back. You never walk into the kitchen yourself.
- GraphQL: one particular style of API. Instead of many fixed addresses for many fixed answers, the browser sends a description of the exact fields it wants, and the server returns just those fields. If you ask for a product's name and price, you get the name and price, not the whole product record.
- Session: the proof that you are logged in. When you sign in, the site gives your browser a small piece of data (often called a cookie) that it sends back on every later request, so the server recognises you. It is like a wristband at an event: show it at the door and you get in without showing your ID again.
- AWS S3: Amazon's cloud storage service, where files are kept as "objects" inside "buckets". A bucket is a named container, and an object is a single file inside it.
- Pre-signed URL: a web address for an S3 object that already contains a signature proving the owner allowed this access. Anyone who has the address can use it until it expires, without logging in to anything. It is a bearer capability: the holder of the ticket is treated as entitled, no matter who they are.
Linktree offers a digital-product feature: creators can sell downloadable digital content, and buyers retrieve it through the application. GraphQL responses returned AWS S3 pre-signed download URLs as part of the product and listing data.
While testing that functionality, the researcher found that GraphQL responses exposed AWS S3 pre-signed download URLs for digital products. The URLs came back as part of the product/listing data and carried the usual AWS S3 signing parameters.
In plain terms: the shop window was handing out cloakroom tickets along with the product description, and the tickets were good for the goods themselves.
Setup
The testing was carried out against Linktree's digital-product functionality, inspecting the GraphQL responses returned when retrieving product information. The report does not describe any special accounts, roles, tools or versions; the work consisted of inspecting GraphQL responses and then requesting the returned URL directly.
Why start here? Because the feature is the place where the interesting data lives. If a site is going to hand out addresses to paid files, it will do so while describing products and listings, so that is where you look.
Finding it
When retrieving product information, the researcher inspected the GraphQL responses. A field similar to:
listing.url
contained an AWS S3 pre-signed URL.
What this snippet means, piece by piece:
listingis the name of a block of data in the response, describing a product listing..urlis one field inside that block, holding a web address.- Together,
listing.urlsays: inside the listing data, look at the field called url.
The word "similar" matters: the report gives this as an example of the kind of field name, not as a guaranteed exact name in every response. The point is that a field holding a web address, inside product or listing data, contained a signed S3 address rather than an ordinary Linktree page address.
The URL included AWS signing parameters such as:
X-Amz-AlgorithmX-Amz-CredentialX-Amz-DateX-Amz-ExpiresX-Amz-Signature
These are the parts of the address that make up the signature. Reading them one by one:
X-Amz-Algorithmsays which signing method was used, so S3 knows how to check the stamp.X-Amz-Credentialidentifies which AWS identity signed the address.X-Amz-Daterecords when the signature was made.X-Amz-Expiressays how many seconds the address stays valid.X-Amz-Signatureis the stamp itself, the value S3 recomputes and compares.
Seeing these names in a URL is the giveaway that you are looking at a pre-signed S3 address rather than a normal link. A normal link to a page has no signature; this one carries its own permission slip.
The observed expiration value was:
X-Amz-Expires=86400
which corresponds to a validity period of approximately 24 hours.
Line by line: X-Amz-Expires is the parameter name, = separates the name from its value, and 86400 is the number of seconds. There are 60 seconds in a minute, 60 minutes in an hour and 24 hours in a day, so 60 × 60 × 24 = 86,400. In other words, once such an address is created, it keeps working for a full day.
A pre-signed S3 URL is effectively a temporary bearer capability. Anyone who possesses a valid URL can generally access the associated S3 object until the signature expires, subject to the permissions encoded into that signed URL. Exposing such a URL through an API response therefore deserves careful authorization analysis, particularly when the underlying object represents paid digital content.
Why does this matter so much? Because the address is the permission. With a normal download, the site checks your session on every request: are you logged in, did you buy this? With a pre-signed address, that check has already been done once, at the moment the address was created, and the result is baked into the address. After that, S3 only checks the signature and the clock. So the question becomes: who was allowed to receive that address in the first place? That is what "authorization analysis" means here, working out whether the right people, and only the right people, can obtain the address.
Exploitation
Step 1: Retrieve the product information
The researcher obtained the product information through the application's GraphQL functionality and inspected the returned listing.url value. The response contained a signed AWS S3 URL.
Why this step? To see what the application itself hands out during normal use. If the address appears in the answer to an ordinary product request, then anyone who can make that request can read it. The researcher did not need to guess anything: the application volunteered the address as part of its own data.
Step 2: Request the URL without the session
The researcher then tested the URL independently of the application's normal authenticated download flow. The URL could be requested directly without supplying the Linktree session that originally exposed the URL.
Why this step? Because the interesting question is not whether the address exists, but whether the address alone is enough. The normal download flow goes through Linktree, which can check your session. Opening the address directly skips Linktree entirely and talks straight to S3. If that works, the session was never the thing protecting the file; the address was.
The important security property was therefore that possession of the signed URL was sufficient to access the underlying object during its validity period.
In everyday terms: the bouncer at the club door checked your name against the list, but the cloakroom ticket he handed you let anyone at all collect the coat for the next 24 hours.
Root cause
The application exposed a bearer-style S3 download capability through the GraphQL response. Application-level authorization and object-level S3 access therefore need to be carefully aligned. A signed URL should only be generated and returned when the requesting user is authorized to access the corresponding object.
Unpacking that: there are two separate doors. The first is the application, which knows who you are and what you bought. The second is S3, which knows nothing about you and only checks the signature. If the first door hands out a key to the second door too freely, the second door's lock is irrelevant. The two checks have to agree: the application should only create a signed address for someone it has already decided is entitled to the file.
Impact
If the signed URL corresponds to content that should only be available to a paying customer, exposing the URL to an unauthorized party could allow the content to be downloaded directly from S3. Potential consequences include:
- Unauthorized access to digital products
- Sharing of temporary download URLs
- Circumvention of application-level access controls
- Loss of control over paid digital content
- Potential redistribution of purchased content
Taking those one at a time:
- Unauthorized access to digital products: someone who never paid can obtain the file.
- Sharing of temporary download URLs: because the address is the permission, it can be pasted into a chat and used by others, just like sharing a password.
- Circumvention of application-level access controls: the checks Linktree performs are skipped, because the download no longer goes through Linktree.
- Loss of control over paid digital content: the creator and the platform can no longer decide who gets the file.
- Potential redistribution of purchased content: once downloaded, a file can be copied and passed on freely.
The exact impact depends on whether the URL is intentionally exposed to the requesting user and whether the corresponding object is supposed to be restricted to purchasers.
That caveat is important and honest. If the address is meant to be shown to the buyer anyway, and the file is meant for that buyer, then the exposure is expected. The concern arises when the address reaches people who are not entitled to the file, or when it is handed out before a purchase is checked.
Fix
Possible mitigations include:
- Generate pre-signed URLs only after verifying the user's entitlement.
- Keep sensitive product objects private in S3.
- Use short expiration periods where practical.
- Avoid exposing download URLs earlier than necessary.
- Bind access to the application's authorization/entitlement logic.
- Consider a controlled download endpoint that verifies authorization before issuing a short-lived signed URL.
- Monitor and revoke/rotate exposed URLs where possible.
What each one means in plain words:
- Check first, sign second: only create the address once the application has confirmed the person is allowed the file.
- Keep the files private in S3, so the only way in is through a signed address, not a public one.
- Make the address expire quickly, so a leaked address is useful only briefly.
- Do not put the address in data that is sent before it is needed, such as a general product page.
- Tie the address to the same entitlement logic the rest of the application uses, so there is one rule, not two.
- Use a download link on the application that checks permission and then redirects to a freshly signed, short-lived address.
- Watch for addresses that have been exposed and cancel or replace them where the system allows it.
Variants to test
These are follow-up checks in the same spirit, written for someone new to this.
- Other GraphQL fields returning storage URLs. Ask for product, listing and order data and look for any field whose value contains
X-Amz-Signatureor similar signing parameters. In other words: search the whole answer, not just one field, for the tell-tale signature names. - Entitlement checks around URL generation. Request product data with an account that has no purchase and with one that has. If both accounts get the same ticket, the ticket is not tied to a purchase.
- Expiration windows. Compare the
X-Amz-Expiresvalue across responses. The longer the ticket lasts, the more damage a leak can do. - Direct object access. Take a returned URL and request it without the application session. This is the same test as Step 2 above, repeated on other addresses.
- Other storage backends. Check whether equivalent signed URLs are issued for other providers or CDNs. A CDN is a content delivery network, a service that caches and serves files from locations near the visitor; the same idea of a self-authorising address can appear there too.
Conclusion
AWS S3 pre-signed URLs are useful for controlled downloads, but they should be treated as temporary bearer credentials. When such URLs are exposed through an API, the application must ensure that only users who are authorized to access the underlying object can obtain a valid URL.
Put simply: a signed address is a password with an expiry date. Treat it with the same care, hand it out only to the right people, and make it short-lived.
Glossary
- API: the doorway a website's own pages use to ask its servers for data or actions.
- Bearer capability: a permission that belongs to whoever holds it, like a cloakroom ticket; no identity check is made.
- Bucket: a named container in S3 that holds objects.
- CDN: content delivery network, a service that caches and serves files from locations near the visitor.
- Cookie: a small piece of data a site stores in your browser and receives back on later requests, often used to keep you logged in.
- Entitlement: the decision that a particular user is allowed a particular thing, such as a purchased file.
- GraphQL: an API style where the browser asks for specific fields and the server returns exactly those fields.
- Object: a single file stored in S3.
- Pre-signed URL: a web address for an S3 object that carries a signature granting access until it expires, with no login required.
- Session: the proof that you are logged in, usually carried by a cookie.
- Signature: a cryptographic value that lets the storage service verify that the address was created by someone authorised to create it.
- URL: the address of something on the web.
- X-Amz-Algorithm: the signing parameter that names the method used to create the signature.
- X-Amz-Credential: the signing parameter that identifies which AWS identity signed the address.
- X-Amz-Date: the signing parameter that records when the signature was made.
- X-Amz-Expires: the signing parameter that gives the number of seconds the address stays valid.
- X-Amz-Signature: the signing parameter holding the signature itself.