Stored-Xss at connect.topcoder.com/projects/ affected on project chat members
A stored cross-site scripting flaw existed in the project chat messages on connect.topcoder.com, allowing an attacker to inject JavaScript that would run for other users viewing the same chat. This could let the attacker steal cookies or CSRF tokens and potentially take over the victim's SSO account.
Originally disclosed on HackerOne
- Triaged in 11 hours
- Fixed in 8 months
- Disclosed after 8 months
Hi team , I'm sorry for my bad report and english , but i wish you understand the impact of that bug here , if it well performed the sers may lose their access to their sso accounts
Summary:
While a developer at connect.topcoder.com can manage a messages about his/her project with someonelse , This conversation was not fully protected from XSS , if some user join in the same chat he'd be affected by that xss and his ==SSO== account possibly will be token over
Steps To Reproduce:
After you register to topcoder.com go to connect.topcoder.com and sign on with your sso account , After that Go to https://connect.topcoder.com/new-project/ and add new project
NOTE : The discussion will not be accessible publicult efore the administratirs manages it , So after the adiministrators accept it the bug will be accessible publiculy █████
- GO TO https://connect.topcoder.com/projects/<your_project_id>/messages
- Add message with random title and this
<script>alert()</script>as content , then submit - You'll get a fully JS code injected
If an attacker inject a Javascript code that steal cookies/csrf-token... he'll be able to fully access to the victim account
Supporting Material/References:
Tested on
- Chrome Browser .
- Windows 7_64x
Note : That bug is affect to every machine/browser
Impact
Xss
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
What the attacker needed
A free account; victim views the same chat
How it was found
- Register on topcoder.com and sign in to connect.topcoder.com with an SSO account.
- Create a new project at connect.topcoder.com/new-project/ and wait for administrator approval.
- Go to the project's messages page.
- Add a message with a random title and a script tag as content, then submit.
- Observe that the JavaScript code is injected and executed.
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 insert code that runs in other visitors' browsers. Here, a chat message could contain a script, and anyone opening that chat would run it, letting the attacker act as them.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.