🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
25 messages
25 total messages Started by Moshe Linzer Mon, 22 Jul 1996 00:00
News Proxy?
#9510
Author: Moshe Linzer
Date: Mon, 22 Jul 1996 00:00
21 lines
1255 bytes
Is there such a thing as a news proxy, that would allow NNTP access to 
"private" newsservers (with username and password) thru a firewall?

Thanks!

Moshe

--
----------------------------------------------------------------------------
Moshe Linzer				Phone:	(972) 9-594-247
Unix Systems Manager			Fax:	(972) 9-558-322
National Semiconductor, Israel		E-mail:	moshel@taux01.nsc.com

Is one language more powerful than another?  Compare, for example, 
English with Yiddish.  Sure, it's hard to describe a carburetor in
Yiddish, but try describing a schlemiel in English. 
						- Clifford Stoll
----------------------------------------------------------------------------

Re: News Proxy?
#9631
Author: Phil Tracy
Date: Thu, 25 Jul 1996 00:00
39 lines
2470 bytes
In article <4t7pe6$8j7@gatekeeper.origin-at.co.uk>, jlarmour@origin-at.co.uk wrote:
>In article <Duxq35.5Ew@taux01.nsc.com>,
>Moshe Linzer <moshel@tasu60.nsc.com> wrote:
>>Is there such a thing as a news proxy, that would allow NNTP access to 
>>"private" newsservers (with username and password) thru a firewall?
>
>Look at the TIS fwtk at ftp.tis.com. Its free and it allows people from
>behind a firewall to connect to an external newsserver.
>
>If what you want is to connect from outside to an internal server, then
>this is a totally different kettle of fish. I recommend you read
>comp.security.firewalls and some firewall books before embarking on this
>otherwise you will have circumvented your firewall and compromised your
>security. News servers should be put outside a firewall, possibly on a
>DMZ.

The other option for connecting from the outside to an internal server (if 
your server runs INN) is to use the authinfo stuff.  This probably only 
works if, as Jonathan recommends, your news server is _outside_ your 
firewall.  Disclaimer -- I don't know squat about firewalls.

I've been exploring a small hack to the ${INNSOURCE}/nnrpd/commands.c module 
which bypasses reading the plaintext username/password in the nnrp.access file 
and does a Kerberos authentication instead.  We may use this in the future to 
provide news access to our students/employees/faculty when they are 
off-campus.  NNRP clients coming in to the server from known NU-only IP 
addresses are allowed in with no password.

The authinfo support in inn1.4* is not especially good, practically speaking.  
The code is there, but the only way to do anything but plaintext passwords in 
the nnrp.access file is, at the moment, to write your own.


Phil Tracy
Northwestern University, Evanston, IL.   USA
ptracy@nwu.edu    http://grumpy.nsg.nwu.edu/tracy/philtracy.html

Re: News Proxy?
#9637
Author: Jonathan Larmour
Date: Thu, 25 Jul 1996 00:00
23 lines
1607 bytes
In article <Duxq35.5Ew@taux01.nsc.com>,
Moshe Linzer <moshel@tasu60.nsc.com> wrote:
>Is there such a thing as a news proxy, that would allow NNTP access to 
>"private" newsservers (with username and password) thru a firewall?

Look at the TIS fwtk at ftp.tis.com. Its free and it allows people from
behind a firewall to connect to an external newsserver.

If what you want is to connect from outside to an internal server, then
this is a totally different kettle of fish. I recommend you read
comp.security.firewalls and some firewall books before embarking on this
otherwise you will have circumvented your firewall and compromised your
security. News servers should be put outside a firewall, possibly on a
DMZ.

Jonathan L.
-- 
323 Cambridge Science Park, Origin UK, Cambridge, England. CB4 4WG.
Tel: +44 (1223) 423355    Fax: +44 (1223) 420724   E-mail: guess...
Not every sad-eyed woman has loved and lost, she may have found him

