🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
12 messages
12 total messages Started by John F. Morse Tue, 28 Feb 2006 14:25
Telnet authinfo listing
#73331
Author: John F. Morse
Date: Tue, 28 Feb 2006 14:25
17 lines
1710 bytes
Is there an INN telnet command argument for authinfo that will list the 
authorized users with the most-recent date of access?

With RumorMill on a Mac, I use an "xauthinfo list" telnet command. This 
gives the username, encrypted password, and the last date and time 
accessed. This is useful to weed out slackers.

INN's "help" in telnet shows: "authinfo user Name | pass Password | 
generic <prog> <args>" for legal commands. What are the "generic" 
arguments/options?

Is there a man page with this telnet info? If so, under which man page?

TIA.

-- 
John
Re: Telnet authinfo listing
#73333
Author: Ken Murchison
Date: Tue, 28 Feb 2006 15:02
18 lines
1982 bytes
John F. Morse wrote:
> Is there an INN telnet command argument for authinfo that will list the 
> authorized users with the most-recent date of access?
> 
> With RumorMill on a Mac, I use an "xauthinfo list" telnet command. This 
> gives the username, encrypted password, and the last date and time 
> accessed. This is useful to weed out slackers.

 From a security standpoint this is a *really* bad idea.  This command 
allows an attacker to get a list of valid userids and then it can use a 
simple dictionary attack to find the password for one or more users. 
IMO, information like this should not be available in-protocol.

-- 
Kenneth Murchison
Systems Programmer
Project Cyrus Developer/Maintainer
Carnegie Mellon University
Re: Telnet authinfo listing
#73334
Author: Jeffrey M. Vinocur
Date: Tue, 28 Feb 2006 16:10
27 lines
1777 bytes
In article <X3ZMf.155$J02.31@bgtnsc04-news.ops.worldnet.att.net>,
John F. Morse <xanadu.bbs@invalid.net> wrote:
>Is there an INN telnet command argument for authinfo that will list the 
>authorized users with the most-recent date of access?

No.

They should be reported in your news.daily reports, though.


>INN's "help" in telnet shows: "authinfo user Name | pass Password | 
>generic <prog> <args>" for legal commands. What are the "generic" 
>arguments/options?

