Skip to content
XSS Disclosed report Intermediate

Cross Site Scripting(XSS) on IRCCloud Badges Page (using Parameter Pollution)

The IRCCloud badges page was vulnerable to cross-site scripting because it accepted a parameter supplied more than once, and a crafted combination of values bypassed the site's XSS filter. An attacker could craft a link that, when visited, executed JavaScript in the victim's browser.

rohitdua Follow

Originally disclosed on HackerOne

  • Triaged in 2 hours
  • Fixed in 3 hours
  • Paid in 3 hours
  • Disclosed after 4 hours

I. Vulnerability

IRCCloud is affected by Cross Site Scripting vulnerability in its badges page. (www.irccloud.com/badges)

II. Description

IRCCloud is open to parameter pollution attacks ie. a parameter passed more than once with different values results in varying different results. This bug is used to leverage an XSS in the badges page.

####POC link:

www.irccloud.com/badges?hostname=hostname" type="text/javascript"> /*&hostname=*/alert('XSS\n-Rohit Dua'); //

If you visit the link a javascript pops up showing the message 'XSS - Rohit Dua'. (screenshot_irccloud.png)

Even after parameter pollution, the attack is ineffective due to strong XSS filters(possibly firewall) The filter evasion is possible due a certain combination of javascript comments in the url that combine and comment out the unneeded part.

#####[Attached] POC source code screenshot POC alert box screenshot

Please verify and fix the same.

Attachments

irccloud.png
irccloud.png From the original on HackerOne
screenshot_irccloud.png
screenshot_irccloud.png

The original report as published on HackerOne, by rohitdua. 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 badges page reflected a URL parameter into the page without proper output encoding, and the input filter could be bypassed by supplying the parameter twice and using JavaScript comments to neutralise the extra characters.

Impact

An attacker could run JavaScript in a victim's browser when the victim visits a crafted link, as shown by an alert popup; no data theft is demonstrated.

What the attacker needed

Victim clicks a crafted link

The fix

The report does not state a fix; the page should be fixed by properly encoding the hostname parameter before inserting it into the HTML and by rejecting or normalising duplicate parameters.

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 puts user-supplied text into a page without making it safe, so an attacker can make the page run their own JavaScript. Here the page took a value from the web address and inserted it into the page, and by giving the same parameter twice the attacker got past the site's filter. The result was that a specially crafted link could run code in the visitor's browser.

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 rohitdua

View all

2 more disclosed reports, best first.

More from IRCCloud

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.