🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
8 messages
8 total messages Started by Mark Nagel Mon, 01 May 1989 22:48
NNTP authentication
#154
Author: Mark Nagel
Date: Mon, 01 May 1989 22:48
20 lines
1841 bytes
This has been brought up before, but some people here have recently
re-asked the question, "Why can't we make certain groups readable only
be certain people?" again.  Currently, NNTP has no built-in
authentication system other than host authentication.  How difficult
would it be to modify things such that any potential client must run a
local program that connects to the remote NNTP server over a trusted
port?  Then, if a connection comes in from a non-trusted port, the
server could just deny read access to *any* group that has such access
restrictions.  However, if the connection comes in trusted, then the
uid, etc. information transmitted would be known to be secure.
Clearly, this could be broken by a user with a PC and root access, but
for the intended purposes (local groups with uuid or gid based
restrictions), it should suffice.  Has anyone ever done anything like
this?  Any thoughts?

Mark Nagel @ UC Irvine, Department of Information and Computer Science
                            +----------------------------------------+
ARPA: nagel@ics.uci.edu     | If you improve something long enough   |
UUCP: ucbvax!ucivax!nagel   | eventually you will throw it away.     |
Re: NNTP authentication
#156
Author: Rich Salz
Date: Tue, 02 May 1989 14:53
23 lines
1484 bytes
In <13084@paris.ics.uci.edu> nagel@beaver.ics.uci.edu (Mark Nagel) writes:
>  How difficult
>would it be to modify things such that any potential client must run a
>local program that connects to the remote NNTP server over a trusted
>port?

As you point out, this could be broken by anyone with a PC and/or
root access.  Note that there are NNTP clients for several systems --
Symbolics, PC, VMS, Twenex -- that have absolutely no concept of the
BSD "trusted port" invention.

The other problem with this is that it requires your server to know
the UID's of all readers, and that doesn't always make sense.  And
given the heterogeneity, you can't use things like the Unix UID/GID
anyhow.

I think one easy way to do this is to add an "SGROUP" command which
is like the GROUP command but takes a password.  A longer range solution
might be, sigh, Kerberos.
	/r$
-- 
Please send comp.sources.unix-related mail to rsalz@uunet.uu.net.
Re: NNTP authentication
#164
Author: Erik E. Fair
Date: Tue, 02 May 1989 16:19
5 lines
721 bytes
Kerberos looks the most promising to me (mostly because there isn't
anything else out there that I can just grab code for).

	Erik E. Fair	apple!fair	fair@apple.com
Re: NNTP authentication
#157
Author: Johan Vromans
Date: Tue, 02 May 1989 20:33
41 lines
2399 bytes
In article <13084@paris.ics.uci.edu> nagel@beaver.ics.uci.edu (Mark Nagel) writes:
>  This has been brought up before, but some people here have recently
>  re-asked the question, "Why can't we make certain groups readable only
>  be certain people?" again.  [Etc...]

Having to deal with the same problem, I have hacked nntp 1.5 with the
following extensions:

 - the client sends a "HELO <username>" command upon connection, and
   uses the result instead of the initial "Ready" message if it's 250
   or 251.
 - the server accepts such a "HELO <username>" command, and can use it
   to delimit access. Posting access is denied by sending "251"
   instead of "250" (if I remember well).
 - the newsgroup name matching algorith has been made more restrictive,
   such that "group-x" means "group-x" only. Extensions could be made
   to add full 'rnews'-style newsgroups-lists.

Of course, this method depends on the co-operation of the client. Any
user who can write his own nntp-access routines can bypass the
user-based authorization (not the hostname-based authorization).
Currently, if no "HELO" command is sent, default access for the host
is allowed.

Writing the hostname/username in the nntp logfile gives usefull
information about the users who are reading news using nntp.

Of course this is a hack. It works for me, but it is not fool-proof
not completed.

If anyone wants to take these modifications as a start, I'll be glad
to send them.

	Johan