It's definitely not what you're looking for, but since you asked,
AUTHINFO GENERIC is a deprecated pluggable authorization
mechanism (it's being replaced by SASL).


>Is there a man page with this telnet info? If so, under which man page?

Nope.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Telnet authinfo listing
#73336
Author: John F. Morse
Date: Tue, 28 Feb 2006 16:42
29 lines
2428 bytes
Ken Murchison wrote:

> John F. Morse wrote:
>
>> Is there an INN telnet command argument for authinfo that will list 
>> the authorized users with the most-recent date of access?
>>
>> With RumorMill on a Mac, I use an "xauthinfo list" telnet command. 
>> This gives the username, encrypted password, and the last date and 
>> time accessed. This is useful to weed out slackers.
>
>
> From a security standpoint this is a *really* bad idea.  This command 
> allows an attacker to get a list of valid userids and then it can use 
> a simple dictionary attack to find the password for one or more users. 
> IMO, information like this should not be available in-protocol. 



Ken, I didn't fully describe all of the steps required to gain access to 
that one telnet command. Most X-commands are behind a second password, 
which makes them more secure than the password file on the INN server. 
After all, everyone knows root and news are the two user names for INN 
on *nix. Nobody knows the user name for RumorMill on the Mac.

Furthermore, dictionary attacks shouldn't discover a good password.

-- 
John
Re: Telnet authinfo listing
#73337
Author: John F. Morse
Date: Tue, 28 Feb 2006 17:12
66 lines
3417 bytes
Jeffrey M. Vinocur wrote:

>In article <X3ZMf.155$J02.31@bgtnsc04-news.ops.worldnet.att.net>,
>John F. Morse <xanadu.bbs@invalid.net> wrote:
>  
>
>>Is there an INN telnet command argument for authinfo that will list the 
>>authorized users with the most-recent date of access?
>>    
>>
>
>No.
>
>They should be reported in your news.daily reports, though.
>
>
>  
>
>>INN's "help" in telnet shows: "authinfo user Name | pass Password | 
>>generic <prog> <args>" for legal commands. What are the "generic" 
>>arguments/options?
>>    
>>
>
>It's definitely not what you're looking for, but since you asked,
>AUTHINFO GENERIC is a deprecated pluggable authorization
>mechanism (it's being replaced by SASL).
>
>
>  
>
>>Is there a man page with this telnet info? If so, under which man page?
>>    
>>
>
>Nope.
>


Thanks, Jeff.

The news.daily report only list those who accessed the system. I was 
interested in those who are long gone, but the active users are surely a 
needed part of the equation.

I suppose a good programmer could write a script to search through a 
mail archive directory of news.daily messages, tally all the active 
users, then spit out the result. However, considering the differences in 
e-mail message storage by the various e-mail clients, there wouldn't be 
any one-for-all script.

Probably the better idea would be to run a daily cron of the 
OLD/news.notice.1.gz and tally what is found there. At this point in 
time, the job is way beyond my abilities and desires. ;-)

Some kind of counter should be available though, to weed out those users 
who haven't been active in a long time. This is necessary for those 
installations where a status listing of terminated employees or paid-up 
monthly subscriptions are not used. Plus the occasional (?) user who 
forgets his password and then reapplies with a different username. I do 
not know the size limitations of the password file, or at what point 
searching through it starts slowing down the server, but keeping it up 
to date is something that should be considered.

-- 
John
Re: Telnet authinfo listing
#73339
Author: Jeffrey M. Vinocur
Date: Tue, 28 Feb 2006 22:30
32 lines
2562 bytes
In article <iw%Mf.476977$qk4.144114@bgtnsc05-news.ops.worldnet.att.net>,
John F. Morse <xanadu.bbs@invalid.net> wrote:
>
>Some kind of counter should be available though, to weed out those users 
>who haven't been active in a long time. This is necessary for those 
>installations where a status listing of terminated employees or paid-up 
>monthly subscriptions are not used. Plus the occasional (?) user who 
>forgets his password and then reapplies with a different username. I do 
>not know the size limitations of the password file, or at what point 
>searching through it starts slowing down the server, but keeping it up 
>to date is something that should be considered.

I would say that detailed account management is way outside our
scope, personally.  But the hooks are certainly there to let you
do anything you want.

Some thoughts, since you seem set on this feature...this is all
off the cuff, since I've certainly never been interested in this
problem before...

Unless you have a particular need to recover this information
from historical records, I'd forgo trying to parse mail messages,
or even news.notice logs, as both being overly painful.  Instead,
I would save details on the events you're interested in as they
occur.  For example, you could easily wrap or patch ckpasswd to
log whatever information you need at the time of the successful
login.  This should be straightforward.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: Telnet authinfo listing
#73341
Author: F. Senault
Date: Wed, 01 Mar 2006 01:31
15 lines
1758 bytes
Le 28 février 2006 à 23:30, Jeffrey M. Vinocur a écrit :

> For example, you could easily wrap or patch ckpasswd to
> log whatever information you need at the time of the successful
> login.  This should be straightforward.

Isn't it possible to use PAM with ckpasswd and choose plugins that
support accounting ?

Fred
-- 
Can you help me remember how to smile
Make it somehow all seem worthwhile
How on earth did I get so jaded
Life's mystery seems so faded               (Soul Asylum, Runaway Train)
Re: Telnet authinfo listing
#73342
Author: Russ Allbery
Date: Wed, 01 Mar 2006 01:37
17 lines
1899 bytes
F Senault <fred@lacave.net> writes:
> Le 28 février 2006 à 23:30, Jeffrey M. Vinocur a écrit :

>> For example, you could easily wrap or patch ckpasswd to
>> log whatever information you need at the time of the successful
>> login.  This should be straightforward.

> Isn't it possible to use PAM with ckpasswd and choose plugins that
> support accounting ?

Yup, that would work too.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Telnet authinfo listing
#73353
Author: Bill Cole
Date: Wed, 01 Mar 2006 17:25
51 lines
3417 bytes
In article 
<94%Mf.476842$qk4.362444@bgtnsc05-news.ops.worldnet.att.net>,
 "John F. Morse" <xanadu.bbs@invalid.net> wrote:

> Ken Murchison wrote:
> 
> > John F. Morse wrote:
> >
> >> Is there an INN telnet command argument for authinfo that will list 
> >> the authorized users with the most-recent date of access?
> >>
> >> With RumorMill on a Mac, I use an "xauthinfo list" telnet command. 
> >> This gives the username, encrypted password, and the last date and 
> >> time accessed. This is useful to weed out slackers.
> >
> >
> > From a security standpoint this is a *really* bad idea.  This command 
> > allows an attacker to get a list of valid userids and then it can use 
> > a simple dictionary attack to find the password for one or more users. 
> > IMO, information like this should not be available in-protocol. 
> 
> 
> 
> Ken, I didn't fully describe all of the steps required to gain access to 
> that one telnet command. Most X-commands are behind a second password, 
> which makes them more secure than the password file on the INN server. 
> After all, everyone knows root and news are the two user names for INN 
> on *nix.

All true, but speaking as a longtime user of RM (still chugging away on 
a Performa 575 6 feet behind me...) I agree with Ken's basic premise 
that the security model for RM administration is extraordinarily bad. 
Yes, you need to give an XPASS command, but that's done in plain text 
and unlocks the session for full control over the news server on that 
port 119 connection. Very sniffable, very dangerous, not really 
securable. Administration out of band (i.e. the way INN does it) is 
really a lot better because you don't have any way to get from a common 
user's newsreading session into godlike status: knowing the root 
password and having a port 119 session MIGHT get you reading and posting 
permission, but it won't let you halt the server. 

> Nobody knows the user name for RumorMill on the Mac.

No need. XPASS only requires the server password, not a user name. 

> Furthermore, dictionary attacks shouldn't discover a good password.

An adequately persistent brute force attack can discover any password.

-- 
Now where did I hide that website...
Re: Telnet authinfo listing
#73365
Author: John F. Morse
Date: Thu, 02 Mar 2006 03:24
107 lines
5469 bytes
Bill Cole wrote:

>In article 
><94%Mf.476842$qk4.362444@bgtnsc05-news.ops.worldnet.att.net>,
> "John F. Morse" <xanadu.bbs@invalid.net> wrote:
>
>  
>
>>Ken Murchison wrote:
>>
>>    
>>
>>>John F. Morse wrote:
>>>
>>>      
>>>
>>>>Is there an INN telnet command argument for authinfo that will list 
>>>>the authorized users with the most-recent date of access?
>>>>
>>>>With RumorMill on a Mac, I use an "xauthinfo list" telnet command. 
>>>>This gives the username, encrypted password, and the last date and 
>>>>time accessed. This is useful to weed out slackers.
>>>>        
>>>>
>>>From a security standpoint this is a *really* bad idea.  This command 
>>>allows an attacker to get a list of valid userids and then it can use 
>>>a simple dictionary attack to find the password for one or more users. 
>>>IMO, information like this should not be available in-protocol. 
>>>      
>>>
>>
>>Ken, I didn't fully describe all of the steps required to gain access to 
>>that one telnet command. Most X-commands are behind a second password, 
>>which makes them more secure than the password file on the INN server. 
>>After all, everyone knows root and news are the two user names for INN 
>>on *nix.
>>    
>>
>
>All true, but speaking as a longtime user of RM (still chugging away on 
>a Performa 575 6 feet behind me...) I agree with Ken's basic premise 
>that the security model for RM administration is extraordinarily bad. 
>Yes, you need to give an XPASS command, but that's done in plain text 
>and unlocks the session for full control over the news server on that 
>port 119 connection. Very sniffable, very dangerous, not really 
>securable. Administration out of band (i.e. the way INN does it) is 
>really a lot better because you don't have any way to get from a common 
>user's newsreading session into godlike status: knowing the root 
>password and having a port 119 session MIGHT get you reading and posting 
>permission, but it won't let you halt the server. 
>
>  
>
>>Nobody knows the user name for RumorMill on the Mac.
>>    
>>
>
>No need. XPASS only requires the server password, not a user name. 
>
>  
>
>>Furthermore, dictionary attacks shouldn't discover a good password.
>>    
>>
>
>An adequately persistent brute force attack can discover any password.
>


Thanks for your input, Bill.

Without fear of giving away yet another of my security "secrets," let me 
say that port 119 is not open to the WAN. Nor is that port assigned to 
RM. ;-)

