Skip to content
RCE Disclosed report Intermediate

Unvalidated Channel names causes IRC Command Injection

IRCCloud did not validate channel names, allowing a crafted name containing newline characters to be interpreted as an IRC command. An attacker could force a victim's client to quit, and potentially perform other command injections.

mantis Follow

Originally disclosed on HackerOne

Bounty$300 View original
  • Triaged in under an hour
  • Fixed in 7 hours
  • Paid in 7 hours
  • Disclosed after 24 hours

IRCCloud does not validate the channel names created by a user causing it to be parsed as an IRC command such as QUIT.

This means the user can have their clients force-closed by a malicious channel name.

This could also lead to other command injections such as forcing the handover of channels to other users for example (not tested).

Here is my PoC of a malicious channel name: #treehouse'){%0a%0dQUIT

15:03:49 ⇐ SySTeM quit ([email protected]) Client exited 15:04:02 → SySTeM joined #treehouse'){%0a%0dQUIT ([email protected]) 15:04:04 ⇐ SySTeM quit ([email protected]) Client exited

If you require any further information, please let me know.

All the best, Richard Clifford

The original report as published on HackerOne, by mantis. 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 malicious channel name could force a user's client to quit, and may allow other command injections such as channel handover, though the latter was not tested.

What the attacker needed

Ability to create a channel with a crafted name

How it was found

  1. Create a channel with a name containing encoded newline characters followed by an IRC command.
  2. Observe that the client sends the injected command, causing the user to quit.

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.

IRC is a chat protocol where commands are sent as text lines. If a channel name can contain special characters that start a new line, the chat server may treat part of the name as a separate command. Here, a channel name with encoded newlines made the client send a QUIT command, disconnecting the user.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by mantis

View all

4 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.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.