Thread View: news.software.nntp
6 messages
6 total messages
Started by John F. Morse
Sun, 26 Jul 2009 19:05
Anonymous access leak?
Author: John F. Morse
Date: Sun, 26 Jul 2009 19:05
Date: Sun, 26 Jul 2009 19:05
105 lines
4590 bytes
4590 bytes
I only allow anonymous access to one local "info" group (see
readers.conf below).
How does this connection access these two groups?:
john@optima5:/var/log$ sudo less syslog | grep 85.107.169.241
Jul 26 12:24:57 optima5 nnrpd[13245]: ? reverse lookup for
85.107.169.241 failed: Unknown host -- using IP address for access
Jul 26 12:24:57 optima5 nnrpd[13245]: 85.107.169.241 (85.107.169.241)
connect
Jul 26 12:24:57 optima5 nnrpd[13245]: 85.107.169.241 res <anonymous>
Jul 26 12:24:57 optima5 nnrpd[13245]: 85.107.169.241 no_match_user
<anonymous> <localhost>
Jul 26 12:24:57 optima5 nnrpd[13245]: 85.107.169.241 match_user
<anonymous> *
Jul 26 12:24:57 optima5 nnrpd[13245]: 85.107.169.241 group
linux.debian.l10n.turkish 0
Jul 26 12:24:58 optima5 nnrpd[13245]: 85.107.169.241 group
linux.debian.user.turkish 0
Jul 26 12:24:58 optima5 nnrpd[13245]: 85.107.169.241 times user 0.060
system 0.048 idle 0.000 elapsed 1.677
Jul 26 12:59:29 optima5 nnrpd[13762]: ? reverse lookup for
85.107.169.241 failed: Unknown host -- using IP address for access
Jul 26 12:59:29 optima5 nnrpd[13762]: 85.107.169.241 (85.107.169.241)
connect
Jul 26 12:59:29 optima5 nnrpd[13762]: 85.107.169.241 res <anonymous>
Jul 26 12:59:29 optima5 nnrpd[13762]: 85.107.169.241 no_match_user
<anonymous> <localhost>
Jul 26 12:59:29 optima5 nnrpd[13762]: 85.107.169.241 match_user
<anonymous> *
Jul 26 12:59:30 optima5 nnrpd[13762]: 85.107.169.241 group
linux.debian.l10n.turkish 0
Jul 26 12:59:30 optima5 nnrpd[13762]: 85.107.169.241 group
linux.debian.user.turkish 0
Jul 26 12:59:30 optima5 nnrpd[13762]: 85.107.169.241 times user 0.076
system 0.028 idle 0.000 elapsed 1.066
Jul 26 13:34:04 optima5 nnrpd[14442]: ? reverse lookup for
85.107.169.241 failed: Unknown host -- using IP address for access
Jul 26 13:34:04 optima5 nnrpd[14442]: 85.107.169.241 (85.107.169.241)
connect
Jul 26 13:34:04 optima5 nnrpd[14442]: 85.107.169.241 res <anonymous>
Jul 26 13:34:04 optima5 nnrpd[14442]: 85.107.169.241 no_match_user
<anonymous> <localhost>
Jul 26 13:34:04 optima5 nnrpd[14442]: 85.107.169.241 match_user
<anonymous> *
Jul 26 13:34:05 optima5 nnrpd[14442]: 85.107.169.241 group
linux.debian.l10n.turkish 0
Jul 26 13:34:05 optima5 nnrpd[14442]: 85.107.169.241 group
linux.debian.user.turkish 0
Jul 26 13:34:05 optima5 nnrpd[14442]: 85.107.169.241 times user 0.068
system 0.036 idle 0.000 elapsed 0.968
The above is from syslog.
I had a similar episode on July 22 from jammed.com where the connection
accessed many different groups and evidentially attempted to post a
message. From the Daily Report:
NNRP readership statistics:
System Conn Arts Size Groups Post Rej Elapsed
<snip>
jammed.com 1 1 1.1 KB 2719 0 1 00:27:45
How could an anonymous user get this access?
Here is the readers.conf info:
auth "global" {
hosts: "*"
auth: "/usr/lib/news/bin/auth/passwd/ckpasswd -f
/var/lib/news/passlist"
default: "<anonymous>"
}
auth "localhost" {
hosts: "stdin,localhost"
auth: "/usr/lib/news/bin/auth/passwd/ckpasswd -f
/var/lib/news/passlist"
default: "<localhost>"
}
access "authenticated" {
users: "*"
newsgroups: "*,!junk,!control,!control.*"
}
access "special" {
users: "<localhost>"
newsgroups: "*"
access: "RPNAL"
}
access "public" {
users: "<anonymous>"
read: "xanadu.info"
Any clues?
INN 2.4.5 on Debian 5.0.1.
--
John
Re: Anonymous access leak?
Author: Russ Allbery
Date: Sun, 26 Jul 2009 19:17
Date: Sun, 26 Jul 2009 19:17
40 lines
2105 bytes
2105 bytes
"John F. Morse" <john@example.invalid> writes:
> How could an anonymous user get this access?
>
> Here is the readers.conf info:
>
> auth "global" {
> hosts: "*"
> auth: "/usr/lib/news/bin/auth/passwd/ckpasswd -f
> /var/lib/news/passlist"
> default: "<anonymous>"
> }
>
> auth "localhost" {
> hosts: "stdin,localhost"
> auth: "/usr/lib/news/bin/auth/passwd/ckpasswd -f
> /var/lib/news/passlist"
> default: "<localhost>"
> }
>
> access "authenticated" {
> users: "*"
> newsgroups: "*,!junk,!control,!control.*"
> }
Well, I suspect the problem will go away if you change * here to
*,!<anonymous>. But still, I'm not sure why that's happening, since the
last matching access group is supposed to be used and the last matching
group is:
> access "public" {
> users: "<anonymous>"
> read: "xanadu.info"
> }
--
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: Anonymous access leak?
Author: John F. Morse
Date: Sun, 26 Jul 2009 20:16
Date: Sun, 26 Jul 2009 20:16
28 lines
1761 bytes
1761 bytes
Russ Allbery wrote:
> "John F. Morse" <john@example.invalid> writes:
>> access "authenticated" {
>> users: "*"
>> newsgroups: "*,!junk,!control,!control.*"
>> }
>>
>
> Well, I suspect the problem will go away if you change * here to
> *,!<anonymous>. But still, I'm not sure why that's happening, since the
> last matching access group is supposed to be used and the last matching
> group is:
>
>
>> access "public" {
>> users: "<anonymous>"
>> read: "xanadu.info"
>> }
>>
OK, done. We'll keep an eye on it and see if there are future problems.
Thanks Russ.
--
John
Re: Anonymous access leak?
Author: Julien ÉLIE
Date: Mon, 27 Jul 2009 06:29
Date: Mon, 27 Jul 2009 06:29
22 lines
2006 bytes
2006 bytes
Hi John,
> Jul 26 12:24:57 optima5 nnrpd[13245]: 85.107.169.241 res <anonymous>
> Jul 26 12:24:57 optima5 nnrpd[13245]: 85.107.169.241 no_match_user <anonymous> <localhost>
> Jul 26 12:24:57 optima5 nnrpd[13245]: 85.107.169.241 match_user <anonymous> *
> access "public" {
> users: "<anonymous>"
> read: "xanadu.info"
Is there a final "}" here?
In news.notice, there should be a "no_match_user" line for this access block
when it is discarded.
It looks as though that realm were not seen.
--
Julien ÉLIE
« Nous avons mergitur, mon vieux, et je ne sais pas
quand nous allons fluctuat de nouveau ! » (banquier romain)
Re: Anonymous access leak?
Author: John F. Morse
Date: Mon, 27 Jul 2009 21:45
Date: Mon, 27 Jul 2009 21:45
50 lines
2607 bytes
2607 bytes
Julien ÉLIE wrote:
> Hi John,
>
>> Jul 26 12:24:57 optima5 nnrpd[13245]: 85.107.169.241 res <anonymous>
>> Jul 26 12:24:57 optima5 nnrpd[13245]: 85.107.169.241 no_match_user
>> <anonymous> <localhost>
>> Jul 26 12:24:57 optima5 nnrpd[13245]: 85.107.169.241 match_user
>> <anonymous> *
>
>
>> access "public" {
>> users: "<anonymous>"
>> read: "xanadu.info"
>
> Is there a final "}" here?
> In news.notice, there should be a "no_match_user" line for this access
> block
> when it is discarded.
> It looks as though that realm were not seen.
>
Hi, Julien.
Good catch!
That closing curly brace is missing from both the reader and transit
servers.
I don't know at what stage it disappeared, but I just checked and it is
present on the old optima7 combined server (Debian Sarge and INN 2.4.3).
I do remember going through Ubuntu 8.04 LTS Server Edition on both
optima5 and optima2, where both had the syslog rotation issues. I then
installed Debian Lenny and INN 2.4.5 on these two servers, which are now
online.
Somewhere in the process of copying readers.conf, or its contents, from
optima7 to one of the later servers, the final character (line) in that
file went missing.
I've corrected them now, thanks to your good eyes!
You might want to check and see why "inncheck -v" failed to catch these
missing closing curly braces.
Thanks for your assistance, ... and keep eating your carrots! ;-)
--
John
Re: Anonymous access leak?
Author: Julien ÉLIE
Date: Tue, 28 Jul 2009 06:15
Date: Tue, 28 Jul 2009 06:15
36 lines
2288 bytes
2288 bytes
Hi John,
> That closing curly brace is missing from both the reader and transit
> servers.
>
> You might want to check and see why "inncheck -v" failed to catch these
> missing closing curly braces.
Just because inncheck does not look at readers.conf.
Properly parsing that file is not that easy...
##
## readers.conf
##
sub
readers_conf
{
1;
}
The same goes for incoming.conf.
Incidentally, I see that innd and nnrpd parsers can report a missing "{"
and an unexpected "}". But not a missing "}" (the behaviour is to discard
the incomplete block if it is not finished).
--
Julien ÉLIE
« 21.1.1 How to convert mSQL tools for MySQL?
1. Run the shell script msql2mysql on the source. This requires the
replace program, which is distributed with MySQL.
2. Compile.
3. Fix all compiler errors. » (MySQL online manual)
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