πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #80929

Re: filter_nnrpd.pl (maybe a bug)

#80929
From: Aioe
Date: Thu, 07 May 2009 21:27
60 lines
2831 bytes
Julien Γ‰LIE wrote:

> Of course!
> Could you please provide a description? Β (Otherwise, I will take
> the one in the summary section of your INSTALL file.)

About postfilter you could use:

Postfilter is an NNRPD perl filter (filter_nnrpd.pl) which scans all 
messages sent by local users in order to block abuses. Postfilter can limit 
the number of messages per user, IP or domain, provides a set of powerful 
banlists, supports RBLs and URIBls, can handle connections that come from 
TOR and is able to deeply modify the headers. It's designed for large site.

use http://code.google.com/p/postfilter/ as url.


Another strange thing with filter_nnrpd.pl

with:

sub filter_post()
{
        $modify_headers = 1;
        $hdr{'X-Newsreader'} = undef;
        return "";
}

$ telnet localhost 119
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
200 localhost InterNetNews server INN 2.4.5 ready
mode reader
200 localhost InterNetNews NNRP server INN 2.4.5 ready (posting ok).
post
340 Ok, recommended ID <gtvjc4$841$1@aioe-casa.aioe.org>
Newsgroups: local.test
X-Newsreader: pppp    
From: a@b.c
Subject: test

ammama
aanb
..
441 437 Body of header is all blanks in "X-Newsreader" header
quit
205 .


Same thing happens with X-Mailer and *User-Agent* 
This makes impossible to hide the user agent (which could reveal local 
vulnerabilities)
Technical Details
Message-ID: <gtvjpa$ptt$1@aioe.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.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeds.phibee-telecom.net!de-l.enfer-du-nord.net!gegeweb.org!aioe.org!not-for-mail
References: <gtm4q0$qtg$1@aioe.org> <gtm52j$r2k$1@aioe.org> <gtm6i9$eiq$1@tioat.net> <gtmvc6$k9a$1@aioe.org> <gtneib$eh4$1@news.trigofacile.com> <gtnioo$8ju$2@aioe.org> <gtq0p9$a7j$1@news.trigofacile.com> <gtq7ib$qm1$2@aioe.org> <gtq927$7fa$1@news.trigofacile.com> <gts4n5$e9q$1@aioe.org> <gtsj0i$e0o$1@news.trigofacile.com> <gtst92$85h$1@aioe.org> <gtsv12$trf$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <gtvjpa$ptt$1@aioe.org>
Subject: Re: filter_nnrpd.pl (maybe a bug)
Date: Thu, 07 May 2009 23:27:55 +0200
From: Aioe <estasi@aioe.org>
References: <gtm4q0$qtg$1@aioe.org> <gtm52j$r2k$1@aioe.org> <gtm6i9$eiq$1@tioat.net> <gtmvc6$k9a$1@aioe.org> <gtneib$eh4$1@news.trigofacile.com> <gtnioo$8ju$2@aioe.org> <gtq0p9$a7j$1@news.trigofacile.com> <gtq7ib$qm1$2@aioe.org> <gtq927$7fa$1@news.trigofacile.com> <gts4n5$e9q$1@aioe.org> <gtsj0i$e0o$1@news.trigofacile.com> <gtst92$85h$1@aioe.org> <gtsv12$trf$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeds.phibee-telecom.net!de-l.enfer-du-nord.net!gegeweb.org!aioe.org!not-for-mail
Newsgroups: news.software.nntp
Followup-To: news.software.nntp
Organization: Aioe.org
Lines: 60
NNTP-Posting-Host: aAZ7I7oaDp/negYZyFT1Rw.user.aioe.org
Mime-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-15"
Content-Transfer-Encoding: quoted-printable
X-Complaints-To: abuse@aioe.org
NNTP-Posting-Date: Thu, 7 May 2009 21:28:10 +0000 (UTC)
X-Notice: Filtered by postfilter v. 0.7.8
Cancel-Lock: sha1:e7UEoHwGxzp4M5ggftEWe9e+sok=
User-Agent: KNode/0.99.01