Skip to content
XSS Write-up Beginner

Stored XSS on edmodo

A folder name was sanitised on one endpoint but reflected unsanitised on another folder-view endpoint, allowing stored cross-site scripting. An attacker could run script in a victim's browser when the victim opened the crafted folder URL.

Rohit Verma Follow

Published on medium.com

Hello everyone, I believe sharing is caring, and I have been learning from multiple security researchers in the Infosec community. So here is the write-up of my recent finding.

Rohit Verma, on medium.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 the folder-view endpoint inserted the stored folder name into the HTML page without the sanitisation applied by the folder-creation endpoint.

Impact

An attacker could run script in the browser of anyone who opened the crafted folder URL, which could lead to actions being taken as that user.

What the attacker needed

Ability to create a folder; victim opens the crafted folder URL

How it was found

  1. Open the library page.
  2. Create a new folder.
  3. Enter a crafted name containing HTML markup in the name field.
  4. Intercept the request and note the folder identifier.
  5. Open the folder URL for that identifier; the script runs.

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.

A folder name is text a user types in. The site cleaned that text on one page but not on another page that shows the folder. Because the second page put the raw text into the page, a browser would treat part of it as code and run it. That is called stored cross-site scripting: the bad text is saved and later runs in someone else's browser.

What is XSS?

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

More from Edmodo

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.