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.
- 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:
- Log in to your account
- Click on My Courses
- Choose any enrolled courses
- Click on Add Discussion
- Click on Link -> Insert Link
- In URL use above Payload
- In Text write anything
- Click on Insert
- Now click on that Text
- 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.
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
- Log in to the account.
- Open My Courses and choose an enrolled course.
- Start a new discussion and use the Insert Link option.
- Put the payload in the URL field and any text in the text field, then insert.
- 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.