8275816 2002-04-11 20:22 +0200 /35 rader/ Paul Starzetz <paul@starzetz.de> Sänt av: joel@lysator.liu.se Importerad: 2002-04-12 03:04 av Brevbäraren Extern mottagare: bugtraq@securityfocus.com Extern mottagare: Roman Drahtmueller <draht@suse.de> Mottagare: Bugtraq (import) <21821> Ärende: Inn (Inter Net News) security problems ------------------------------------------------------------ From: Paul Starzetz <paul@starzetz.de> To: bugtraq@securityfocus.com, Roman Drahtmueller <draht@suse.de> Message-ID: <3CB5D449.9050504@starzetz.de> Hi, I found several problems inside the inn (<=2.2.3) package as shipped with various Linux distributions. There are several format string coding bugs as well as unsecure open() calls. In particular the inews and the rnews binaries are affected. This may lead to serious security problems if those binaries are installed set-uid and are executable by any user. In the case of inews, obtaining uid news is possible (which can be further used to replace/trojan other system files like the binaries themselves), in the case of rnews, access to probably sensitive inn configuration files seems possible (like inn password hashes etc). The attached archive contains a short proof of concept code for one of the format string bugs (look in the inews.sh script for more details) in the inews binary. The code has been succesfully tested against SuSE 7.0 where inews and rnews are setuid news. Later distributions seems to use another security conecept - the binaries are either only setgid news or are not runnable by ordinary users. The exploitation is technically difficult - it requires a fake NNTP server setup somewhere (the code comes with the tar package). Note: this is NOT a remote exploit. Look at the code for more technical details. The code will create a setuid news shell. Vendors have been noticed more than 5 weeks ago. regards, /ih (8275816) /Paul Starzetz <paul@starzetz.de>/(Ombruten) Bilaga (application/octet-stream) i text 8275817 8275817 2002-04-11 20:22 +0200 /27 rader/ Paul Starzetz <paul@starzetz.de> Bilagans filnamn: "innexpl.tar.gz" Importerad: 2002-04-12 03:04 av Brevbäraren Extern mottagare: bugtraq@securityfocus.com Extern mottagare: Roman Drahtmueller <draht@suse.de> Mottagare: Bugtraq (import) <21822> Bilaga (text/plain) till text 8275816 Ärende: Bilaga (innexpl.tar.gz) till: Inn (Inter Net News) security problems ------------------------------------------------------------ në<