Skip to content
XSS Write-up Intermediate

Keeping the gate locked on your IoT devices: Vulnerabilities found on Amazon’s Alexa

Amazon Alexa subdomains had a CORS misconfiguration and an XSS vulnerability that reflected an error message. An attacker could combine these to steal a CSRF token and silently install or remove skills, read voice history, and access personal information after a victim clicked a crafted link.

research.checkpoint.com

Published on research.checkpoint.com

“Please lower the temperature of the AC, it’s getting humid in here,” said Eric to Alexa, who turned the AC to a cooler temperature in the living room.

etal, on research.checkpoint.com

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.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a combination of an overly permissive CORS policy on Alexa API endpoints and an error page that reflected user input with a text/html content type, enabling script execution.

Impact

An attacker could silently install or remove skills, view the victim's voice history, and obtain personal information, but only after the victim clicked a crafted link; Amazon has fixed the issue.

What the attacker needed

Victim clicks a crafted link; attacker has code-injection on an Amazon subdomain

The fix

Amazon fixed the issue after it was reported.

How it was found

  1. The user clicks on a malicious link that directs them to amazon.com where the attacker has code-injection capability.
  2. The attacker sends a new Ajax request with the user’s cookies to amazon.com/app/secure/your-skills-page and gets a list of all installed skills on the Alexa account and the CSRF token in the response.
  3. The attacker uses the CSRF token to remove one common skill form the list we received in the previous step.
  4. Then, the attacker installs a skill with the same invocation phrase as the deleted skill.
  5. Once the user tries to use the invocation phrase, they will trigger the attacker skill.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Some Amazon websites trusted requests from other Amazon websites too broadly (a CORS misconfiguration), and one page echoed back user input without cleaning it (an XSS flaw). By chaining these, an attacker could make a victim's browser perform actions on their Alexa account, like adding or removing skills, without the victim knowing.

What is XSS?

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

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.