🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.free.newsservers
Article #186638

Re: Usenet Archive Update (news.blueworldhosting.com)

#186638
From: Colin Macleod
Date: Tue, 02 Sep 2025 09:34
74 lines
5163 bytes
"Billy G." <no-reply@no.spam> posted:
> 
> > My software for newsgrouper.org is online at
> > https://chiselapp.com/user/cmacleod/repository/newsgrouper/home .
> > I would be delighted if anyone was to review it and point out any
> > vulnerabilities, but I'm not holding my breath...
> > ...
> > E.g. I develop in a language that works well for me, but that few other people
> > are interested in working with.
> > 
> 
> Yes that's a problem writing TCL code in 2025 :D
> Not many can read or write anymore...

Tcl - "an elegant weapon, for a more civilised age"

> I see a single file of news_code.tcl with 85 KB
> respect x 1000 ... you can handle that?!
> 
> I opened it ... trying to get warm with tcl but ocd triggers :D
> mixed indentation with space and tabs.
> What code editor do you use?

I use gvim - I try to stick to spaces but tabs creep in now and then.

> Do you have important code changes not online but in dev-branch locally?

No, I keep the online code pretty much up-to-date.

> I uploaded newsgrouper to github
> https://github.com/go-while/newsgrouper
> and will run AI agents to review code for logical issues, vulns, ...
> create instructions, add more help/readme/howtos,
> automate build process workflows and deployment in docker.

Thanks, more scrutiny is certainly welcome :-)

> copilot is already working:
> https://github.com/go-while/newsgrouper/pull/2
> 
> and found first issue:
> 
> - **User Authentication**: SQLite-based with MD5 password hashing (MD5 
> is cryptographically insecure and vulnerable to rainbow table attacks; 
> migration to a secure password hashing algorithm such as bcrypt, scrypt, 
> or Argon2 is strongly recommended).

Interesting but I'm not sure this is genuinely serious.  I took a look at
https://en.wikipedia.org/wiki/Rainbow_table .  
- For an attacker to use this method they need to have got a copy of the
  user database first, which should not be possible.
- I'm not using plain MD5, but MD5-Crypt which the wikipedia article notes
  is significantly stronger.
- I am using a constant 'salt' which is not ideal, but not fatal I think.

> 
> There will be significant updates. Are you ready? :D
> If you have a github account I'll add you as collab.

I do have a github account: cgmacleod .
I saw there is now a report there with lots of points which will take time
to go through.  I did see that the first "critical logic issue" listed
is bogus:
  Uninitialized Variable Bug: Debug function printvars uses uninitialized
  variable n, causing first iteration to fail
- this would have been a bug in early versions of Tcl, but the `incr`
command was later updated to treat an uninitialised variable as zero.

-- 
Colin Macleod ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ https://cmacleod.me.uk

FEED    FEED    FEED    FEED    FEED    FEED    FEED    FEED    
GAZA    GAZA    GAZA    GAZA    GAZA    GAZA    GAZA    GAZA    
NOW!    NOW!    NOW!    NOW!    NOW!    NOW!    NOW!    NOW!
Technical Details
Message-ID: <1756805683-7@newsgrouper.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.pugleaf.net!ygg-srv.newsdeef.eu!srv.newsdeef.eu!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder.eternal-september.org!newsgrouper.org!.POSTED!not-for-mail
References: <10935n7$2dgi$1@nnrp.usenet.blueworldhosting.com> <1094go5$1i5n$1@nnrp.usenet.blueworldhosting.com> <1094j0l$e1p$1@nnrp.usenet.blueworldhosting.com> <1756752601-7@newsgrouper.org> <e98ca867f405baa9d472682a10b9b166c2c64124@usenet.pugleaf.net>

Show Full Headers
Complete Article Headers
Message-ID: <1756805683-7@newsgrouper.org>
Subject: Re: Usenet Archive Update (news.blueworldhosting.com)
Date: Tue, 02 Sep 2025 09:34:43 GMT
From: Colin Macleod <user7@newsgrouper.org.invalid>
References: <10935n7$2dgi$1@nnrp.usenet.blueworldhosting.com> <1094go5$1i5n$1@nnrp.usenet.blueworldhosting.com> <1094j0l$e1p$1@nnrp.usenet.blueworldhosting.com> <1756752601-7@newsgrouper.org> <e98ca867f405baa9d472682a10b9b166c2c64124@usenet.pugleaf.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.pugleaf.net!ygg-srv.newsdeef.eu!srv.newsdeef.eu!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder.eternal-september.org!newsgrouper.org!.POSTED!not-for-mail
Newsgroups: alt.free.newsservers
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Info: newsgrouper.org; mail-complaints-to="newsgrouper@yahoo.com"; posting-account=user7
Injection-Date: Tue, 02 Sep 2025 09:34:43 GMT
User-Agent: Newsgrouper/0.8.1
Organisation: shmorganisation
X-Face: ;>4')~8UD=d.R[\.@A;)N{u_j#_=cmLx$}bIc4.3By~hf[q~|cf59?%bLtS)G@w#32G1%7y
 kz`PF}nwv'neqs,&gJm|V!,Xuekf[YIYQB7[Px"t#|rqb20(<F+y~
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAWlBMVEUOqj99lWv/gSb8+vzH
 yfDKcKfawMf/wXL/xwX/0DL/4MgAnuf////woTuJAg9haNWbJVrmDRbf8/wXqt0wOcfWPknT
 or8xStFls+AyPs/XiXvV447V5/JsPbGdJXGAAAAByElEQVRIie2V0XqDIAyFqaGoaKWztSDi
 +7/mkkoVFLbuonfLTeUzP+ckNMjaPwb7Bz4CcB+uh/eA0YdWSvE3mBW4Y4zKvW+JG6XGu+p/
 BYJnMHrkwVrYYbDyB6AFNap1Ie3XMwaZB1oEXnWLAXPtQEikEgNmBWh7C6SDTCGzwN0DmD+I
 l7WiKErIAHoBRNcF1iURGaC5EQDXrgt9EyFTANwaQ7+PrrPRRnKTSAEocN39ScqigDwg9gJP
 QOYBG1fwDrB3lLPU5wC4FJcU4JqGJy1Bpku8aWggjkXLzDngudE8HNtaro7iefDndvBEjsBx
 x40xIcCXEtDT9SpiR1YprTXNcQh4Rxjn+bxNt+NK08yPd7ooAgB7ZPyjQGIxDc9sjamGrqK+
 DwCz9OgZj5kIcI8zbq3nk0jMQyCAG5+RwJjnWRm79SgAACsIbiUiZoJEj8dctkdAMLYJEPFA
 AUFbTEVqpuHEWPoSg7qq4QigwJTMb8uqSl0zWQFZVXW49oBj7JQzFAm8AHSUvrjRUGzVAxNj
 yW8D5tfxiw0Qbj9mUqKfejdLmyWsYon6FVV1zA/b6uNUbVGXB6PrSfdi8gqlFygnmajr89/p
 b4k/bLhxPQ+xAAAAAElFTkSuQmCC