The three RM servers are simply peering with each other over the LAN, 
one sucking some groups from an ISP, but all three basically doing 
little else other than archiving. One is running a beta RM for Jim 
Calvin, the developer.

Furthermore, there is no guarantee that accessing INN will be over SSH 
instead of insecure telnet, so it too can be less secure.

A few months ago it was "suggested" that using SSL for NNTP was a waste 
of time. I wanted to set it up, but was discouraged. Evidently the 
feeling of this group was there is nothing so important on a news server 
to require the extra security.

The whole authentication idea is to keep people honest, just like the 
cheap locks on your house. If someone wants in bad enough, well....

I will agree that RM has less built-in security, and far, far less 
features, but it is much easier to configure for a n00b, wouldn't you agree?

I moved to INN for the additional needs and security possibilities, plus 
the stability. RM writes a log -- one BIG log -- by appending. When it 
grows to 150 MB or so (three months), then the Mac crashes. INN is 
better designed for long-term stability, and on a more-stable platform. 
One INN server is approaching six months of continuous service without 
any troubles.

I see you on my SIMS list as well. I run SIMS but am planning to switch 
to a Linux server, as well as replacing QuickDNS Pro with BIND. Are you 
also active on any Sendmail/Postfix/Exim newsgroups?

-- 
John
Re: Telnet authinfo listing
#73369
Author: Bill Cole
Date: Thu, 02 Mar 2006 04:38
93 lines
5553 bytes
In article <pztNf.5114$J02.3320@bgtnsc04-news.ops.worldnet.att.net>,
 "John F. Morse" <xanadu.bbs@invalid.net> wrote:
