Skip to content
Cache bugs Disclosed report Intermediate

URL Path Manipulation Enables Cache Poisoning of Amazon Affiliate Products in Shopify Linkpop

A cache poisoning flaw in Shopify's Linkpop allowed an attacker to craft a URL with a path traversal sequence that caused the victim's legitimate Amazon product to be replaced by the attacker's product in the cache. When a victim added the legitimate product, they would unknowingly display the attacker's product instead.

saltymermaid Follow

Originally disclosed on HackerOne

Bounty$500 Low 3.0 View original
  • Triaged in 4 days
  • Fixed in 2.4 years
  • Paid in 6 days
  • Disclosed after 2.5 years

Summary by the program

A cache poisoning vulnerability in Shopify's Linkpop allowed attackers to manipulate Amazon affiliate product displays through specially crafted URLs. When victims added legitimate Amazon products, they would unknowingly display the attacker's products instead. In the end, this low severity issue was not fixed as the Linkpop service was scheduled for decommissioning on July 7, 2025.

The report

Summary

The fix in report ████████ seems to prevent correctly an attacker from redirecting the request to another domain which was the main issue, however, there is still a way for that attacker to "poison" the cache usin the Amazon domain. I believe the regex used to parse the url is the cause.

Description

If an attacker uses a crafted link such as https://amazon.ca/dp/[VICTIM-PRODUCT-ID]/../[ATTACKER-PRODUCT-ID], anyone who will then try to use the "victim" product link https://amazon.ca/dp/[VICTIM-PRODUCT-ID] will be shown the attacker controlled product. This way works even better because when you click the link button on the victim's page, it will even redirect to the attacker's product.

