🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #90203

Re: Seeking help modifying Diablo source to prevent miscategorization of articles containing PGP

#90203
From: Jesse Rehmer
Date: Tue, 21 Mar 2023 01:47
33 lines
2836 bytes
On Mar 20, 2023 at 8:05:58 PM CDT, "Russ Allbery" <eagle@eyrie.org> wrote:

> Jesse Rehmer <jesse.rehmer@blueworldhosting.com> writes:
> 
>>         linetype = classifyLineAsTypes(ptr, len);
> 
>>             if (*ptr == '-' &&
>>                 strncmp(ptr, "-----BEGIN PGP ", 15) == 0)
>>                 Type |= ARTTYPE_PGPMESSAGE;
>>                 return(Type);
> 
> Just FYI, by doing it this way you are allowing people to send you
> arbitrarily large binaries (up to your article size limit) by just adding
> a line starting with "-----BEGIN PGP " before the encoded binary.  This is
> likely why the code didn't short-circuit analysis of the rest of the
> article in that case and still flagged messages as binary if there were
> more than 8 lines of encoded text.  (No PGP *signature* should be that
> long.)

Most PGP Signatures I'm seeing in NoCeM notices are 11 lines long. See
<tvatqb$d4n$1@rasp.pasdenom.info> as just one example. These were being
rejected before.

My personal PGP Signature is > 8 lines as well.

> Back in the day, if any change like this were used on a bunch of servers,
> the people trading binaries that for legal reasons you really do not want
> on your server would probably quickly start doing that.  You're only
> making this change on one server, and hopefully there isn't as much abuse
> of binaries on Usenet these days, but you may still want to keep that in
> mind.

I understand your points, and need to think this through a little more.
Technical Details
Message-ID: <tvb2cf$1ckd$1@nnrp.usenet.blueworldhosting.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <tv8ale$2t9m$1@nnrp.usenet.blueworldhosting.com> <tva4p3$2b2p$1@nnrp.usenet.blueworldhosting.com> <tvapdi$2ade$1@nnrp.usenet.blueworldhosting.com> <87cz5252x5.fsf@hope.eyrie.org>

Show Full Headers
Complete Article Headers
Message-ID: <tvb2cf$1ckd$1@nnrp.usenet.blueworldhosting.com>
Subject: Re: Seeking help modifying Diablo source to prevent miscategorization of articles containing PGP
Date: Tue, 21 Mar 2023 01:47:59 +0000
From: Jesse Rehmer <jesse.rehmer@blueworldhosting.com>
References: <tv8ale$2t9m$1@nnrp.usenet.blueworldhosting.com> <tva4p3$2b2p$1@nnrp.usenet.blueworldhosting.com> <tvapdi$2ade$1@nnrp.usenet.blueworldhosting.com> <87cz5252x5.fsf@hope.eyrie.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.software.nntp
Organization: BlueWorld Hosting Usenet (https://usenet.blueworldhosting.com)
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=fixed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 21 Mar 2023 01:47:59 -0000 (UTC)
Injection-Info: nnrp.usenet.blueworldhosting.com; logging-data="45709"; mail-complaints-to="usenet@blueworldhosting.com"
User-Agent: Usenapp for MacOS
Cancel-Lock: sha1:Mxhy98ZXJ1oYpDE+ndWjvWrb7Bs= sha256:A0bvBm5BUqoXNrZwuEfZ1GdbG/WVgogiitqI2dwJ5/o= sha1:aq4JNIT/tX/j89sNiAcNL/Kivu4= sha256:kV9xaN8fnAqsFg2wB/ztoVrUu0tOFhpNU4rHkSJMnp4=
X-Usenapp: v1.26.3/d - Full License