[15617] in bugtraq
BitchX - more on format bugs?
daemon@ATHENA.MIT.EDU (Forever shall I be.)
Wed Jul 5 16:14:25 2000
Mime-Version: 1.0
Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-1287686344-962638449=:437"
Message-Id: <Pine.LNX.4.21.0007031026250.437-200000@bliss.penguinpowered.com>
Date: Mon, 3 Jul 2000 10:34:09 -0500
Reply-To: "Forever shall I be." <zinx@LINUXFREAK.COM>
From: "Forever shall I be." <zinx@LINUXFREAK.COM>
To: BUGTRAQ@SECURITYFOCUS.COM
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.
--8323328-1287686344-962638449=:437
Content-Type: TEXT/PLAIN; charset=US-ASCII
Well, I've not seen this posted to bugtraq yet, so here goes... BitchX has
fallen victim to the infamous format bug... All unpatched versions of
BitchX are apparently vulnerable (patch follows)..
I've done a bit of messing around myself, and I think this bug can be used
to execute arbitrary code (via %n method outlined in previous articles) --
Over here the user string (channel argument to invite) is around the 24th
argument (aka %24$n) when compiled with gcc 2.95.2 on x86 boxes running
glibc 2.1.3, it varies if your setup is different of course..
Now.. That's not to say the exploit will be portable (it won't be), or
easy (it probably won't be difficult, but it won't be easy -- you can only
use characters valid to channel names, though there are a lot.. and on
some servers, you have to prefix it with #, which makes big endian
exploits near impossible)
and by the way, I didn't find the bug, nor create the patch..
That's all folks..
--
Zinx Verituse <zinx@linuxfreak.com>
gpg (id 921B1558) (fp 5746 73A1 2184 A27A 9EC0 EDCC E132 BCEF 921B 1558)
--8323328-1287686344-962638449=:437
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="1.0c16-format.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.21.0007031034090.437@bliss.penguinpowered.com>
Content-Description:
Content-Disposition: attachment; filename="1.0c16-format.patch"
SW5zdHJ1Y3Rpb25zOg0KDQpjZCBCaXRjaFgvc291cmNlDQpwYXRjaCA8IC9w
YXRoL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