Skip to content
CSRF Disclosed report Beginner

CSRF - Adding unlimited number of saved items via GET request

A stock alert feature could be triggered via a GET request without a CSRF token, allowing an attacker to add unlimited items to a victim's saved list. By chaining redirects or embedding many tiny images, an attacker could flood the list and make it unusable.

inhibitor181 Follow

Originally disclosed on HackerOne

Bounty$150 Medium 4.3 View original
  • Triaged in 2 days
  • Fixed in 3 months
  • Paid in 22 days
  • Disclosed after 7 months

Hello, I have found a way of potentially adding thousands of items to the saved items list by using a GET request.

POC

GET /email-capture/stock-alert/93543518/?return_url=/email-capture/stock-alert/91703404/?return_url=/email-capture/stock-alert/89201857/ HTTP/1.1
Host: www.lyst.com

By adding a stock alert notification to an item, the respective item is automatically added in the saved list and because this is a GET request, there is no CSRF token/protection here.

IMPACT

Because this is done via GET request it is very easy to add thousands of products in the target user account by making one or both of these:

  1. Chain your internal redirect requests (shown in POC)
  2. Simply embed 1000x 1px image that with the target link (of course different product id per image)

Because of the extreme volume of the added items, the attacker can make the target's save list simply unusable (he must then delete 1000 entries and NO ONE will do that). I think a lot of people are taking advantage of the list, so a CSRF here can have a pretty big/annoying impact and you could loose clients.

Video POC attached.

The original report as published on HackerOne, by inhibitor181. 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. 4 min read.

Context

Lyst is a shopping site where users can keep a list of saved items. One of the ways an item ends up on that list is through the stock alert feature: when a user asks to be notified about a product, the product is automatically added to their saved items. The stock alert endpoint lives under /email-capture/stock-alert/ and takes a product identifier in the path.

The report describes a cross-site request forgery against that endpoint. The researcher found that the request which creates a stock alert, and therefore adds the item to the saved list, is a plain GET with no CSRF token or other protection, so any page on the internet can trigger it on behalf of a logged-in Lyst user.

Setup

The report does not describe any special setup: no particular account type, role, tool or version is mentioned. The precondition is simply that the victim is authenticated on Lyst when the forged request is made, since the action is performed against the target user's account. The researcher demonstrated the issue with a single raw HTTP request and a video proof of concept.

Finding it

The researcher noticed that adding a stock alert notification for an item causes that item to be added to the saved list automatically. The request that performs this action is a GET, and because it is a GET there is no CSRF token or protection on it. That combination, a state-changing action reachable with a simple GET, is what made the endpoint look wrong.

Exploitation

Step 1: Send the stock alert request

The proof of concept is the following request, which adds a stock alert for product 93543518 and uses the return_url parameter to point at another stock alert URL:

HTTP
GET /email-capture/stock-alert/93543518/?return_url=/email-capture/stock-alert/91703404/?return_url=/email-capture/stock-alert/89201857/ HTTP/1.1
Host: www.lyst.com

The product identifier sits in the path after /email-capture/stock-alert/. The return_url parameter is where the chaining happens: its value is itself another stock alert URL, which in turn carries its own return_url pointing at a third stock alert URL. The value of return_url is itself another stock alert URL, which in turn carries its own return_url pointing at a third stock alert URL.

Step 2: Deliver it to the victim

The request needs no body, no token and no custom headers, so it can be triggered cross-site. The researcher describes two delivery methods:

  1. Chain the internal redirect requests, as shown in the proof of concept, so that one request walks through several stock alert URLs.
  2. Embed a large number of 1x1 pixel images, each pointing at the stock alert link with a different product id per image.

Either way, the victim only has to load the attacker's page while logged in to Lyst, and the products are added to their saved list.

Root cause

The stock alert endpoint changes server-side state, it adds an item to the user's saved list, but it is reachable with a GET request and carries no CSRF token or equivalent protection. A GET can be issued by any third-party page through an image tag or a redirect, and the browser attaches the victim's Lyst cookies automatically, so the server cannot tell the forged request from a legitimate one. The return_url parameter lets one request contain further stock alert URLs.

