Skip to content
XSS Disclosed report Beginner

Stored XSS

A stored cross-site scripting flaw existed in the discussion feature's link insertion, where a crafted URL was not sanitised. An attacker could inject script that executes when a victim clicks the inserted link.

manish121 Follow

Originally disclosed on HackerOne

  • Disclosed after 32 days

Hello,

Bug: Stored XSS Payload: "><img src=x onerror=prompt(document.domain);> Browser Used: Google Chrome OS: Windows 7

Steps to Reproduce:

  1. Log in to your account
  2. Click on My Courses
  3. Choose any enrolled courses
  4. Click on Add Discussion
  5. Click on Link -> Insert Link
  6. In URL use above Payload
  7. In Text write anything
  8. Click on Insert
  9. Now click on that Text
  10. Javascript will get executed.

Please check the link of PoC video.. https://www.dropbox.com/s/i2l5v7av597frj8/Udemy%20XSS.avi?dl=0

Thanks, Manish Agrawal.

The original report as published on HackerOne, by manish121. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

How it worked

Impact

An attacker could execute JavaScript in a victim's browser when the victim clicks the stored link.

What the attacker needed

A user account; an enrolled course; victim clicks the inserted link

How it was found

  1. Log in to the account.
  2. Open My Courses and choose an enrolled course.
  3. Start a new discussion and use the Insert Link option.
  4. Put the payload in the URL field and any text in the text field, then insert.
  5. Click the inserted text to trigger the script.

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 report has not been written yet. The Original tab links to the source.

Cross-site scripting (XSS) is when a website lets someone put code into a page that other people view. Here, a link field accepted a value that broke out of the HTML and ran JavaScript when clicked. That could let an attacker run code in a victim'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 Udemy

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.