Stored XSS on https://apps.topcoder.com/wiki/pages/editpage.action
- Triaged in 20 hours
- Fixed in 5 days
- Disclosed after 6 days
Summary:
Hi :) There is a stored XSS on wiki pages and it executes when editing page.
Steps To Reproduce:
After I submitted #867125, i realized that the vote macro causes stored XSS on wiki edit page. A user can edit wiki pages on https://apps.topcoder.com/wiki/pages/editpage.action?pageId=. Users can insert macros to pages. Vote macro is vulnerable to XSS.
Go to a wiki page, edit it and type
{vote:What is your favorite vulnerability?}
RCE
SSRF
XSS"><img src=X onerror=alert(document.domain)>
{vote}
and save it. When an other user edit this page, XSS will execute.
PoC: https://apps.topcoder.com/wiki/pages/editpage.action?pageId=165871793

Note: This only works to signed-in users. Because unauthorized users cannot edit pages. I think there is a mistake on https://apps.topcoder.com/wiki/login.action now. If you encounter an error, you can login on main site (https://accounts.topcoder.com/member) then try.
Impact
XSS can use to steal cookies or to run arbitrary code on victim's browser.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is known
A high-severity XSS bug in apps.topcoder.com. HackerOne made it public on 12 May 2020.
About XSS
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.