Re: News Proxy?
#9657
Author: Tom Campbell
Date: Fri, 26 Jul 1996 00:00
24 lines
1257 bytes
Moshe Linzer (moshel@tasu60.nsc.com) wrote:
: Is there such a thing as a news proxy, that would allow NNTP access to 
: "private" newsservers (with username and password) thru a firewall?

The two firewalls I'm familiar with (Gauntlet 3.1.1 by TIS for BSD/Solaris
and Centri 3.0.1 by Global Internet for WinNT) allow you to set up a plug
gateway that allows you to exchange a newsfeed through the firewall.  All of
the standard protocols and authentications work with the plug gateway.

If you're talking readers, that should be possible also using wildcards in
the plug gateway, but I haven't ever tried setting that up.

Hope this helps.

Tom

--

Tom Campbell  tcampbel@unl.edu



Re: News Proxy?
#9683
Author: Michael Hucka
Date: Sat, 27 Jul 1996 00:00
21 lines
1549 bytes
>>>>> On 22 Jul 1996, moshel@tasu60.nsc.com (Moshe Linzer) wrote:

  moshel> Is there such a thing as a news proxy, that would allow NNTP access
  moshel> to "private" newsservers (with username and password) thru a
  moshel> firewall?

I don't know if this has the capability you're looking for, but you might
want to check this item from INN FAQ:

  Subject:  Setting up proxy-nntp to talk through a firewall

  Try ftp.cs.cmu.edu:misc/dnntpd/dnntpd.tar.Z
  or look at backends/rcompressed.c in the INN distribution.
-- 
                                                                       __  __ 
