Skip to content
XSS Disclosed report Beginner

Reflected XSS on https://apps.topcoder.com/wiki/

The wiki's insert-link dialog reflected user-supplied values from the alias and tooltip parameters into the page without proper encoding. An attacker could craft a link that, when opened by a victim, runs script in the victim's browser.

meryem0x Follow

Originally disclosed on HackerOne

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

Summary:

Hi :) A reflected XSS occurs on https://apps.topcoder.com/wiki/plugins/tinymce/wysiwyg-insertlink.action when creating wiki pages.

Steps To Reproduce:

A user can create wiki page on https://apps.topcoder.com/wiki/pages/createpage.action?spaceKey=tcwiki. A url can be inserted this page. When you click Insert/Edit url https://apps.topcoder.com/wiki/plugins/tinymce/wysiwyg-insertlink.action?draftType=page&spaceKey=tcwiki&currentspace=tcwiki&formname=createpageform&fieldname=wysiwygcontent&alias= page opens. You can change alias parameter and add tooltip parameter with JS codes. If a victim opens this url, XSS will execute.

PoC: https://apps.topcoder.com/wiki/plugins/tinymce/wysiwyg-insertlink.action?draftType=page&spaceKey=tcwiki&currentspace=tcwiki&formname=createpageform&fieldname=wysiwygcontent&alias=as%22%3E%3Cimg%20src=x%20onerror=alert(document.domain)%3E&tooltip=as%22%3E%3Cimg%20src=X%20onerror=alert(document.cookie)%3E

document_cookie.png
document_cookie.png From the original on HackerOne
document_domain.png
document_domain.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 insert-link action echoed the alias and tooltip request parameters into the HTML response without output encoding.

Impact

An attacker could steal the victim's cookies or run arbitrary script in the victim's browser, though the report does not show any defence being tested.

What the attacker needed

Victim opens a crafted link; attacker can build a URL with parameters

How it was found

  1. Open the create-page form for the wiki space.
  2. Click Insert/Edit url to open the insert-link dialog.
  3. Change the alias parameter and add a tooltip parameter containing script.
  4. Send the crafted URL to a victim; when they open it, the script runs.

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.

A reflected cross-site scripting (XSS) bug means a web page takes something from the address bar and puts it into the page without cleaning it first. Here the insert-link dialog echoed the alias and tooltip values straight back, so a crafted link could make the victim's browser run the attacker's script. That script could then read the victim's cookies or act as them on the site.

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.