Impact

The researcher's assessment is that, because the action is a GET, it is very easy to add thousands of products to a target user's account. With that volume of items the target's saved list becomes effectively unusable: the user would have to delete a thousand entries, and, in the researcher's words, no one will do that. The researcher notes that many people take advantage of the list, so a CSRF here can have a fairly big and annoying impact, and the site could lose customers over it. The impact depends on the victim being logged in when the attacker's page is loaded.

Fix

The report does not state what was changed. The measure it points to is protecting the stock alert action against CSRF, for example by requiring a token and by not performing the state change on a GET.

Variants to test

  • Look for other endpoints that add items to a user's list or account and accept a GET, such as wishlists, favourites, follows and alerts. A positive result is that a request issued from a third-party page, with only the victim's session cookie, changes the account state.
  • Test redirect-style parameters such as return_url for chaining: if the value can itself be another state-changing URL on the same host, one request may perform several actions. A positive result is multiple items or actions created from a single request.
  • Try bulk delivery with many 1x1 pixel images, each with a different object id, to see whether volume alone makes a user-facing list unusable. A positive result is a large number of entries created without any interaction beyond loading the page.

Hunting notes

This kind of bug tends to hide in secondary features that quietly write to the user's account, like alerts, notifications and saves, rather than in the main forms that developers remember to protect. During recon, the signal is a state-changing action reachable with a simple GET and no token, especially one with a redirect or return parameter that accepts another URL on the same host. The researcher argued that the action could be repeated at scale, through chained redirects or many image tags, until the saved list became unusable for the victim.

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

What happened, in plain words

Lyst is a shopping website where you can save items you like to a personal list. One way an item gets onto that list is through the stock alert feature: when you ask to be notified about a product, the product is automatically added to your saved items. The web address for that feature starts with /email-capture/stock-alert/ and includes a product number.

The researcher found that the request which creates a stock alert, and therefore adds the item to your saved list, is a simple GET request with no CSRF token or other protection. That means any page on the internet can trigger it on behalf of a logged-in Lyst user. This is called cross-site request forgery (CSRF).

Setup

The report does not describe any special setup: no particular account type, role, tool or version is mentioned. The only precondition is that the victim is logged in to Lyst when the forged request is made, because the action is performed against the target user's account. The researcher demonstrated the issue with a single raw HTTP request and a video proof of concept.

Finding it

The researcher noticed that adding a stock alert notification for an item causes that item to be added to the saved list automatically. The request that performs this action is a GET, and because it is a GET there is no CSRF token or protection on it. That combination, a state-changing action reachable with a simple GET, is what made the endpoint look wrong.

Exploitation

Step 1: Send the stock alert request

The proof of concept is the following request, which adds a stock alert for product 93543518 and uses the return_url parameter to point at another stock alert URL:

HTTP
GET /email-capture/stock-alert/93543518/?return_url=/email-capture/stock-alert/91703404/?return_url=/email-capture/stock-alert/89201857/ HTTP/1.1
Host: www.lyst.com

Let us go through this request line by line.

  • GET is the method, the type of request. A GET is what your browser sends when you click a link or load an image. It is supposed to only fetch information, not change anything on the server.
  • /email-capture/stock-alert/93543518/ is the path. It points to the stock alert feature and includes the product identifier 93543518.
  • ?return_url=/email-capture/stock-alert/91703404/?return_url=/email-capture/stock-alert/89201857/ is the query string. The parameter return_url tells the server where to send the user afterwards. Here its value is itself another stock alert URL, which in turn has its own return_url pointing at a third stock alert URL. The value of return_url is itself another stock alert URL, which in turn has its own return_url pointing at a third stock alert URL.
  • HTTP/1.1 is the version of the HTTP protocol being used.
  • Host: www.lyst.com tells the server which website the request is for.

