Article View: news.software.nntp
Article #87972Re: Cleanfeed bug in yEnc handling
From: Julien ÉLIE
Date: Sat, 01 Jun 2019 19:31
Date: Sat, 01 Jun 2019 19:31
37 lines
2587 bytes
2587 bytes
Hi Steve,
>> Cleanfeed's matching of yEnc lines is a little too strict, and this has
>> lead to spam with header lines like:
>>
>> ## =ybegin line=128 size=716800 name=a
>
> @@ -1614,12 +1614,14 @@ sub is_binary {
> # =ybegin.
> if ($body =~ /(?:^|\n)=ybegin$hws+(.+)/o) {
> local $_ = $1;
> - # Further confirmation that this is a yEnc message and extract
> - # the file extension. Greedy is good in this instance.
> - if (/line=/ and /size=/ and /name=.*\.(\w{2,4})/) {
> - $state{file_extension} = $1;
> - $state{cache_is_binary} = "yEnc Encoded";
> - return $state{cache_is_binary};
> + if (/line=/ and /size=/) {
> + # Further confirmation that this is a yEnc message and extract the
> + # file extension. Greedy is good in this instance.
> + if (/name=.*\.(\w{2,4})/) {
> + $state{file_extension} = $1;
> + $state{cache_is_binary} = "yEnc Encoded";
> + return $state{cache_is_binary};
> + };
> };
> };
If we have "name=a" (without extension), like in "=ybegin line=128
size=716800 name=a", I think the if-statement won't catch it.
--
Julien ÉLIE
« Internet restera toujours un joujou pour les universitaires. »
(1991)
Technical Details
Message-ID:
<qcujpu$n86$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.(19219).mbox.7z!not-for-mailReferences:
<np3d0jyr846.fsf@sanger.ac.uk> <slrnqf5692.u39.steve@fleegle.mixmin.net>Show Full Headers
Complete Article Headers
Message-ID: <qcujpu$n86$1@news.trigofacile.com> Subject: Re: Cleanfeed bug in yEnc handling Date: Sat, 1 Jun 2019 21:31:05 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <np3d0jyr846.fsf@sanger.ac.uk> <slrnqf5692.u39.steve@fleegle.mixmin.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Sat, 1 Jun 2019 19:31:10 -0000 (UTC) Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="lfbn-1-2766-249.w86-252.abo.wanadoo.fr:86.252.110.249"; logging-data="23814"; mail-complaints-to="abuse@trigofacile.com" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 In-Reply-To: <slrnqf5692.u39.steve@fleegle.mixmin.net> Content-Language: fr X-Received-Bytes: 2630 X-Received-Body-CRC: 218589874