Skip to content
XSS Write-up Beginner

Edmodo XSS Bug

A search box on Edmodo school pages reflected a script tag typed into it, so the page executed attacker-supplied JavaScript. An attacker could run script in a victim's session on the site, and the author also notes HTML and CSS injection worked.

Sameer Phad Follow

Published on web.archive.org

{{media:0}}

Sameer Phad (@sameerphad72), on web.archive.org

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 search input was reflected into the page without output encoding, so markup typed into the box was rendered as HTML and script.

Impact

Script supplied through the search box ran in the page, which could let an attacker act in a victim's session; the report shows only an alert box and does not demonstrate theft of data or accounts.

What the attacker needed

Victim opens a crafted search link or types it

The fix

The report says the bug was fixed quickly after confirmation, though it does not describe the change; the proper fix is to encode or sanitise the search input before rendering it.

How it was found

  1. Open any school page or profile on the site
  2. Type a script payload into the search box
  3. Observe the script executing in the page

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 search box on a school page put whatever you typed straight back into the page without cleaning it. Because of that, typing code instead of a search term made the browser run that code as if the site itself had written it. This is called cross-site scripting, and it lets an attacker act as the logged-in user.

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.