Skip to content
XSS Write-up Intermediate

The Instructure Canvas Breach Was Caused by XSS

A stored cross-site scripting (XSS) vulnerability in Canvas's support ticket system allowed an attacker to execute code in a customer-service representative's authenticated session, leading to unauthorised API access and data exfiltration across multiple institutions. A second XSS in the discussion feature was later used to gain admin access and deface login portals via the custom themes feature.

scotthelme.co.uk

Published on scotthelme.co.uk

A single support ticket became the front door to 275 million student records. The Canvas breach shows how quickly untrusted user content can become a serious security incident when it is rendered inside privileged internal tooling.

The author, on scotthelme.co.uk

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 the root cause was rendering untrusted user-supplied files in a privileged internal tool without adequate sandboxing or a strict Content Security Policy, allowing script execution in an authenticated session.

Impact

The attacker could access and exfiltrate sensitive data across thousands of institutions, and later deface login portals; the article notes that a strict CSP could have blocked the initial XSS, but it is unclear whether such a policy was in place.

What the attacker needed

A free-tier account; victim opens a malicious ticket; no CSP or weak CSP on internal tooling

The fix

The article recommends rendering untrusted content on sandboxed, cookieless origins, applying a strict nonce-based CSP, and requiring re-authentication for sensitive cross-tenant actions; it does not state that these were implemented.

How it was found

  1. A Free-for-Teacher user opens a support ticket containing a linked file with hidden code.
  2. A Canvas customer-service representative opens the ticket, and the payload fires in the rep's authenticated session.
  3. The attacker uses that session to call Canvas's APIs and exfiltrate data.
  4. A second stored XSS in the discussion feature is used to push a malicious CSS file through the custom themes feature, defacing login portals.

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.

This report describes how a security flaw in a help-desk system let an attacker take over an employee's account. The attacker uploaded a file that contained hidden code; when an employee opened it, the code ran in the employee's browser and gave the attacker the same access as the employee. That access was very broad, so the attacker could reach data for many schools.

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.