The product identifier sits in the path after /email-capture/stock-alert/. The return_url parameter is where the chaining happens: its value is another stock alert URL, which carries its own return_url pointing at a third stock alert URL. Each of those URLs points at a stock alert for a different product.

Step 2: Deliver it to the victim

The request needs no body, no token and no custom headers, so it can be triggered from another website. The researcher describes two delivery methods:

  1. Chain the internal redirect requests, as shown in the proof of concept, so that one request walks through several stock alert URLs.
  2. Embed a large number of 1x1 pixel images, each pointing at the stock alert link with a different product id per image.

Either way, the victim only has to load the attacker's page while logged in to Lyst, and the products are added to their saved list.

Root cause

The stock alert endpoint changes server-side state, it adds an item to the user's saved list, but it is reachable with a GET request and carries no CSRF token or equivalent protection. A GET can be issued by any third-party page through an image tag or a redirect, and the browser attaches the victim's Lyst cookies automatically, so the server cannot tell the forged request from a legitimate one. The return_url parameter lets one request contain further stock alert URLs.

Impact

The researcher's assessment is that, because the action is a GET, it is very easy to add thousands of products to a target user's account. With that volume of items the target's saved list becomes effectively unusable: the user would have to delete a thousand entries, and, in the researcher's words, no one will do that. The researcher notes that many people take advantage of the list, so a CSRF here can have a fairly big and annoying impact, and the site could lose customers over it. The impact depends on the victim being logged in when the attacker's page is loaded.

Fix

The report does not state what was changed. The measure it points to is protecting the stock alert action against CSRF, for example by requiring a token and by not performing the state change on a GET.

Variants to test

  • Look for other endpoints that add items to a user's list or account and accept a GET, such as wishlists, favourites, follows and alerts. A positive result is that a request issued from a third-party page, with only the victim's session cookie, changes the account state.
  • Test redirect-style parameters such as return_url for chaining: if the value can itself be another state-changing URL on the same host, one request may perform several actions. A positive result is multiple items or actions created from a single request.
  • Try bulk delivery with many 1x1 pixel images, each with a different object id, to see whether volume alone makes a user-facing list unusable. A positive result is a large number of entries created without any interaction beyond loading the page.

Hunting notes

This kind of bug tends to hide in secondary features that quietly write to the user's account, like alerts, notifications and saves, rather than in the main forms that developers remember to protect. During recon, the signal is a state-changing action reachable with a simple GET and no token, especially one with a redirect or return parameter that accepts another URL on the same host. The researcher argued that the action could be repeated at scale, through chained redirects or many image tags, until the saved list became unusable for the victim.

Glossary

  • API: a set of rules that lets one piece of software talk to another, like a waiter taking your order to the kitchen.
  • Cookie: a small piece of data a website stores in your browser so it can remember you between requests, for example to keep you logged in.
  • CSRF (Cross-Site Request Forgery): an attack where a malicious website makes your browser send a request to another site where you are logged in, without your knowledge.
  • CSRF token: a secret value included in a form or request to prove it came from the legitimate site, not from an attacker.
  • Endpoint: a specific URL on a server that performs a particular function, like a door you can knock on.
  • GET request: a type of HTTP request used to ask for information, typically when you click a link or load an image; it should not change anything on the server.
  • HTTP: the protocol browsers and servers use to exchange requests and responses.
  • Path: the part of a URL that identifies a resource on the server, for example /email-capture/stock-alert/.
  • Query string: the part of a URL after the ?, containing parameters and their values.
  • Redirect: a server response that tells the browser to go to a different URL.
  • Return URL: a parameter that tells a server where to send the user after an action.
  • Session cookie: a cookie that identifies your logged-in session on a website.
  • State-changing action: an action that modifies data on the server, such as adding an item to a list.
  • 1x1 pixel image: a tiny, often invisible image used to trigger a request to another server when a page loads.

More by inhibitor181

View all

10 more disclosed reports, best first.

More from Lyst

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site request forgery (CSRF)

The lesson behind this report.

Another site makes a signed-in user's browser perform an action they did not intend.