Skip to content
XSS Disclosed report Beginner

Reflected XSS on error page on https://apps.topcoder.com/wiki/plugins/socialbookmarking/updatebookmark.action

The bookmarkPageId parameter on an error page did not validate input, so a crafted value containing an image tag with an error handler executed script in the victim's browser. An attacker could use this to steal cookies or run arbitrary code in the victim's browser.

meryem0x Follow

Originally disclosed on HackerOne

  • Triaged in 12 hours
  • Fixed in 6 days
  • Disclosed after 7 days

Hi :) In https://apps.topcoder.com/wiki/plugins/socialbookmarking/updatebookmark.action bookmarkPageId parameter expects a number value. If you add XSS payload instead of number, an error page displays with XSS.

PoC https://apps.topcoder.com/wiki/plugins/socialbookmarking/updatebookmark.action?bookmarkPageId="><img src=x onerror=alert(document.domain)>

Screenshot_20200506-023406.png
Screenshot_20200506-023406.png From the original on HackerOne

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 application reflected the bookmarkPageId parameter into the error page without validating or encoding it.

Impact

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

What the attacker needed

Victim clicks a crafted link

How it was found

  1. Open the updatebookmark.action URL with a non-numeric bookmarkPageId value.
  2. The application shows an error page that includes the supplied value.
  3. The value is interpreted as HTML, so an image tag with an error handler runs 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.

A website page that shows an error message took a value from the web address and put it directly into the page without cleaning it. An attacker could craft a link that, when clicked, runs their own small program in the victim's browser. This kind of flaw is called reflected cross-site scripting, or XSS.

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.