[...]
> Without fear of giving away yet another of my security "secrets," let me 
> say that port 119 is not open to the WAN. Nor is that port assigned to 
> RM. ;-)

I'm not sure that precise wording says much... 

If RM isn't accessible from untrusted networks, its administrative 
security design flaw is not such a big issue. 

> The three RM servers are simply peering with each other over the LAN, 
> one sucking some groups from an ISP, but all three basically doing 
> little else other than archiving. One is running a beta RM for Jim 
> Calvin, the developer.

 Glad to hear that Jim is still fiddling with RM, although I doubt I'll 
ever use any future release. I'm trying to retire the host running it 
along with the other 68k server programs running on it. 

> Furthermore, there is no guarantee that accessing INN will be over SSH 
> instead of insecure telnet, so it too can be less secure.

Can be, certainly, but my point is that you really cannot make RM 
administrative access secure from your user population. Anything can be 
made insecure, but making an INN server reasonably secure is possible to 
a significantly greater degree than an RM server because of that design. 

> A few months ago it was "suggested" that using SSL for NNTP was a waste 
> of time. I wanted to set it up, but was discouraged. Evidently the 
> feeling of this group was there is nothing so important on a news server 
> to require the extra security.

I think that depends on what the news server is used for. SSL/TLS 
(encrypted sessions) probably is pointless for any server carrying just 
public groups, but SASL (robust authentication, with most methods being 
sniff-proof) is a fine idea. The distinction is sometimes missed, and 
SSL/TLS is sometimes seen as a suitable hammer for driving all screws. 
If you implement SSL/TLS you don't really need more complex auth schemes 
as much. 

> The whole authentication idea is to keep people honest, just like the 
> cheap locks on your house. If someone wants in bad enough, well....

There are certainly risks in cracked news server authentication. You 
don't want to end up as an injection point for anything that would get 
you in hot water with your peers or the law, for example. of course, no 
external path to the news server solves that one fairly well as long as 
you can trust your users. 

> I will agree that RM has less built-in security, and far, far less 
> features, but it is much easier to configure for a n00b, wouldn't you agree?

I'm a bad person to ask that. I've been working with INN for a very long 
time, and find the text files a lot less frustrating than poking at RM 
by hand or rolling the dice on how RM Setup might flake out today. 

