nodejitsu / kohai

I am kohai. I am a pluggable irc bot for managing real-time data events.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exploit with Newlines

slickplaid opened this issue · comments

commented

You can exploit the bot into running any command you want to by inserting a new line (say on twitter.com, \n does not work).

A tweet like this will cause the bot to quit:
"This is a tweet:
quit this is where my quit message will go"

A tweet like this will give ops to any user:
"node.js is cool
mode #kohai +o slicky"

Hopefully the linebreaks show up properly.

I'd recommend you remove chanserv access and/or deop any bots if they're running with any sort of privledges on your IRC server until this is patched. :)

Whoa, thanks man. On it.

Pull request pulled. Closing issue.