Skip to content
XSS Disclosed report Beginner

Dangerous Persistent xss

An IRC channel operator could inject a script tag into the ban command, causing JavaScript to execute in the browsers of all users in the channel. This allowed an attacker with operator privileges to run arbitrary code in victims' browsers.

reporter Follow

Originally disclosed on HackerOne

  • Fixed in under an hour
  • Paid in under an hour
  • Disclosed after 30 days

If a person is an op in a channel, it is possible to make all the users inside the irc channel execute javascript code. Steps to repoduce: 1.Go to a random channel where you are op. 2.Enter the following command: /ban <script>alert(2)</script> 3.The script will execute an alert box containing 2 in all the browsers of the users inside the irc channel.

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

Impact

A channel operator could execute JavaScript in the browsers of every user in the channel.

What the attacker needed

Operator status in an IRC channel; victims are in the same channel

How it was found

  1. Join a channel where you have operator status.
  2. Send a ban command whose argument contains a script tag.
  3. The script runs in the browsers of all users in the channel.

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.

In an IRC chat room, a channel operator (a moderator) can ban users. The ban message was displayed to everyone without being made safe, so if it contained a script tag, every user's browser would run that script. This is called cross-site scripting (XSS): untrusted text is treated as code by the 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 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.