--
Johan Vromans			 jv@mh.nl via european backbone (mcvax)
Multihouse Automatisering bv		uucp: ..!{mcvax,hp4nl}!mh.nl!jv
Doesburgweg 7					  phone: +31 1820 62944
2803 PL Gouda - The Netherlands			    fax: +31 1820 62500
Re: NNTP authentication
#160
Author: Toerless Eckert
Date: Wed, 03 May 1989 10:07
36 lines
2511 bytes
In article <13084@paris.ics.uci.edu>, nagel@beaver.ics.uci.edu (Mark Nagel) writes:
..
> port?  Then, if a connection comes in from a non-trusted port, the
> server could just deny read access to *any* group that has such access
> restrictions.  However, if the connection comes in trusted, then the
> uid, etc. information transmitted would be known to be secure.
> Clearly, this could be broken by a user with a PC and root access, but
> for the intended purposes (local groups with uuid or gid based
> restrictions), it should suffice.  Has anyone ever done anything like
> this?  Any thoughts?

Changing nntp code to look for privileged ports is not that difficult.
I have changed my copy of the 1.5 nntp code to do this things, but not
for the reason to disallow anyone reading news, but only to prevent
forgery of articles. It was only necessary to change the nntp code
to achieve that. My nntp inews now has a root s-bit, and will
verify the contents of the "from": and "sender:" header fields, before
passing the message on to the nntp server (and the nntp server only accepts
"post" or "ihave" from privileged ports, if that feature is enabled).

If you want a uid/gid based authentication, you will have to change
the news reader too, and if you want to administrate the
whole from the site fo the nntp server, you will have to change
the nntp protocol also. There are too many different news reader by now,
to change them all for that (you name the best news reader ?).

If you do not change the nntp protocol, than you have to chance
against PC's.

If you really want to handle groups that restrictive, don't use
nntp, don't even use news, use notes or mailing lists. Handling news
restrictive contradicts the usenet etiquette.

				Toerless Eckert
				(eckert@immd4.informatik.uni-erlangen.de)
Re: Re: NNTP authentication
#161
Author: Amanda Walker
Date: Wed, 03 May 1989 17:31
23 lines
1482 bytes
In article <JV.89May2143345@mhres.mh.nl>, jv@mh.nl (Johan Vromans) writes:
>Of course, this method depends on the co-operation of the client. Any
>user who can write his own nntp-access routines can bypass the
>user-based authorization (not the hostname-based authorization).
>Currently, if no "HELO" command is sent, default access for the host
>is allowed.

The users don't even have to write a program under most operating
systems; how about:

    telnet hostname 119
    200 ...
    HELO root

It does keep people from reading some groups accidentally with rrn,
I suppose, but that's about it.  I wouldn't consider it a security
measure by any means.

--
Amanda Walker
InterCon Systems Corporation
amanda@intercon.UUCP / intercon!amanda@uunet.uu.net
Re: NNTP authentication
#162
Author: David Herron -- One of the verte...
Date: Wed, 03 May 1989 20:56
17 lines
1485 bytes
In article <13084@paris.ics.uci.edu> nagel@beaver.ics.uci.edu (Mark Nagel) writes:
>port?  Then, if a connection comes in from a non-trusted port, the
>server could just deny read access to *any* group that has such access
>restrictions.  However, if the connection comes in trusted, then the

What if the connection is coming from a PC-Clone with the right
hardware & software?  (namely, *ANY* TCP/IP software and an interface,
not necessarily an ether card)

Boys and Girls ... the Bezerkeley concept of priviledged ports is
merely a Unixism and is not enforced elsewhere.
-- 
<- David Herron; an MMDF guy                              <david@ms.uky.edu>
<- ska: David le casse\*'      {rutgers,uunet}!ukma!david, david@UKMA.BITNET
<- By all accounts, Cyprus (or was it Crete?) was covered with trees at one time
<- 		-- Until they discovered Bronze
Re: NNTP authentication
#163
Author: Brian Kantor
Date: Thu, 04 May 1989 06:53
17 lines
1319 bytes
I think Phil, Erik, and I are in agreement that any authentication of
readers or posters is not possible in NNTP using the current spec.

My feeling is that such is just a specific case of the general problem
of authentication on networks; something like Kerberos seems to be
the right approach and might well be something we should add to a
revised NNTP spec.  

User and time-of-day as well as other access controls aren't really the
province of the Network News TRANSPORT Protocol spec, but it's clear
that we should have some provision to accomodate them, if only by having
some way to pass security transactions around as part of the nntp
session.

I've being vague intentionally.
	- Brian
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