Steps to Reproduce

  1. Have two Amazon products ID in hands (which haven't been cached yet) 1.1. Attacker Product ID: ██████ (https://www.amazon.ca/dp/███) 1.2. Victim Product ID: ████ (https://www.amazon.ca/dp/███████)

  2. In your attacker's Linkpop account, add a new Amazon product using the following crafted link https://amazon.ca/dp/[VICTIM-PRODUCT-ID]/../[ATTACKER-PRODUCT-ID] and make sure to replace the placholders 2.1. Based on the ID's in step #1, you could use the following link https://amazon.ca/dp/███/../████████

  3. Now, in the victim's Linkpop account, try to add the following product https://www.amazon.ca/dp/█████████, which is the "victim" product ID from step #1. At that point you should be faced with the attacker's product (███) instead of the victim's product (███s).

Notes

You can test the POC with the IDs I've provided. I haven't used them and luckily they won't be in the cache yet. If they are, you should notice it when adding the product as it will resolve very quickly (< 1s). If it doesn't work you you will have to find new product IDs.

Impact

An attacker is able to manipulate the caching system to its avantage by sending a crafted link which can trick victims to unintentionally link a spoofed Amazon product to their Linkpop accounts.

The original report as published on HackerOne, by saltymermaid. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 5 min read.

Context

Linkpop was a Shopify-developed app for building link-in-bio pages. One of its features let a user attach an Amazon product to their page: the user supplies an Amazon product URL, Linkpop fetches or resolves that URL, and the resulting product is displayed on the page.

The report concerns a cache poisoning flaw in that resolution step. A previous report had already addressed an attacker redirecting the request to another domain, and that fix appears to have worked. What remained was a way to poison the cache while staying on the Amazon domain, by abusing how the URL path is parsed.

The issue was rated low severity (CVSS 3.0) and paid a 500 USD bounty. It was not fixed: the Linkpop service was scheduled for decommissioning on 7 July 2025.

Setup

Two Linkpop accounts are needed: one belonging to the attacker and one belonging to the victim. The attacker also needs two Amazon product IDs that have not yet been cached by Linkpop, one to act as the attacker's product and one to act as the victim's product. The report notes that the researcher's own example IDs had not been used and would not yet be in the cache.

No special tooling is described. The whole test is done through the normal product-adding flow in each account.

Finding it

The researcher started from the fix for an earlier report, which prevented an attacker from redirecting the request to another domain. That was the main issue in the previous report, and the fix appears to block it correctly. The researcher's observation was that an attacker could still poison the cache while remaining on the Amazon domain, and suspected the regular expression used to parse the URL as the cause.

The idea is path traversal inside the Amazon URL. If the crafted link is:

Text
https://amazon.ca/dp/[VICTIM-PRODUCT-ID]/../[ATTACKER-PRODUCT-ID]

then anyone who later uses the plain victim link:

Text
https://amazon.ca/dp/[VICTIM-PRODUCT-ID]

is shown the attacker-controlled product instead. The researcher notes this variant works even better than the original issue, because clicking the link button on the victim's page also redirects to the attacker's product.

Exploitation

Step 1: pick two uncached product IDs

Obtain two Amazon product IDs that have not yet been cached. In the report these are:

  1. Attacker Product ID: ██████ (https://www.amazon.ca/dp/███)
  2. Victim Product ID: ████ (https://www.amazon.ca/dp/███████)

The IDs are redacted here, but the structure matters: one ID belongs to the attacker's product, the other to the product the victim will legitimately try to add. Both must be absent from the cache, otherwise the poisoning has nothing to overwrite.

Step 2: add the crafted product in the attacker's account

In the attacker's Linkpop account, add a new Amazon product using the crafted link, replacing the placeholders:

Text
https://amazon.ca/dp/[VICTIM-PRODUCT-ID]/../[ATTACKER-PRODUCT-ID]

With the IDs from step 1, the concrete link is:

Text
https://amazon.ca/dp/███/../████████

That is the poisoning primitive: the cache entry for the victim's product is filled with the attacker's product.

Step 3: add the victim product in the victim's account

In the victim's Linkpop account, try to add the victim product:

Text
https://www.amazon.ca/dp/█████████

This is the victim product ID from step 1. At this point the victim should be shown the attacker's product instead of their own. The victim believes they are linking a legitimate Amazon product, but the page displays the attacker's product, and the link button on the page redirects to the attacker's product as well.

Testing notes

The researcher offers the IDs as a proof of concept and notes they had not been used, so they would not yet be in the cache. If they are already cached, this is visible when adding the product: it resolves very quickly, in under one second. If the test does not work, new product IDs have to be found.

Root cause

The researcher attributes the bug to the regular expression used to parse the URL. The previous fix stopped redirects to another domain, but the parser still accepted a path that traverses out of the victim's product path and into the attacker's product path while the URL as a whole still names the victim's product. The cache key and the resolved content therefore diverge: the key is the victim's product URL, the value is the attacker's product.

The domain check from the earlier fix did not help, because the crafted URL never leaves amazon.ca.

Impact

An attacker can manipulate the caching system to their advantage by sending a crafted link, tricking victims into unintentionally linking a spoofed Amazon product to their Linkpop accounts. The victim adds what looks like a legitimate Amazon product and ends up displaying the attacker's product, including on the link button. The report does not describe any further consequence beyond the spoofed product display and redirect.

Fix

No fix was applied. The report states that the low severity issue was not fixed because the Linkpop service was scheduled for decommissioning on 7 July 2025.

  1. Other traversal encodings on the same parameter: %2e%2e/, ..%2f, double-encoded %252e%252e%252f, and backslash variants. A positive result is the victim's product URL resolving to the attacker's product.
  2. Trailing and leading path segments: extra /, . segments, or a fragment or query appended after the attacker ID. A positive result is the same cache key collision with a different payload shape.
  3. Case and host variations on the allowed domain, such as www.amazon.ca versus amazon.ca, if both are accepted. A positive result is a cache entry written under one form and read under the other.
  4. Other URL-fetching features in the same product that cache by URL, such as link previews or metadata fetchers. A positive result is content from one URL stored under another URL's key.

This kind of bug tends to hide wherever a user-supplied URL is fetched server-side and the result is cached under the URL as submitted, especially in link-in-bio, preview and unfurl features. The signal during recon is a feature that resolves third-party product or page URLs and shows a cached result; a second signal is a previous fix that only added a domain allowlist, since that leaves path handling untouched. The researcher demonstrated impact by showing the full victim flow: the victim adds a legitimate product URL and is shown the attacker's product, with the link button also redirecting there. The report also gives a practical way to tell whether a candidate ID is already cached, by watching for a sub-second resolution.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 8 min read.

What happened, in plain words

Linkpop was a Shopify-developed app for building link-in-bio pages. One of its features let you attach an Amazon product to your page. You pasted an Amazon product link, Linkpop looked it up, and the product appeared on your page.

A cache is a storage area that holds the result of an expensive or slow operation so that the next request can be answered quickly. Think of it as a shelf where a shop keeps the items that customers ask for most often, so the staff do not have to walk to the warehouse every time.

An attacker could craft an Amazon link that looked like it pointed at the victim's product but actually contained a path that stepped back and landed on the attacker's product. From then on, anyone who added the victim's product saw the attacker's product instead.

This is called cache poisoning: putting the wrong content into a cache so that later, legitimate users receive it. The issue was rated low severity (CVSS 3.0) and paid a 500 USD bounty. It was never fixed, because Linkpop was scheduled to be shut down on 7 July 2025.

Background: the app and the feature

A link-in-bio page is a single web page, usually linked from a social media profile, that lists several links. The feature at the centre of this report let a user attach an Amazon product to their page. The user supplies an Amazon product URL, Linkpop fetches or resolves that URL, and the resulting product is displayed on the page.

A cache key is the label under which a cached result is stored. If two requests produce the same key, the second request gets the stored result without doing the lookup again.

A previous report had already addressed an attacker redirecting the request to another domain, and that fix appears to have worked. What remained was a way to poison the cache while staying on the Amazon domain, by abusing how the URL path is parsed.

Setting up the test

Two Linkpop accounts are needed: one belonging to the attacker and one belonging to the victim. The attacker also needs two Amazon product IDs that have not yet been cached by Linkpop, one to act as the attacker's product and one to act as the victim's product. The report notes that the researcher's own example IDs had not been used and would not yet be in the cache.

No special tooling is described. The whole test is done through the normal product-adding flow in each account.

Finding it

The researcher started from the fix for an earlier report, which prevented an attacker from redirecting the request to another domain. That was the main issue in the previous report, and the fix appears to block it correctly. The researcher's observation was that an attacker could still poison the cache while remaining on the Amazon domain, and suspected the regular expression used to parse the URL as the cause. A regular expression, or regex, is a pattern used by programs to match and extract parts of text, such as pulling the product ID out of a URL.

The idea is path traversal inside the Amazon URL. Path traversal means using special path segments, most commonly ../, to move from one folder to another in a file path or URL. In a web address, ../ means "go up one level", just as it does in a folder path on a computer. If the crafted link is:

Text
https://amazon.ca/dp/[VICTIM-PRODUCT-ID]/../[ATTACKER-PRODUCT-ID]

then anyone who later uses the plain victim link:

Text
https://amazon.ca/dp/[VICTIM-PRODUCT-ID]

is shown the attacker-controlled product instead. The researcher notes this variant works even better than the original issue, because clicking the link button on the victim's page also redirects to the attacker's product.

Exploitation

Step 1: pick two uncached product IDs

Obtain two Amazon product IDs that have not yet been cached. In the report these are:

  1. Attacker Product ID: ██████ (https://www.amazon.ca/dp/███)
  2. Victim Product ID: ████ (https://www.amazon.ca/dp/███████)

The IDs are redacted here, but the structure matters: one ID belongs to the attacker's product, the other to the product the victim will legitimately try to add.

Step 2: add the crafted product in the attacker's account

In the attacker's Linkpop account, add a new Amazon product using the crafted link, replacing the placeholders:

Text
https://amazon.ca/dp/[VICTIM-PRODUCT-ID]/../[ATTACKER-PRODUCT-ID]

With the IDs from step 1, the concrete link is:

Text
https://amazon.ca/dp/███/../████████

That is the poisoning primitive: the cache entry for the victim's product is filled with the attacker's product.

Step 3: add the victim product in the victim's account

In the victim's Linkpop account, try to add the victim product:

Text
https://www.amazon.ca/dp/█████████

This is the victim product ID from step 1. At this point the victim should be shown the attacker's product instead of their own. The victim believes they are linking a legitimate Amazon product, but the page displays the attacker's product, and the link button on the page redirects to the attacker's product as well.

Why this step matters: it proves the impact from the victim's point of view. The victim does nothing unusual; they paste a normal Amazon link and get the attacker's product.

Testing notes

The researcher offers the IDs as a proof of concept and notes they had not been used, so they would not yet be in the cache. If they are already cached, this is visible when adding the product: it resolves very quickly, in under one second. If the test does not work, new product IDs have to be found.

Root cause

The researcher attributes the bug to the regular expression used to parse the URL. The previous fix stopped redirects to another domain, but the parser still accepted a path that traverses out of the victim's product path and into the attacker's product path while the URL as a whole still names the victim's product. The cache key and the resolved content therefore diverge: the key is the victim's product URL, the value is the attacker's product.

The domain check from the earlier fix did not help, because the crafted URL never leaves amazon.ca.

Impact

An attacker can manipulate the caching system to their advantage by sending a crafted link, tricking victims into unintentionally linking a spoofed Amazon product to their Linkpop accounts. The victim adds what looks like a legitimate Amazon product and ends up displaying the attacker's product, including on the link button. The report does not describe any further consequence beyond the spoofed product display and redirect.

Fix

No fix was applied. The report states that the low severity issue was not fixed because the Linkpop service was scheduled for decommissioning on 7 July 2025.

  1. Other traversal encodings on the same parameter: %2e%2e/, ..%2f, double-encoded %252e%252e%252f, and backslash variants. A positive result is the victim's product URL resolving to the attacker's product.
  2. Trailing and leading path segments: extra /, . segments, or a fragment or query appended after the attacker ID. A positive result is the same cache key collision with a different payload shape.
  3. Case and host variations on the allowed domain, such as www.amazon.ca versus amazon.ca, if both are accepted. A positive result is a cache entry written under one form and read under the other.
  4. Other URL-fetching features in the same product that cache by URL, such as link previews or metadata fetchers. A positive result is content from one URL stored under another URL's key.

This kind of bug tends to hide wherever a user-supplied URL is fetched server-side and the result is cached under the URL as submitted, especially in link-in-bio, preview and unfurl features. The signal during recon is a feature that resolves third-party product or page URLs and shows a cached result; a second signal is a previous fix that only added a domain allowlist, since that leaves path handling untouched. The researcher demonstrated impact by showing the full victim flow: the victim adds a legitimate product URL and is shown the attacker's product, with the link button also redirecting there. The report also gives a practical way to tell whether a candidate ID is already cached, by watching for a sub-second resolution.

Glossary

  • API: Application Programming Interface, a way for one piece of software to ask another for data or actions, like a waiter taking your order to the kitchen.
  • Cache: A storage area that keeps the results of slow operations so future requests can be answered quickly.
  • Cache key: The label under which a cached result is stored; requests with the same key get the same stored result.
  • Cache poisoning: Putting wrong or malicious content into a cache so that later, legitimate users receive it.
  • Cookie: A small piece of data a website stores in your browser to remember who you are or what you did.
  • CVSS: Common Vulnerability Scoring System, a standard way to rate the severity of a security flaw.
  • Domain: The main part of a web address, such as amazon.ca, that identifies the site.
  • Link-in-bio page: A single web page, usually linked from a social profile, that lists several links.
  • Path traversal: Using special path segments such as ../ to move from one folder to another in a file path or URL.
  • Regex (regular expression): A pattern used by programs to match and extract parts of text.
  • Resolver: The part of a system that takes a URL and fetches or looks up the content it points to.
  • Token: A piece of data, often a string, that proves identity or authorises an action, similar to a ticket.
  • URL: Uniform Resource Locator, the address of a page or resource on the web.
  • URL path: The part of a URL after the domain, such as /dp/ABC123, that points to a specific resource.
  • Vulnerability: A weakness in software that can be exploited to cause harm.
  • Bounty: A reward paid by a company to someone who reports a security flaw.

More by saltymermaid

View all

6 more disclosed reports, best first.

More from Shopify

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Web cache poisoning and deception

The lesson behind this report.

A cache and the origin disagree about a request, so a poisoned response is served to everyone or a private page is stored as public.