🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #9962

Re: News Proxy?

#9962
From: Jonathan Larmour
Date: Thu, 08 Aug 1996 00:00
58 lines
3228 bytes
In article <4ud2hk$1b3@paperboy.osf.org>, Rich Salz <rsalz@osf.org> wrote:
>In <slrn50fd9t.o0b.tqbf@enteract.com> tqbf@rdist.org writes:
>>Interesting. So, you're confident enough in the nnrpd code to trust your
>>entire X-thousand-dollar firewall installation to the fact that there's no
>>way to subvert all that code into executing arbitrary commands.
>
>I would, but I'm biased. :)  But I'm also right.
>
>You only need to validate a few things:
>    -	nnrpd does no fork/exec
>    -	The IP-based access checks are as strong as possible
>    -	Your nnrp access file is correct
>    -	Understand that nnrpd feeding articles to innd is no different
>	from your accepted news neighbors feeding articles to innd,
>	except that *you know you can trust the NNTP-Posting-Host header.*
>
>Firewalls are a band-aid that address symptoms.  Robust programs and safe
>practices are way better.

Indeed, but you still can't guarantee the latter hence the former.

The classic problem is buffer overflows. A slightly better solution is
containment of failure, often via chroot(1). Try and do that with inn :-).
I've tried, but since I wanted sendmail in a separate chroot'ed area, it made
moderated newsgroups, control messages, news.daily, etc. a bit difficult. Its
a long story.

Anyway, the problem is definitely not restricted to nnrpd. What if someone has
IP-spoofed or TCP-seq-predicted their way into persuading your innd that
it is your ISP, and so _all_ of innd is open to corruption, not just nnrpd.

Consider if some exploit could be brought about with articles, then what better
exploit than on a system where articles are automatically propagated - its
almost a dormant virus!

The only secure solution is to keep your news server outside your firewall,
or (better) on your DMZ. Then even if it is exploited there's no easy way to
harm incoming newsreaders.


>> NNTP is no different from HTTP
>>in this respect, and there's just as much potential for mischief in INN
>>code as there is in Apache.
>
>No.  The HTTP model encourages people to write a wide variety of CGI
>programs.  The Usenet model discourages new control messages.

Agreed.

Jonathan L.
-- 
Origin UK, 323 Cambridge Science Park, Cambridge, England. CB4 4WG.
-------[ Do not think that every sad-eyed woman has loved and lost... ]------
-----------------------[ she may have got him. -Anon ]-----------------------
These opinions are all my own fault.

Technical Details
Message-ID: <4udbq9$nqr@gatekeeper.origin-at.co.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <Duxq35.5Ew@taux01.nsc.com> <DvDsIs.EA5@ferret.ocunix.on.ca> <slrn50fd9t.o0b.tqbf@enteract.com> <4ud2hk$1b3@paperboy.osf.org>

Show Full Headers
Complete Article Headers
Message-ID: <4udbq9$nqr@gatekeeper.origin-at.co.uk>
Subject: Re: News Proxy?
Date: Thu, 08 Aug 1996 00:00:00 +0000
From: jlarmour@news.origin-at.co.uk (Jonathan Larmour)
References: <Duxq35.5Ew@taux01.nsc.com> <DvDsIs.EA5@ferret.ocunix.on.ca> <slrn50fd9t.o0b.tqbf@enteract.com> <4ud2hk$1b3@paperboy.osf.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 172965648
Content-type: text/plain; charset=US-ASCII
Organization: Origin UK, Cambridge, England.
Mime-version: 1.0
Reply-to: jlarmour@origin-at.co.uk
Newsgroups: news.software.nntp