🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #90213

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

#90213
From: Jesse Rehmer
Date: Tue, 21 Mar 2023 03:16
32 lines
2866 bytes
On Mar 20, 2023 at 10:09:41 PM CDT, "Russ Allbery" <eagle@eyrie.org> wrote:

> Jesse Rehmer <jesse.rehmer@blueworldhosting.com> writes:
>> On Mar 20, 2023 at 8:05:58 PM CDT, "Russ Allbery" <eagle@eyrie.org> wrote:
> 
>>> 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.
> 
> Ah, yes, indeed, I'm wrong about how long the RSA signatures are (I assume
> that's what that is; I didn't check) with a sufficiently large key.  It
> looks like, back in the day, I used a 40 line cutoff in my binary filter.

I did take your advice, reverted to the original code, and increased the
base64 line count. Should have realized it was that simple in the first place,
but I wasn't sure if that 8 line reference was a standard or arbitrary from
back in the day.

Really appreciate everyone's help here on this, it frustrated the shit out of
me, and felt like it should be simple, and naturally it was.

Thanks all!
Technical Details
Message-ID: <tvb7hh$1b5o$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> <87cz5252x5.fsf@hope.eyrie.org> <tvb2cf$1ckd$1@nnrp.usenet.blueworldhosting.com> <87a606yf4a.fsf@hope.eyrie.org>

Show Full Headers
Complete Article Headers
Message-ID: <tvb7hh$1b5o$1@nnrp.usenet.blueworldhosting.com>
Subject: Re: Seeking help modifying Diablo source to prevent miscategorization of articles containing PGP
Date: Tue, 21 Mar 2023 03:16:01 +0000
From: Jesse Rehmer <jesse.rehmer@blueworldhosting.com>
References: <tv8ale$2t9m$1@nnrp.usenet.blueworldhosting.com> <87cz5252x5.fsf@hope.eyrie.org> <tvb2cf$1ckd$1@nnrp.usenet.blueworldhosting.com> <87a606yf4a.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 03:16:01 -0000 (UTC)
Injection-Info: nnrp.usenet.blueworldhosting.com; logging-data="44216"; mail-complaints-to="usenet@blueworldhosting.com"
User-Agent: Usenapp for MacOS
Cancel-Lock: sha1:yIgQJYHFvTgZ53lLzfxShlmApLg= sha256:cN63sJs/GJhHAd4J8MbUjZH9dr6otzR7kChATm2DSUc= sha1:yVSDCdSrrnQj7yZWIbbPAdCnwI0= sha256:t1HDsReIIbnTHFys+vmX1RfPwurab/dq1trCoS8LHTo=
X-Usenapp: v1.26.3/d - Full License