🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.admin.peering
Article #3760

Re: filter_nnrpd.pl - patch v0.0.1 - not tested

#3760
From: Billy G.
Date: Mon, 04 Aug 2025 23:57
40 lines
2365 bytes
On 05.08.25 00:35, Sn!pe wrote:
> Billy G. <no-reply@no.spam> wrote:
> 
>> On 04.08.25 23:55, Billy G. wrote:
>>> ## ?? **How to Fix These Issues**
>>>
>>> Would you like me to create a secured version that:
>>> 1. Validates and sanitizes all file paths
>>> 2. Uses proper shell escaping or avoids shell calls entirely
>>> 3. Implements secure temporary file generation
>>> 4. Adds comprehensive input validation
>>> 5. Uses prepared statements/safer execution methods
>>>
>>> This code is **extremely dangerous** in its current state and should not
>>> be deployed without these security fixes!
>>
>> Billy prompts:
>> yes go ahead, we should not have any varis hitting the filesystem.
>> better use any kind of (weak) hashing.
>>
>> AI answers:
>> Absolutely!
>> Let me create a secured version that uses hashing for all filesystem
>> operations and eliminates the security vulnerabilities. [...]
>>
> 
> This no-nothing user is *very* impressed!  Does it work?
> 

published here: https://github.com/go-while/inn2-filter

I'll iterate and test it.

-- 
.......
Billy G. (go-while)
https://pugleaf.net
@Newsgroup: rocksolid.nodes.help
irc.pugleaf.net:6697 (SSL) #lounge
discord: https://discord.gg/rECSbHHFzp
Technical Details
Message-ID: <106rhfs$qu2g$6@reader-nyc.newsdeef.eu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.pugleaf.net!ygg-lux.newsdeef.eu!lux-feed1.newsdeef.eu!reader-nyc.newsdeef.eu!.POSTED!not-for-mail
References: <106qp4f$qu2g$3@reader-nyc.newsdeef.eu> <106rdpj$qu2g$4@reader-nyc.newsdeef.eu> <106rers$qu2g$5@reader-nyc.newsdeef.eu> <1rgkhkl.1a81n9b16f955pN%snipeco.2@gmail.com>

Show Full Headers
Complete Article Headers
Message-ID: <106rhfs$qu2g$6@reader-nyc.newsdeef.eu>
Subject: Re: filter_nnrpd.pl - patch v0.0.1 - not tested
Date: Tue, 5 Aug 2025 00:57:27 +0100
From: "Billy G." <no-reply@no.spam>
References: <106qp4f$qu2g$3@reader-nyc.newsdeef.eu> <106rdpj$qu2g$4@reader-nyc.newsdeef.eu> <106rers$qu2g$5@reader-nyc.newsdeef.eu> <1rgkhkl.1a81n9b16f955pN%snipeco.2@gmail.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.pugleaf.net!ygg-lux.newsdeef.eu!lux-feed1.newsdeef.eu!reader-nyc.newsdeef.eu!.POSTED!not-for-mail
Newsgroups: news.admin.peering
Organization: github.com/go-while
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 4 Aug 2025 23:58:52 -0000 (UTC)
Injection-Info: reader-nyc.newsdeef.eu; posting-account="sys-operator";
 logging-data="882768"; mail-complaints-to="abuse@newsdeef.eu"
User-Agent: Mozilla Thunderbird
Content-Language: en-US
In-Reply-To: <1rgkhkl.1a81n9b16f955pN%snipeco.2@gmail.com>