Bugtraq mailing list archives

SIRCD: Anyone can set umode +o(oper).


From: Victor Jerlin <vigge () vigge fulhack nu>
Date: Thu, 20 Nov 2003 17:30:02 +0100 (CET)

I recently accidentially set my own usermode to +o in SIRCD, (MODE <nick>
+o), and hey! I was oper! :)

Versions affected is atleast 0.5.2 och 0.5.3..

The developer has been informed about this, and I assume that it will be
fixed ASAP. Here's a quick fix for those who doesnt have time to wait (at
least I think it works, but had no time modifying the sourcecode so it
could compile on my system).

sircd/s_client.c
On row 844 change:
  if (action > 0 && !chk) break;"
to:
  if (action > 0 && !chk && strcmp(cl->name, target->name)) break;


Current thread: