🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
16 messages
16 total messages Started by noauth Wed, 03 Jun 2009 16:19
Re: Tracing newsgroups posts
#81219
Author: noauth
Date: Wed, 03 Jun 2009 16:19
5 lines
1287 bytes
>Make sure you aren't including user data in posts:  Use a
>filter_nnrpd.pl script to salt+hash NNTP-Posting-Host data.

Could you write a filter_nnrpd.pl for the community ?
Thanks!
Re: Tracing newsgroups posts
#81221
Author: Gab
Date: Wed, 03 Jun 2009 17:00
36 lines
2727 bytes
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig697E12AC624B99811B18B72B
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

noauth wrote:
>> Make sure you aren't including user data in posts:  Use a
>> filter_nnrpd.pl script to salt+hash NNTP-Posting-Host data.
>=20
> Could you write a filter_nnrpd.pl for the community ?
> Thanks!
What about the X-Trace header , often it gets *hashed* but the host part
is still visible .

Gab

--=20
sec   1024D/80231A90 2008-07-01
Key fingerprint =3D 54AC C632 B35E FB9B 6D9F  108D DBE6 5425 8023 1A90



--------------enig697E12AC624B99811B18B72B
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEAREKAAYFAkomrCwACgkQ2+ZUJYAjGpDE5gCfULfqyyEprLyX97uJgByebH7H
YmQAnA/om2BaF8MU0lBipGBnsfv7JKDW
=MLpY
-----END PGP SIGNATURE-----

--------------enig697E12AC624B99811B18B72B--
Re: Tracing newsgroups posts
#81228
Author: Steve Crook
Date: Wed, 03 Jun 2009 19:26
32 lines
1806 bytes
On Wed,  3 Jun 2009 18:19:35 +0200 (CEST), noauth wrote in
Message-Id: <02a6d907d2f4bc8ee1509c616a2fa269@remailer.gabrix.ath.cx>:

> Could you write a filter_nnrpd.pl for the community ?

This is only a simple example.  I'd suggest using postfilter for a
complete solution.

#!/usr/bin/perl -wc
# vim: set tabstop=4 shiftwidth=4 expandtab syntax=perl:

use strict;
use Digest::MD5;
our (%hdr, $modify_headers);

sub filter_post {

    # Hash the NNTP-Posting-Host header
    my $ctx = Digest::MD5->new;
    $ctx->add($hdr{'NNTP-Posting-Host'});
    $ctx->add("A little salt");
    $hdr{'NNTP-Posting-Host'} = $ctx->hexdigest;
    undef $hdr{'X-Trace'};

    $modify_headers = 1;
    return '';
};

-- 
pub   1024D/228761E7 2003-06-04 Steven Crook
      Key fingerprint = 1CD9 95E1 E9CE 80D6 C885  B7EB B471 80D5 2287 61E7
uid                  Steven Crook <steve@mixmin.net>
Re: Tracing newsgroups posts
#81229
Author: gabrix
Date: Wed, 03 Jun 2009 19:58
26 lines
1903 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Steve Crook wrote:

> ... I'd suggest using postfilter for a
> complete solution.

I have used postfilter , powerfull script , i'm actually using/testing
albasani.net schnuerpel filter here
http://albasani.net/technical/x-trace.html.en , what do you think of it ?

Gab


- -- 
sec   1024D/80231A90 2008-07-01
Key fingerprint = 54AC C632 B35E FB9B 6D9F  108D DBE6 5425 8023 1A90

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEAREKAAYFAkom1gYACgkQ2+ZUJYAjGpANfQCfRAn7MPUbsYsIVcOqjY/73rIR
iIQAnjlApqk7Z+bDh9xYmfwLXyZ95RWW
=/7cd
-----END PGP SIGNATURE-----
Re: Tracing newsgroups posts
#81231
Author: Gab
Date: Wed, 03 Jun 2009 20:35
42 lines
2504 bytes
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig3FA954B516D2669D217698FD
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

gabrix wrote:

>> ... I'd suggest using postfilter for a
>> complete solution.
>=20
> I have used postfilter , powerfull script , i'm actually using/testing
> albasani.net schnuerpel filter here
> http://albasani.net/technical/x-trace.html.en , what do you think of it=
 ?
>=20

This message instead has been sent using this
http://www.gabrix.ath.cx/filter_nnrpd.asc , i would like your opinion on
this too , thanks !

Gab

--=20
sec   1024D/80231A90 2008-07-01
Key fingerprint =3D 54AC C632 B35E FB9B 6D9F  108D DBE6 5425 8023 1A90



--------------enig3FA954B516D2669D217698FD
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEAREKAAYFAkom3oUACgkQ2+ZUJYAjGpDNjgCghDa45Nha5Y3LVBSZZzzQFEeW
a1AAoL/yxNxyS9RnIEBWmqkvMCRy7Mlx
=2tgW
-----END PGP SIGNATURE-----

--------------enig3FA954B516D2669D217698FD--
Re: Tracing newsgroups posts
#81232
Author: gabrix
Date: Wed, 03 Jun 2009 21:39
21 lines
2079 bytes
gabrix wrote:

>> ... I'd suggest using postfilter for a
>> complete solution.
> 
> I have used postfilter , powerfull script , i'm actually using/testing
> albasani.net schnuerpel filter here
> http://albasani.net/technical/x-trace.html.en , what do you think of it ?
> 

This message instead has been sent using this
http://www.gabrix.ath.cx/filter_nnrpd.asc , looking at the post headers i
would like your opinion on this too , thanks !

Gab

-- 
sec   1024D/80231A90 2008-07-01
Key fingerprint = 54AC C632 B35E FB9B 6D9F  108D DBE6 5425 8023 1A90

Re: Tracing newsgroups posts
#81243
Author: Steve Crook
Date: Thu, 04 Jun 2009 08:25
19 lines
1732 bytes
On Wed, 03 Jun 2009 23:39:51 +0200, gabrix wrote in
Message-Id: <h06qns$qv6$1@news.gabrix.ath.cx>:

> This message instead has been sent using this
> http://www.gabrix.ath.cx/filter_nnrpd.asc , looking at the post headers i
> would like your opinion on this too , thanks !

> X-NNTP-Posting-Host: jWrZfSkcR6wiLkfi8EBs5NjtYdMze0QvQ0fYOkx6gkk=
Is there any reason for prefixing this header with 'X-'?

It's impossible to tell from the content of this field how it's being
constructed but providing another post from the same source produces the
same result whilst a post from a different source produces a different
result then its fine.

-- 
pub   1024D/228761E7 2003-06-04 Steven Crook
      Key fingerprint = 1CD9 95E1 E9CE 80D6 C885  B7EB B471 80D5 2287 61E7
uid                  Steven Crook <steve@mixmin.net>
Re: Tracing newsgroups posts
#81249
Author: Gab
Date: Thu, 04 Jun 2009 11:21
60 lines
3745 bytes
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig36EF2F1D87B84053AD1E82F6
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Steve Crook wrote:
> On Wed, 03 Jun 2009 23:39:51 +0200, gabrix wrote in
> Message-Id: <h06qns$qv6$1@news.gabrix.ath.cx>:
>=20
>> This message instead has been sent using this
>> http://www.gabrix.ath.cx/filter_nnrpd.asc , looking at the post header=
s i
>> would like your opinion on this too , thanks !
>=20
>> X-NNTP-Posting-Host: jWrZfSkcR6wiLkfi8EBs5NjtYdMze0QvQ0fYOkx6gkk=3D
> Is there any reason for prefixing this header with 'X-'?
>=20
> It's impossible to tell from the content of this field how it's being
> constructed but providing another post from the same source produces th=
e
> same result whilst a post from a different source produces a different
> result then its fine.
>=20

This is a post i made using postfilter,

>> X-Trace: news.gabrix.ath.cx 6nsuDowpAPxdETxCNxc+JNaIMBqTFCGlxUiC0aGltU=
ni6GRWxZNDXaeOGwzJS8LoYQj7298VOs72Jd3t36f7opOXZgvtxVMnsXJbppEOW/xNjlYmlsQ=
Ogth+KH4dGT+E

*X-trace* is partially masked , only date and ip got hashed but host and
domain are still in plain , i will make some other customizations to
postfilter.conf the alternatives to *anon* (md5 hash) X-Trace are *true*
(remove)  e *false* (keep).
I was looking at the headers in your last post and your filter_nnrpd.pl
removed X-Trace completely and this sounds a lot better . Anyway let's
have a look to the headers of this post .

G

--=20
sec   1024D/80231A90 2008-07-01
Key fingerprint =3D 54AC C632 B35E FB9B 6D9F  108D DBE6 5425 8023 1A90



--------------enig36EF2F1D87B84053AD1E82F6
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEAREKAAYFAkonrjAACgkQ2+ZUJYAjGpDYsQCfUneZEIQbMD87fFMoneOy5fsK
Kq4AnjCoX/6Q6ldVUPcCEFLfw1so1n2r
=Vb5V
-----END PGP SIGNATURE-----

--------------enig36EF2F1D87B84053AD1E82F6--
Re: Tracing newsgroups posts
#81250
Author: Aioe
Date: Thu, 04 Jun 2009 14:10
24 lines
2006 bytes
Gab wrote:

> Steve Crook wrote:
>> On Wed, 03 Jun 2009 23:39:51 +0200, gabrix wrote in
>>> X-NNTP-Posting-Host: jWrZfSkcR6wiLkfi8EBs5NjtYdMze0QvQ0fYOkx6gkk=
> This is a post i made using postfilter,

no, postfilter doesn't prefix NPH and the host encoding is different:

NNTP-Postfing-Host: md5($domain + $salt).user.yourdomain.yourtld


> *X-trace* is partially masked , only date and ip got hashed but host and
> domain are still in plain , i will make some other customizations to
> postfilter.conf the alternatives to *anon* (md5 hash) X-Trace are *true*
> (remove)  e *false* (keep).
> I was looking at the headers in your last post and your filter_nnrpd.pl
> removed X-Trace completely and this sounds a lot better . Anyway let's
> have a look to the headers of this post .

postfilter allows you to remove X-Trace
which is your problem?

Re: Tracing newsgroups posts
#81252
Author: Etian
Date: Thu, 04 Jun 2009 17:58
37 lines
3078 bytes
Gab wrote:
> Steve Crook wrote:
>> On Wed, 03 Jun 2009 23:39:51 +0200, gabrix wrote in
>> Message-Id: <h06qns$qv6$1@news.gabrix.ath.cx>:
>>
>>> This message instead has been sent using this
>>> http://www.gabrix.ath.cx/filter_nnrpd.asc , looking at the post headers i
>>> would like your opinion on this too , thanks !
>>> X-NNTP-Posting-Host: jWrZfSkcR6wiLkfi8EBs5NjtYdMze0QvQ0fYOkx6gkk=
>> Is there any reason for prefixing this header with 'X-'?
>>
>> It's impossible to tell from the content of this field how it's being
>> constructed but providing another post from the same source produces the
>> same result whilst a post from a different source produces a different
>> result then its fine.
>>
> 
> This is a post i made using postfilter,
> 
>>> X-Trace: news.gabrix.ath.cx 6nsuDowpAPxdETxCNxc+JNaIMBqTFCGlxUiC0aGltUni6GRWxZNDXaeOGwzJS8LoYQj7298VOs72Jd3t36f7opOXZgvtxVMnsXJbppEOW/xNjlYmlsQOgth+KH4dGT+E
> 
> *X-trace* is partially masked , only date and ip got hashed but host and
> domain are still in plain , i will make some other customizations to
> postfilter.conf the alternatives to *anon* (md5 hash) X-Trace are *true*
> (remove)  e *false* (keep).
> I was looking at the headers in your last post and your filter_nnrpd.pl
> removed X-Trace completely and this sounds a lot better . Anyway let's
> have a look to the headers of this post .
> 
> G
> 
Delete the block of code that builds the x-trace header in nnrpd/post.c. 
  make clean.  make update.  And it's gone for good, without worrying 
about it getting leaked whenever your filter crashes.

Etian
sonic-news
Re: Tracing newsgroups posts
#81253
Author: Kelb tal-Fenek
Date: Thu, 04 Jun 2009 18:34
8 lines
1495 bytes
Etian wrote:
> Delete the block of code that builds the x-trace header in nnrpd/post.c. 
>   make clean.  make update.  And it's gone for good, without worrying 
> about it getting leaked whenever your filter crashes.

And then if you set addnntppostinghost to false in inn.conf is there
a way to get the client host so you can add that header back hashed?
Re: Tracing newsgroups posts
#81260
Author: Etian
Date: Thu, 04 Jun 2009 20:16
13 lines
2157 bytes
Kelb tal-Fenek wrote:
> Etian wrote:
>> Delete the block of code that builds the x-trace header in nnrpd/post.c. 
>>   make clean.  make update.  And it's gone for good, without worrying 
>> about it getting leaked whenever your filter crashes.
> 
> And then if you set addnntppostinghost to false in inn.conf is there
> a way to get the client host so you can add that header back hashed?
> 
I think you could make a perl authentication script return any kind of 
hashed or encrypted string that you want it to, which can be made to go 
in the Sender: header.  It would take just a slight modification of 
post.c to make that go into the NNTP-Posting-Host: header instead.
Re: Tracing newsgroups posts
#81262
Author: gabrix
Date: Thu, 04 Jun 2009 20:47
43 lines
2511 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Aioe wrote:
> postfilter allows you to remove X-Trace


In postfilter.conf i have

>  'delete_header_nntp-posting-date',    "true",
> 'delete_header_x-trace',              "true",

the headers result is:

> NNTP-Posting-Date:
> Thu, 4 Jun 2009 19:58:00 +0000 (UTC)

> X-Trace:
> news.gabrix.ath.cx
mC1MdjVOAsxg5dOUBjVT9PwxZRQUhC34BNJb5SA4jE+fjCnp4ma67+mNdNcpwPCFlnXXqvH7EZPSnkvKy7baVnpAuj5QtWG8KRU9ZK5CN2EcDR+4Bifizo4ZDL1IPsgY