> I moved to INN for the additional needs and security possibilities, plus 
> the stability. RM writes a log -- one BIG log -- by appending. When it 
> grows to 150 MB or so (three months), then the Mac crashes. 

That specific issue is not hard to resolve. Set the log limit inside RM 
low, and have it use syslog to send messages to something else, either a 
syslog listening on a Unixish system or MacNetLogger on the same host. 

But generally yes, you will have flakiness. I've seen RM chew up its own 
prefs file quite badly, and it is capable of crashing the system, 
usually leaving the disk in need of a Disk First Aid run. 

> INN is 
> better designed for long-term stability, and on a more-stable platform. 
> One INN server is approaching six months of continuous service without 
> any troubles.

INN is absolutely a more stable server. 

> I see you on my SIMS list as well. I run SIMS but am planning to switch 
> to a Linux server, as well as replacing QuickDNS Pro with BIND. 

I'm on the same path, except that I long ago relegated my QDP instance 
to being only a local cache for SIMS and put my real DNS on BIND on 
MacOS X, and will be shifting to MacOS X and Postfix away from SIMS when 
I can find the free time to get it done. 

>Are you 
> also active on any Sendmail/Postfix/Exim newsgroups?

I drop in and out of comp.mail.sendmail (I work with Sendmail a lot 
professionally) but that's about it.

-- 
Now where did I hide that website...
Re: Telnet authinfo listing
#73375
Author: Bill Davidsen
Date: Thu, 02 Mar 2006 17:27
64 lines
4635 bytes
Bill Cole wrote:
> In article 
> <94%Mf.476842$qk4.362444@bgtnsc05-news.ops.worldnet.att.net>,
>  "John F. Morse" <xanadu.bbs@invalid.net> wrote:
> 
>> Ken Murchison wrote:
>>
>>> John F. Morse wrote:
>>>
>>>> Is there an INN telnet command argument for authinfo that will list 
>>>> the authorized users with the most-recent date of access?
>>>>
>>>> With RumorMill on a Mac, I use an "xauthinfo list" telnet command. 
>>>> This gives the username, encrypted password, and the last date and 
>>>> time accessed. This is useful to weed out slackers.
>>>
>>> From a security standpoint this is a *really* bad idea.  This command 
>>> allows an attacker to get a list of valid userids and then it can use 
>>> a simple dictionary attack to find the password for one or more users. 
>>> IMO, information like this should not be available in-protocol. 
>>
>>
>> Ken, I didn't fully describe all of the steps required to gain access to 
>> that one telnet command. Most X-commands are behind a second password, 
>> which makes them more secure than the password file on the INN server. 
>> After all, everyone knows root and news are the two user names for INN 
>> on *nix.
> 
> All true, but speaking as a longtime user of RM (still chugging away on 
> a Performa 575 6 feet behind me...) I agree with Ken's basic premise 
> that the security model for RM administration is extraordinarily bad. 
> Yes, you need to give an XPASS command, but that's done in plain text 
> and unlocks the session for full control over the news server on that 
> port 119 connection. Very sniffable, very dangerous, not really 
> securable. Administration out of band (i.e. the way INN does it) is 
> really a lot better because you don't have any way to get from a common 
> user's newsreading session into godlike status: knowing the root 
> password and having a port 119 session MIGHT get you reading and posting 
> permission, but it won't let you halt the server. 
> 
>> Nobody knows the user name for RumorMill on the Mac.
> 
> No need. XPASS only requires the server password, not a user name. 
> 
>> Furthermore, dictionary attacks shouldn't discover a good password.
> 
> An adequately persistent brute force attack can discover any password.
> 
In terms of the heat death of the universe that's true, but a decent 
validator sure will make it time consuming, by being really slow to 
return status on fails, and track state to allow temporary locking of an 
account after some small number of failures. It effectively raises the 
time needed between guesses to {LONG TIME} or even the correct password 
will be rejected.

And of course there's a fail counter on the account, so flags go up 
right away. So you could get lucky with brute force and a bad password 
choice, but in general it's too slow to be much of a threat if the 
server is properly paranoid.

-- 
bill davidsen
   SBC/Prodigy Yorktown Heights NY data center
   http://newsgroups.news.prodigy.com
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