XSS through document projects
Originally disclosed on HackerOne
- Triaged in 6 days
- Fixed in 7 months
- Disclosed after 9 months
Hello, I'm Ethan Luis McDonough (@elmt2 on Khan Academy), and I found a way to inject scripts into document projects. Since KA document projects output HTML, I can edit the PUT request that updates projects (https://www.khanacademy.org/api/internal/scratchpads/ID) and inject JavaScript code inside an <img> tag's onload attribute. Here's a demo that completely redirects a learner from KA to another site: https://www.khanacademy.org/physics/woah/4740384569491456.
Note: the stored script does not run in Firefox because document projects don't seem to be working on that browser (at least on my machine).
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is known
A high-severity XSS bug in Khan Academy. HackerOne made it public on 30 March 2018.
About XSS
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.