NNTP-Posting-Date is still there , X-Trace too with hostname
news.gabrix.ath.cx still visible and date + ip hashed.


> which is your problem?

none . :)

Gab

- -- 
sec   1024D/80231A90 2008-07-01
Key fingerprint = 54AC C632 B35E FB9B 6D9F  108D DBE6 5425 8023 1A90


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEAREKAAYFAkooMuQACgkQ2+ZUJYAjGpD/igCgvGzDJrjUB9GdVSLkHZ2vSMkM
/XEAoM3xS8ytq3xHYbns7tX3KFAJy31Y
=T2Dj
-----END PGP SIGNATURE-----
Re: Tracing newsgroups posts
#81273
Author: Aioe
Date: Fri, 05 Jun 2009 14:48
9 lines
1476 bytes
gabrix wrote:

> NNTP-Posting-Date is still there , X-Trace too with hostname
> news.gabrix.ath.cx still visible and date + ip hashed.

are you *sure* that you're using postfilter as perl filter?
postfilter *isn't* able to crypt X-Trace, that header can be kept untouched 
or removed
Re: Tracing newsgroups posts
#81299
Author: gabrix
Date: Sat, 06 Jun 2009 10:19
65 lines
3663 bytes
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig187D0731F4921FBA09245050
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Aioe wrote:

> are you *sure* that you're using postfilter as perl filter?
> postfilter *isn't* able to crypt X-Trace, that header can be kept untou=
ched=20
> or removed
>=20

Sure , postfilter is my offical filter_nnrpd.
I have this in postfilter.conf :

> 'delete_header_x-trace',              "true",

This is the Xtrace on a post i made on alt.test:

> news.gabrix.ath.cx 7CHU3LvPgV8msynDfd2MpZSr6cDcPLt0mUX9jG+xz1uzRkXXAwij=
O4h3ZXj4A1L+mNI1zgtENzCfZBTIf/nTI1GWZXniTJ8tlVgZJuKcDlqSjA2nUV3Hk4tasVkUK=
NRd

as you see above and also on this post the host+domain part is visible
the rest (date+ip) got hashed , than:

> 'delete_header_nntp-posting-date',    "true"

Date is still here , Sat, 6 Jun 2009 10:04:26 +0000 (UTC) as here on
this post , have a look.

Gab




--=20
pub   1024D/8D7912A0 2009-06-01 [expires: 2010-06-01]                ####=
##
Key fingerprint =3D B26A 9F72 E8A0 0FEB 4607  A2E6 3262 11A9 8D79 12A0 ##=
####
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D
Noauth Usenet News news://news.gabrix.ath.cx:563/
mail2news@m2n.gabrix.ath.cx



--------------enig187D0731F4921FBA09245050
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEAREKAAYFAkoqQp4ACgkQ2+ZUJYAjGpAwRACgvFBoApdjFTnBWsH9kskLQoFK
F24An3j1fQFnAh1injt6PX9wjMIPfZ04
=7bq6
-----END PGP SIGNATURE-----

--------------enig187D0731F4921FBA09245050--
Re: Tracing newsgroups posts
#81431
Author: Kelb tal-Fenek
Date: Sat, 20 Jun 2009 18:14
33 lines
2600 bytes
Etian wrote:
> Kelb tal-Fenek wrote:
>> Etian wrote:
>>> Delete the block of code that builds the x-trace header in nnrpd/post.c. 
>>>   make clean.  make update.  And it's gone for good, without worrying 
>>> about it getting leaked whenever your filter crashes.
>> 
>> And then if you set addnntppostinghost to false in inn.conf is there
>> a way to get the client host so you can add that header back hashed?
>> 
> I think you could make a perl authentication script return any kind of 
> hashed or encrypted string that you want it to, which can be made to go 
> in the Sender: header.  It would take just a slight modification of 
> post.c to make that go into the NNTP-Posting-Host: header instead.

OK, the part about x-trace or posting-host getting leaked if the
filter crashes is something I don't want to worry about. So, trying
to come up with a simple way to prevent this, I added a line in
cleanfeed.local to check for the x-trace header and disable posting
until I can get the filter running again. I'm assuming that, even if
filter_nnrpd.pl crashes, filter_innd.pl will keep running. Someone
please let me know if this is not the case.

In cleanfeed.local => sub local_filter_first

 return reject('Posting temporarily disabled') 
  if $hdr{'X-Trace'} and $hdr{Path} =~ /^not\-for\-mail$/;

Note: I undef x-trace and hash posting-host in filter_nnrpd.pl but
need those headers to filter a persistent spammer with a static IP,
otherwise I would delete the code in post.c and set
addnntppostinghost to false.
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