Mike Hucka   hucka@umich.edu   http://ai.eecs.umich.edu/people/hucka  [  \/  ]
  Ph.D. wanna-be, computational models of human visual processing      ][\/][
    Programmer analyst & news admin at U. Michigan Dept. of EECS      [__][__]

Re: News Proxy?
#9690
Author: Brad Templeton
Date: Sun, 28 Jul 1996 00:00
21 lines
1426 bytes
In article <4t7pe6$8j7@gatekeeper.origin-at.co.uk>,
Jonathan Larmour <jlarmour@origin-at.co.uk> wrote:
>In article <Duxq35.5Ew@taux01.nsc.com>,
>If what you want is to connect from outside to an internal server, then
>this is a totally different kettle of fish. I recommend you read
>comp.security.firewalls and some firewall books before embarking on this
>otherwise you will have circumvented your firewall and compromised your
>security. News servers should be put outside a firewall, possibly on a
>DMZ.

Without arguing with the general principle....


Has there ever been a case of security compromised via a reader connection
to an nntp or nnrp server?
-- 
Brad Templeton, publisher, ClariNet Communications Corp.	 info@clari.net
The net's #1 E-Newspaper (1,400,000 paid sbscrbrs.)  http://www.clari.net/brad/

Re: News Proxy?
#9715
Author: Brad Templeton
Date: Mon, 29 Jul 1996 00:00
31 lines
2002 bytes
In article <LOC.gergDvBL8A.G9B@netcom.com>,
Greg Andrews <gerg@netcom.com> wrote:
>brad@clarinet.com (Brad Templeton) writes:
>>
>>Has there ever been a case of security compromised via a reader connection
>>to an nntp or nnrp server?
>>
>
>Depends on what you have in mind when you say "security."
>
>If you include denial-of-service attacks and Usenet article forgeries,
>then the answer is "Yes."

Well, forgeries don't matter because right now your firewall can't protect
you from such forgeries, and to some extent not even from denial of
service attacks.  The nntp server already has access control on what sites
can come in, and any user at that site can come in and do a denial of
service attack.

But what I really want to know, is there any reason to say that a news
server should be outside a firewall or in a DMZ?   I can see the arguments
on a web server, since CGIs and the server itself are a big hole.  But I have
not heard of somebody getting control of a system via the NNTP port as they
sometimes do via the FTP or HTTP or SMTP port.  Not that it's impossible,
but it seems to be pretty secure right now.
-- 
Brad Templeton, publisher, ClariNet Communications Corp.	 info@clari.net
The net's #1 E-Newspaper (1,400,000 paid sbscrbrs.)  http://www.clari.net/brad/

Re: News Proxy?
#9771
Author: Brad Templeton
Date: Tue, 30 Jul 1996 00:00
37 lines
2467 bytes
In article <gergDvDCqE.C4C@netcom.com>,
Greg Andrews <gerg@netcom.com> wrote:
>I think that misses the point.  Isn't the basic purpose of a firewall
>not prevention, but rather isolation?  Wouldn't that apply to denial
>of service attacks as well as other types of security incidents?
>Keeping it outside the firewall is better than allowing it inside?

Nope, because these attacks are on the news server itself.  You can't protect
the server from attacks from people you want to allow to connect!  It is
even more at risk if "outside" the firewall and still equally at risk in
a dmz
>You clipped the part of my post that mentioned a potential security hole
>in older versions of INN, and then ask how someone might gain control
>of a machine via the NNTP port?
>
I missed that.

>Brad, as far as I know, the potential for gaining root access via the
>NNTP port is very, very small.  However, I don't see that as providing
>a reason to make an exception to the general rule (put the daemons that
>accept connections from different Internet sites outside the firewall).

Because that is an expensive rule.  You don't really mean outside the
firewall, you mean in a dmz, a seperate firewall zone.  That costs a lot
of money, sometimes even extra dedicated hardware and it is way out of line
compared to the risk for small and medium sites.

If somebody asks you if there is much risk in having an nntp server inside
your net that takes tcp connections on 119 from any site but of course
bounces them immediately as nntp programs do, if they are not from a known
site, I would say there is no big risk.
-- 
Brad Templeton, publisher, ClariNet Communications Corp.	 info@clari.net
The net's #1 E-Newspaper (1,400,000 paid sbscrbrs.)  http://www.clari.net/brad/

Re: News Proxy?
#9787
Author: Chris Lewis
Date: Wed, 31 Jul 1996 00:00
24 lines
1626 bytes
In article <gergDvDCqE.C4C@netcom.com>, Greg Andrews <gerg@netcom.com> wrote:

>There can be other issues involved as well.  Packet filtering can be
>a big bottleneck in routers.  The more sites that can connect through
>your firewall, the more filter rules you must make your router scan
>on each packet.  Putting relay machines outside the firewall will
>simplify the filtering needed in the firewall itself, preserving
>throughput.

Given that most of what goes through the firewall is supposed to
go through, I don't see that it makes much difference in throughput.

I think it depends on the firewall.  We're using "IP plug boards"
style firewalls (Eagle Systems Raptor), and allowing NNTP to tunnel
through to gateway/backbone servers on the inside.

We believe exposing port 119 on an internal machine is considerably
less of a risk (and a lot easier to maintain) than yet another machine
entirely flapping in the breeze on the outside of the firewall.
-- 
Chris Lewis: _Una confibula non sat est_

Re: News Proxy?
#9788
Author: Bruce Becker
Date: Wed, 31 Jul 1996 00:00
25 lines
1421 bytes
In article <DvDsIs.EA5@ferret.ocunix.on.ca>,
Chris Lewis <clewis@ferret.ocunix.on.ca> wrote:
|
|We believe exposing port 119 on an internal machine is considerably
|less of a risk (and a lot easier to maintain) than yet another machine
|entirely flapping in the breeze on the outside of the firewall.


	actually it's probably better to have a seperate
	interface for the news & web box(es) etc., neither
	inside nor outside.  that way if the server gets
	penetrated by the bad guys they aren`t on the
	corporate backbone, and there are firewall rules
	that make it difficult for them to get there.



-- 
  ,u,	 Bruce Becker		Toronto, Ontario	1 416 699 1868
a /i/	 Internet: bdb@gts.org	Uucp: ...!gts!bdb
 `\o\-e	 "The Gates Motel - users check in but they never check out"
 _< /_								- Windfall 95

Re: News Proxy?
#9821
Author: Don Lewis
Date: Thu, 01 Aug 1996 00:00
24 lines
1737 bytes
In article <4tjgtu$h2d@fugue.clari.net>,
Brad Templeton <brad@clarinet.com> wrote:
>
>But what I really want to know, is there any reason to say that a news
>server should be outside a firewall or in a DMZ?   I can see the arguments
>on a web server, since CGIs and the server itself are a big hole.  But I have
>not heard of somebody getting control of a system via the NNTP port as they
>sometimes do via the FTP or HTTP or SMTP port.  Not that it's impossible,
>but it seems to be pretty secure right now.

If it's outside the firewall, then it's more vulnerable to attack,
including attacks to ports other than the nntp port, but if someone
breaks in, they'll have a hard time using it to attack other hosts
inside your network.

If it's inside, then it's a lot harder to attack, but if someone
breaks in, other hosts on your network are now more vulnerable.
-- 
Don "Truck" Lewis                                       TDK Semiconductor
Internet: Don.Lewis@tsc.tdk.com                         138 New Mohawk Road
Phone: +1 916 478-8284       FAX: +1 916 478-8251       Nevada City, CA  95959

Re: News Proxy?
#9834
Author: Brad Templeton
Date: Fri, 02 Aug 1996 00:00
44 lines
2789 bytes
In article <4trf97$h6j@sunrise.gv.ssi1.com>,
Don Lewis <gdonl@tsc.tdk.com> wrote:
>In article <4tjgtu$h2d@fugue.clari.net>,
>Brad Templeton <brad@clarinet.com> wrote:
>>
>If it's outside the firewall, then it's more vulnerable to attack,
>including attacks to ports other than the nntp port, but if someone
>breaks in, they'll have a hard time using it to attack other hosts
>inside your network.
>
>If it's inside, then it's a lot harder to attack, but if someone
>breaks in, other hosts on your network are now more vulnerable.

Don, I don't mean to be rude, but "Duuuuuh."   I think everybody knows
the basic principles of firewalls here, the question we were trying to
address was the specific issues of news servers and how they relate
to this trade-off.

This is what was meant by all the discussion of the concept of DMZs --
another network with its own firewall, blocking it from the outside and
mostly from access to your own network (but not from your own network).
This is the typical but expensive solution for risky applications, particularly
httpd and ftp but also smtp and several others.

But this is expensive, and a news server, which exists primarily to feed people
inside your site with perhaps some limited access to outsiders, may not
belong in a DMZ or outside, because that would require a higher performance
firewall to handle all the traffic between the dmz and your net.

NNTP is not by definition secure, but when it comes to incoming feeds the
command set the feeding site can execute is so limited that we can be much
more confident of its security.  I mean by and large that command set
is limited to "ihave" and "quit".

Of course you must make sure that the code that refuses reader commands to
outsiders works, and independent of this, your news transfer agent must
not be corruptable with a news article (but firewalls won't help you there
because of the way usenet works.)
-- 
Brad Templeton, publisher, ClariNet Communications Corp.	 info@clari.net
The net's #1 E-Newspaper (1,400,000 paid sbscrbrs.)  http://www.clari.net/brad/

Re: News Proxy?
#9855
Author: Mark Delany
Date: Sat, 03 Aug 1996 00:00
30 lines
1728 bytes
brad@clarinet.com (Brad Templeton) writes:

>NNTP is not by definition secure, but when it comes to incoming feeds the
>command set the feeding site can execute is so limited that we can be much
>more confident of its security.  I mean by and large that command set
>is limited to "ihave" and "quit".

I always get a little nervous about that innocuous 'ihave'. After all
feeding control messages in via 'ihave' potentially provides a nice
access path to shell scripts.

Also, depending on what feeds the server is running, it is quite
possible that a newbie news admin may be running a poorly written
analysis or trigger program of some sort that is vulnerable to certain
types of articles. Eg: a triv sh/greparama style script that is fed
a From: line with backquotes.


Agreed, these scenarios are unlikely but any server that is capable of
running code that can be supplied or modified by a local admin
switches on my paranoia button.

As for that pesky "quit" command, well I think that's less vulnerable
but you never can be too sure :>


Regards.

Re: News Proxy?
#9865
Author: Brad Templeton
Date: Sun, 04 Aug 1996 00:00
38 lines
2606 bytes
In article <4ttum1$l5i$1@bushwire.mira.net.au>,
Mark Delany  <markd@mira.net.au> wrote:
>brad@clarinet.com (Brad Templeton) writes:
>
>>NNTP is not by definition secure, but when it comes to incoming feeds the
>>command set the feeding site can execute is so limited that we can be much
>>more confident of its security.  I mean by and large that command set
>>is limited to "ihave" and "quit".
>
>I always get a little nervous about that innocuous 'ihave'. After all
>feeding control messages in via 'ihave' potentially provides a nice
>access path to shell scripts.

Ah, you perhaps missed the most important point at the start of this
thread.  Of course there are potential holes in the news system.  But
we are not talking about it.  You can firewall your news system with the
best firewall in the world and only take a feed from your twin brother's
site, and somebody random can still inject a control message into the USENET
stream which will make its way through various sites to your twin brother's
and thus into your system.

The question is, what protection does a *firewall* give.  A firewall gives
protection against special tricks that a person actually talking to your
NNTP server can pull, or tricks a person might do to hijack or interfere
with a connection to your NNTP server.

There just don't seem to be much in the way of such tricks, is my point.
Other than that it's easier to fill up your disks, so you don't want to
accept an incoming feed form just anybody.  But the protections in the
nntp servers seem strong enough, though there is some risk of clever
hacks to pretend to be one of those sites -- but again, the most they can
do is feed you lots of news, which there are often other ways to do.
-- 
Brad Templeton, publisher, ClariNet Communications Corp.	 info@clari.net
The net's #1 E-Newspaper (1,400,000 paid sbscrbrs.)  http://www.clari.net/brad/

Re: News Proxy?
#9895
Author: Thomas H. Ptacek
Date: Tue, 06 Aug 1996 00:00
22 lines
1599 bytes
2 Aug 1996 12:40:14 -0700 brad@clarinet.com:
>Don, I don't mean to be rude, but "Duuuuuh."   I think everybody knows
>the basic principles of firewalls here, the question we were trying to
>address was the specific issues of news servers and how they relate
>to this trade-off.

Sir, I don't mean to be rude, but, "duh?". You're talking about tradeoffs
that don't exist. Why would you dedicate all the resources it takes to
appropriately set up a firewall, and then comprimise all of that by
allowing a news server to be accessible from your internal network to the
outside world?

-- 
-----------------------------------------------------------------------------
Thomas Ptacek at The rdist Organization, 
Chicagoland's only kung-fu guerilla terrorist computer security organization. 
------------------------------------------------[ tqbf@rdist.org ]-----------
"If you're so special, why aren't you dead?"


Re: News Proxy?
#9896
Author: Bruce Becker
Date: Tue, 06 Aug 1996 00:00
56 lines
2808 bytes
In article <gergDvL8HL.Kot@netcom.com>, Greg Andrews <gerg@netcom.com> wrote:
|brad@clarinet.com (Brad Templeton) writes:
|>Greg Andrews <gerg@netcom.com> wrote:
|>>
|>>However, I don't see that as providing
|>>a reason to make an exception to the general rule (put the daemons that
|>>accept connections from different Internet sites outside the firewall).
|>
|>Because that is an expensive rule.  You don't really mean outside the
|>firewall, you mean in a dmz, a seperate firewall zone.  That costs a lot
|>of money, sometimes even extra dedicated hardware and it is way out of line
|>compared to the risk for small and medium sites.
|>
|
|Okay, I accept that completely.  If you had stated that you had small
|sites in mind, I wouldn't have brought all this up.


	Well it isn't all that expensive really, at least
	if you're willing to do a bit of work.  Most free
	Unices have some sort of packet filtering available,
	and unless your feed is over 128 kbps you can use a
	386dx33+4MB to handle it.  The trick is to use a
	separate ethernet interface for the servers like
	news & www etc - that way the local lan isn't
	compromised if the server box(es) get hacked;
	but you do need to pay attention to the firewall
	rules to do this right - also it's safer if the
	packet filter can detect address spoofing per
	interface


|A site that receives feeds from several sites will have to have filter
|rules allowing access from those sites (and the return channels).
|The more rules in your filter, the greater the overhead on (almost)
|every packet that passes through the firewall.  If that nntp server
|is outside the firewall, there's only one host trying to get through
|to the inside.


	Overhead shouldn't be a problem (if the packet
	filter isn't too grossly coded that is).  Our
	packet filter handles a full news feed in & out
	plus 175 concurrent telnet sessions & other
	assorted stuff on a 486-66 without complaint;
	there's about 100 rules or so


-- 
  ,u,	 Bruce Becker		Toronto, Ontario	1 416 699 1868
a /i/	 Internet: bdb@gts.org	Uucp: ...!gts!bdb
 `\o\-e	 "The Gates Motel - users check in but they never check out"
 _< /_								- Windfall 95

Re: News Proxy?
#9905
Author: Thomas H. Ptacek
Date: Tue, 06 Aug 1996 00:00
33 lines
2042 bytes
Wed, 31 Jul 1996 00:11:16 GMT clewis@ferret.ocunix.on.ca:
>We believe exposing port 119 on an internal machine is considerably
>less of a risk (and a lot easier to maintain) than yet another machine
>entirely flapping in the breeze on the outside of the firewall.

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.

Part of the concept is that you don't provide services to the outside
world from machines inside your firewall. 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. Perhaps more, because fewer people seem to
understand the potential for such problems in news servers.

INN's saving grace is that it runs as "news", not as "root", but that
doesn't help you much if your internal news server (as is likely in a
firewall installation) isn't appropriately patched up, thus allowing user
"news" to comprimise user "root". There's no reason why all of this
couldn't be done right through the NNTP port.

You might want to think this through a little further.

----------------
Thomas Ptacek at EnterAct, L.L.C., Chicago, IL [tqbf@enteract.com]
----------------
main(){while(1)fork();}




Re: News Proxy?
#9915
Author: Sean Donelan
Date: Tue, 06 Aug 1996 00:00
71 lines
4441 bytes
In article <slrn50fd9t.o0b.tqbf@enteract.com>, tqbf@enteract.com (Thomas H. Ptacek) writes:
> Wed, 31 Jul 1996 00:11:16 GMT clewis@ferret.ocunix.on.ca:
>>We believe exposing port 119 on an internal machine is considerably
>>less of a risk (and a lot easier to maintain) than yet another machine
>>entirely flapping in the breeze on the outside of the firewall.
> 
> 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.

Exposing a single port on a machine otherwise protected by a firewall
may be less risky than exposing the entire machine outside the firewall.
It is even less risky when using a firewall which does some application level
sanity checking of the data stream.  Besides, as firewall vendors keep putting
more and more "features" in their firewalls, with the increased code bloat,
I'm not sure I trust many firewalls anymore.

Whether you put the machine inside the firewall, or outside the firewall,
you need pass NNTP through the firewall.   The question is, do you want
to trust the implementation of thousands of different NNTP clients inside
your firewall accessing a untrustworthy NNTP server outside your firewall.
Or do you trust the implementation of one NNTP server inside your firewall
talking to a limited number of newsfeeds outside your firewall.

Ok, so the real answer is trust no one.  But if you only had resources
for one news machine, and had to choose where to put it, which is less
risky.

> Part of the concept is that you don't provide services to the outside
> world from machines inside your firewall. 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. Perhaps more, because fewer people seem to
> understand the potential for such problems in news servers.

A factor in deciding whether to put a server inside or outside a firewall
is which side will account for the majority of usage.  You want to place
the machine to minimize the number of entities needing to cross the
firewall.

A standalone Apache server for the typical corporate propaganda pages
works well outside the firewall because it requires little interaction
with users inside the firewall and is expect to be used mainly by users
outside the firewall.

Putting a NFS server, used by mostly by users inside the firewall, on the
outside is probably not a good idea.

> INN's saving grace is that it runs as "news", not as "root", but that
> doesn't help you much if your internal news server (as is likely in a
> firewall installation) isn't appropriately patched up, thus allowing user
> "news" to comprimise user "root". There's no reason why all of this
> couldn't be done right through the NNTP port.
> 
> You might want to think this through a little further.

If you put the NNTP server outside the firewall, it is much more likely
to be compromised through all the other holes that exist on most machines.
Inside the firewall, you can concentrate on protecting the one port you let
through.  The same port you would have to let through anyway if you put
the NNTP server outside the firewall.

In an ideal world, you would have protection in depth.  But if you have only
one firewall, and one NNTP machine, you have to make some tough choices.  If
you really want to protect yourself, you might look at the newsfeed to the
FBI.  At one time I believe they got it from UUNET on tape via human courier.
-- 
Sean Donelan, Data Research Associates, Inc, St. Louis, MO
  Affiliation given for identification not representation

Re: News Proxy?
#9959
Author: Rich Salz
Date: Thu, 08 Aug 1996 00:00
9 lines
857 bytes
In <4udbq9$nqr@gatekeeper.origin-at.co.uk> jlarmour@origin-at.co.uk writes:
>Consider if some exploit could be brought about with articles ..

Then it doesn't matter what firewalls you'll have because you'll get
the infection.
	/r$

Re: News Proxy?
#9962
Author: 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.

Re: News Proxy?
#9964
Author: Rich Salz
Date: Thu, 08 Aug 1996 00:00
32 lines
1771 bytes
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.

> 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.

>You might want to think this through a little further.

Ditto.
	/r$

Re: News Proxy?
#9975
Author: Nathan J. Mehl
Date: Thu, 08 Aug 1996 00:00
31 lines
2159 bytes
Thomas H. Ptacek (tqbf@enteract.com) wrote:

: Sir, I don't mean to be rude, but, "duh?". You're talking about tradeoffs
: that don't exist. Why would you dedicate all the resources it takes to
: appropriately set up a firewall, and then comprimise all of that by
: allowing a news server to be accessible from your internal network to the
: outside world?

Um, for the same reason that most sites dedicate the resouces it takes
to appropriately set up a firewall and then compromise all of that by
allowing a sendmail 8.7.5 server to be accessable from their internal
networks to the outside world: because the application is as close to
proven secure as it's possible to get in this imperfect universe.  The
code base is well-published and well-studied, and there hasn't been
a serious non-denial-of-service security issue raised with it in well
over two years now.  (Maybe more...when did sec2 come out?)

As an abstract philosophy, letting nothing through the firewall is,
of course, correct.  But like most ideals, it is better approached then
adhered to when implemented in the real world.  Every decision on
network security is a tradeoff between risk and convenience, and
in the case a large number of admins believe that the former is minimal
and the latter is maximal.

Shall we move on to counting UDP datagrams on the head of pins?

--
Nathan J. Mehl -- The Left Bank Operation -- nathan@leftbank.com

Re: News Proxy?
#9994
Author: Sean Donelan
Date: Fri, 09 Aug 1996 00:00
25 lines
1841 bytes
In article <4udbq9$nqr@gatekeeper.origin-at.co.uk>, jlarmour@news.origin-at.co.uk (Jonathan Larmour) writes:
> 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.

When was the last time you vetted N's or M's combination news reader, www
browser, and bread slicer code.   Was it before allowing it access through
your firewall to that compromised news server just waiting for some
unsuspecting client to ask it the wrong question?   Buffer overflow bugs
aren't unique to server code.  I can't wait until Java applets inside
news articles start getting executed automatically.

<a href="file://localhost/etc/passwd">Click here to compromise</a>

The only secure solution might be a bolt cutter, but even that is iffy.

If I was going to let lots of unsuspecting users *inside* my organization
access a news server, I would protect the news server machine like any
other internal company asset.
-- 
Sean Donelan, Data Research Associates, Inc, St. Louis, MO
  Affiliation given for identification not representation

Re: News Proxy?
#9997
Author: Jonathan Larmour
Date: Fri, 09 Aug 1996 00:00
22 lines
1698 bytes
In article <4udg4r$27c@paperboy.osf.org>, Rich Salz <rsalz@osf.org> wrote:
>In <4udbq9$nqr@gatekeeper.origin-at.co.uk> jlarmour@origin-at.co.uk writes:
>>Consider if some exploit could be brought about with articles ..
>
>Then it doesn't matter what firewalls you'll have because you'll get
>the infection.

I meant that as a result you can't trust innd or nnrpd on your own server.
I don't see how you can think that will affect the actual news-readers, as
there is a very restricted form of data transfer between nnrpd and the
readers, which is a lot less susceptible to hacking in principle than the
link between e.g. innd and control messages.

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.

Re: News Proxy?
#10024
Author: Jeffrey C. Ollie
Date: Fri, 09 Aug 1996 00:00
47 lines
2614 bytes
-----BEGIN PGP SIGNED MESSAGE-----

On 9 Aug 1996 16:40:37 +0100, Jonathan Larmour <jlarmour@news.origin-at.co.uk> wrote:
>In article <4udg4r$27c@paperboy.osf.org>, Rich Salz <rsalz@osf.org> wrote:
>>In <4udbq9$nqr@gatekeeper.origin-at.co.uk> jlarmour@origin-at.co.uk writes:
>>>Consider if some exploit could be brought about with articles ..
>>
>>Then it doesn't matter what firewalls you'll have because you'll get
>>the infection.
>
>I meant that as a result you can't trust innd or nnrpd on your own server.
>I don't see how you can think that will affect the actual news-readers, as
>there is a very restricted form of data transfer between nnrpd and the
>readers, which is a lot less susceptible to hacking in principle than the
>link between e.g. innd and control messages.

So don't trust *any* control messages - not even cancels. Sure, you'll
end up wasting some disk space but you'll eliminate one potential
worry. Also, there's no reason that you can't implement all of the
control messages in the news server rather than exec'ing a script.


[A copy of the headers are included here so that they can be signed.]
Date: Fri, 09 Aug 1996 18:30:22 -0500
Followup-To: 
Newsgroups: news.software.nntp
Organization: INS Info Services, Des Moines, IA, USA
References: <Duxq35.5Ew@taux01.nsc.com> <4ud2hk$1b3@paperboy.osf.org> <4udbq9$nqr@gatekeeper.origin-at.co.uk> <4udg4r$27c@paperboy.osf.org> <4ufm5l$mqt@gatekeeper.origin-at.co.uk>
Subject: Re: News Proxy?

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2
Comment: Processed by AnySign 1.1

iQCVAwUBMgvKE5wkOQz8sbZFAQF91wQA12si8XkdiZ5ia/SrWbeNg1IXzuas0DbM
GweO3rSKOW+VbEcgfcRVuzp0eMZwak24TwcGY/Y10ip7J3K7QQ+Sm+MndVLiKUyS
lf98DeVbbcx5tbFAPbrcwzP2U+/rbK9goOFcvdyg8CHcp82hJMeyIoCcou/V9a1T
mc+S1XmhblE=
=eLC9
-----END PGP SIGNATURE-----
-- 
Jeffrey C. Ollie
Iowa Network Services System Administrator


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