🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #90416

Re: inn filtering question (and cleanfeed problem?)

#90416
From: Adam W.
Date: Thu, 08 Jun 2023 15:53
67 lines
3036 bytes
Marc SCHAEFER <schaefer@alphanet.ch> wrote:

> On my installation, /etc/news/filters/filter_innd.pl calls
> /etc/news/cleanfeed/cleanfeed.local and is called for every article

/etc/news/cleanfeed/cleanfeed I guess?

> /etc/news/filters/filter_innd.pl and cleanfeed are not allowed to modify
> articles (for good reasons).

Ok, now clear :)

> In /etc/news/cleanfeed/cleanfeed.local there are some toggles you can
> set to modify the behaviour.

It gets even weirder. I had the default configuration:

    block_binaries => 1,        # block misplaced binaries
    block_all_binaries => 0,    # Reject all binary regardless of distribution

I changed block_all_binaries to 1 just to be sure. Now:

- yEd-encoded binaries are rejected (Misplaced binary). Example:

: =ybegin line=128 size=0 name=test
: 
: =yend size=0 crc32=00000000

- Images encoded with base64 are rejected (Misplaced jpg). Example:

: begin 664 test.jpg
: `
: end

- File with no extension encoded with base64 is accepted. Example:

: begin 664 test
: `
: end

- MIME-encoded image is accepted. Example (full post):

: From: test@test.test
: Newsgroups: chmurka.test
: Subject: test mime
: MIME-Version: 1.0
: Content-Type: multipart/mixed; 
: boundary="------------AOXUEIFuRgZjEKO0fa0IFPxL"
:
: This is a multi-part message in MIME format.
: --------------AOXUEIFuRgZjEKO0fa0IFPxL
: Content-Type: text/plain; charset=UTF-8; format=flowed
: Content-Transfer-Encoding: 8bit
:
: test
:
: --------------AOXUEIFuRgZjEKO0fa0IFPxL
: Content-Type: image/png; name="test.png"
: Content-Disposition: attachment; filename="test.png"
: Content-Transfer-Encoding: base64
:
: test
:
: --------------AOXUEIFuRgZjEKO0fa0IFPxL--

To me, it looks like a bug in cleanfeed, but is it possible that such 
basic loophole in a filter used by most news servers went unnoticed?
Technical Details
Message-ID: <u5sth5$n3c$14$arnold@news.chmurka.net>
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: <u5sogj$ish$6$arnold@news.chmurka.net> <u5sq5i$tf0$4@shakotay.alphanet.ch>

Show Full Headers
Complete Article Headers
Message-ID: <u5sth5$n3c$14$arnold@news.chmurka.net>
Subject: Re: inn filtering question (and cleanfeed problem?)
Date: Thu, 08 Jun 2023 15:53:09 +0000
From: gof-cut-this-news@cut-this-chmurka.net.invalid (Adam W.)
References: <u5sogj$ish$6$arnold@news.chmurka.net> <u5sq5i$tf0$4@shakotay.alphanet.ch>
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: news.chmurka.net
Nntp-Posting-Host: s.v.chmurka.net
Injection-Date: Thu, 8 Jun 2023 15:53:09 -0000 (UTC)
Injection-Info: news.chmurka.net; posting-account="arnold"; posting-host="s.v.chmurka.net:172.24.44.20"; logging-data="23660"; mail-complaints-to="abuse-news.(at).chmurka.net"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.32-v7+ (armv7l))
Cancel-Lock: sha1:Yl6S38EzEqNGhIz0VQ0fPHQN0Rg= sha1:LrcMsmnvfK3N0124J70TK5vW0FQ= sha256:GGEu5CGAEnM0x5V7Hpk/BM5oio04WImwiDrG2oZ1Woc= sha1:We0Y67r48O6tTFHjMcxF1zAZKJs= sha256:9zkkEGFro9BkiKKULPuaMUhqiwWdW27wj90H4shyjiA=