Bug #366
CTCP PING handler potentially dangerous
0%
Description
[09:41:05] <coekie> looks like you've got a bug that allows an attacker to let you unwillingly send his irc commands to the server
[09:41:39] <Sput> oh?
[09:42:04] <Sput> how would that happen?
[09:42:42] <coekie> a ctcp PING sends back what it received, but after converting encoded newlines (and doesn't encode them when sending)
[09:43:35] <Sput> oh, so somebody could encode commands in the ping's payload
[09:43:38] <coekie> for example, if I would say: \001PING \020nPRIVMSG #quassel :hello
[09:43:47] <coekie> then you would send hello to #quassel :)
[09:43:59] <Sput> that is interesting indeed
[09:44:13] <Sput> sometimes such issues lurk where you expect them the least :)
[09:44:49] <coekie> ... \001PING \020nPRIVMSG Chanserv op #quassel\020nMODE #quassel +o coekie ... you get the point ;)