Skip to content
XSS Disclosed report Beginner

Reflected XSS on https://apps.topcoder.com/wiki/pages/createpage.action

Two parameters on the wiki page creation endpoint reflected unsanitised input into the response, allowing script to run in a victim's browser. An attacker could use this to steal cookies or execute arbitrary code in the victim's browser.

meryem0x Follow

Originally disclosed on HackerOne

Medium 5.4 View original
  • Triaged in 17 hours
  • Fixed in 6 days
  • Disclosed after 7 days

Summary:

Hi :) A reflected XSS occurs on https://apps.topcoder.com/wiki/pages/createpage.action when creating wiki pages.

Steps To Reproduce:

A user can create wiki pages on https://apps.topcoder.com/wiki/pages/createpage.action?spaceKey=tcwiki. In this url parentPageString and labelsString parameters are vulnerable to XSS.

PoC: https://apps.topcoder.com/wiki/pages/createpage.action?spaceKey=tcwiki&parentPageString=powerpuff_hackerone%22%3E%3Cimg%20src=X%20onerror=alert(document.cookie)%3E&labelsString=%22%3E%3Cimg+src%3DX+onerror%3Dalert(document.domain)%3E

2020-05-05_19-05-36_ekran_g_r_nt_s_.png
2020-05-05_19-05-36_ekran_g_r_nt_s_.png From the original on HackerOne
2020-05-05_19-05-32_ekran_g_r_nt_s_.png
2020-05-05_19-05-32_ekran_g_r_nt_s_.png

Impact

XSS can use to steal cookies or to run arbitrary code on victim's browser.

The original report as published on HackerOne, by meryem0x. 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

Root cause

Likely the parentPageString and labelsString parameters were echoed into the page without output encoding.

Impact

An attacker could steal cookies or run arbitrary code in a victim's browser.

What the attacker needed

Victim clicks a crafted link

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.

When a website takes something you typed in a link and puts it straight back on the page without cleaning it, an attacker can slip in a small script. The victim's browser then runs that script as if the site itself had written it, which lets the attacker read things like the victim's login cookie.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by meryem0x

View all

13 more disclosed reports, best first.

More from Lab45

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.