Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

Life is a whim of several billion cells to be you for a while.


computers / Rocksolid Nodes Help / Re: RSlight commits

SubjectAuthor
* RSlight commitsRetro Guy
+* RSlight commitsvga256
|`* RSlight commitsvga256
| `* RSlight commitsRetro Guy
|  `* RSlight commitsvga256
|   `* RSlight commitsRetro Guy
|    `* RSlight commitsvga256
|     `* RSlight commitsRetro Guy
|      +* RSlight commitsvga256
|      |`* RSlight commitsvga256
|      | `* RSlight commitsRetro Guy
|      |  `* RSlight commitsvga256
|      |   `* RSlight commitsvga256
|      |    `* RSlight commitsRetro Guy
|      |     `* RSlight commitsRetro Guy
|      |      +* RSlight commitsvga256
|      |      |`* RSlight commitsvga256
|      |      | +* RSlight commitsRetro Guy
|      |      | |+- RSlight commitsvga256
|      |      | |`* RSlight commitsSyber Shock
|      |      | | `- RSlight commitsRetro Guy
|      |      | `* RSlight commitsAnonymous
|      |      |  `* RSlight commitsRetro Guy
|      |      |   `* RSlight commitsvga256
|      |      |    `* RSlight commitsRetro Guy
|      |      |     `- RSlight commitsRetro Guy
|      |      `* RSlight commitsRetro Guy
|      |       `- RSlight commitsRetro Guy
|      `* RSlight commitsSyber Shock
|       `* RSlight commitsRetro Guy
|        `* RSlight commitsRetro Guy
|         `* RSlight commitsSyber Shock
|          `* RSlight commitsRetro Guy
|           `- RSlight commitsSyber Shock
`* RSlight commitsvga256
 `* RSlight commitsRetro Guy
  `* RSlight commitsRetro Guy
   `- RSlight commitsRetro Guy

Pages:12
Re: RSlight commits

<1301352607f3066c786becdbcda80039@news.novabbs.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=491&group=rocksolid.nodes.help#491

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: vga@vga256.com (vga256)
Newsgroups: rocksolid.nodes.help
Subject: Re: RSlight commits
Date: Sat, 29 Jul 2023 15:22:01 +0000
Organization: Rocksolid Light
Message-ID: <1301352607f3066c786becdbcda80039@news.novabbs.org>
References: <48f3b762ea1b773c2b5bbf31c4e21f3f@rocksolidbbs.com> <acf1c52ec3f5da5c5fd71c33c34482b5@news.novabbs.org> <73a235585db5d0a107c08bba9a8864e8@news.novabbs.org> <f6302ee1d14cc6fae777030eb4cd865a@rocksolidbbs.com> <89de840b87cc206f6edff7c73d5a9d53@news.novabbs.org> <ae847c3e3700580080bb15d6f31d763e@rocksolidbbs.com> <82dc8b9f4847fe09e240208c9ac5c165@news.novabbs.org> <f59b8b8398beb31ee9616511faccfc7d@rocksolidbbs.com> <473a269b62036d42252d58cc83e071ba@news.novabbs.org> <05e340190a18331fccaefc0bea0b82ae@news.novabbs.org> <09bc94780921cab662e9fe1c684f70b3@rocksolidbbs.com> <7a9e9db15b8e930eb1419881ae65675e@news.novabbs.org> <5877853f8232aed16a7a18421f8f4728@news.novabbs.org> <6e688ee27fe3c126f2f67291e86a3666@rocksolidbbs.com> <0eb7d6b2fab7d94364ecd100462ee715@rocksolidbbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="721951"; mail-complaints-to="usenet@i2pn2.org";
posting-account="PGd4t4cXnWwgUWG9VtTiCsm47oOWbHLcTr4rYoM0Edo";
User-Agent: Rocksolid Light 0.8.5
X-Rslight-Posting-User: 9d50238f0c8e65588ce75c7d7eaad42d47312328
X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on i2pn2.org
X-Rslight-Site: $2y$10$a0xCOhvseaOOeDBYX08WKudfvcB40SI7KblVm6V5IXaprpJA08nmu
 by: vga256 - Sat, 29 Jul 2023 15:22 UTC

Awesome - thanks, implemented.

--
Posted on Rocksolid Light

Re: RSlight commits

<c7fe904d0d3c4b8d1f2f1af35b36ff58@news.novabbs.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=512&group=rocksolid.nodes.help#512

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: vga@vga256.com (vga256)
Newsgroups: rocksolid.nodes.help
Subject: Re: RSlight commits
Date: Wed, 2 Aug 2023 03:01:36 +0000
Organization: Rocksolid Light
Message-ID: <c7fe904d0d3c4b8d1f2f1af35b36ff58@news.novabbs.org>
References: <48f3b762ea1b773c2b5bbf31c4e21f3f@rocksolidbbs.com> <acf1c52ec3f5da5c5fd71c33c34482b5@news.novabbs.org> <73a235585db5d0a107c08bba9a8864e8@news.novabbs.org> <f6302ee1d14cc6fae777030eb4cd865a@rocksolidbbs.com> <89de840b87cc206f6edff7c73d5a9d53@news.novabbs.org> <ae847c3e3700580080bb15d6f31d763e@rocksolidbbs.com> <82dc8b9f4847fe09e240208c9ac5c165@news.novabbs.org> <f59b8b8398beb31ee9616511faccfc7d@rocksolidbbs.com> <473a269b62036d42252d58cc83e071ba@news.novabbs.org> <05e340190a18331fccaefc0bea0b82ae@news.novabbs.org> <09bc94780921cab662e9fe1c684f70b3@rocksolidbbs.com> <7a9e9db15b8e930eb1419881ae65675e@news.novabbs.org> <5877853f8232aed16a7a18421f8f4728@news.novabbs.org> <6e688ee27fe3c126f2f67291e86a3666@rocksolidbbs.com> <0eb7d6b2fab7d94364ecd100462ee715@rocksolidbbs.com> <1301352607f3066c786becdbcda80039@news.novabbs.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="1084661"; mail-complaints-to="usenet@i2pn2.org";
posting-account="PGd4t4cXnWwgUWG9VtTiCsm47oOWbHLcTr4rYoM0Edo";
User-Agent: Rocksolid Light 0.8.5
X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on i2pn2.org
X-Rslight-Site: $2y$10$tutskrULiiIY.Sqn7zXBP.JvqTz02xvlRR9irI2yrfMe8qmPe6a0.
X-Rslight-Posting-User: 9d50238f0c8e65588ce75c7d7eaad42d47312328
 by: vga256 - Wed, 2 Aug 2023 03:01 UTC

This one might be useful for RSL, but it will require a bit of adaptation to make use of the flatfile user database. It's a password reset page for users who've forgotten their passwords. It generates a random token, e-mails a link with the token to the user using phpmailer, validates the token against the user database, and lets the user change their password. I also added a 24 hour token expiry.

https://bitbucket.org/svga256/tomobbs/commits/5729fb4a6f916a47a814123fefd9ea19a891463d

One question - Is it safe to send passwords for validation in forms via $_POST without first being hashed? This is an area of php that I don't have a ton of experience with, so I just followed the exemplar code in register.php.

--
Posted on Rocksolid Light

Re: RSlight commits

<2768cb7d9a184959100eb3c7650e7c94@rocksolidbbs.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=513&group=rocksolid.nodes.help#513

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: retro.guy@rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
Subject: Re: RSlight commits
Date: Wed, 2 Aug 2023 15:00:48 +0000
Organization: RetroBBS
Message-ID: <2768cb7d9a184959100eb3c7650e7c94@rocksolidbbs.com>
References: <48f3b762ea1b773c2b5bbf31c4e21f3f@rocksolidbbs.com> <acf1c52ec3f5da5c5fd71c33c34482b5@news.novabbs.org> <73a235585db5d0a107c08bba9a8864e8@news.novabbs.org> <f6302ee1d14cc6fae777030eb4cd865a@rocksolidbbs.com> <89de840b87cc206f6edff7c73d5a9d53@news.novabbs.org> <ae847c3e3700580080bb15d6f31d763e@rocksolidbbs.com> <82dc8b9f4847fe09e240208c9ac5c165@news.novabbs.org> <f59b8b8398beb31ee9616511faccfc7d@rocksolidbbs.com> <473a269b62036d42252d58cc83e071ba@news.novabbs.org> <05e340190a18331fccaefc0bea0b82ae@news.novabbs.org> <09bc94780921cab662e9fe1c684f70b3@rocksolidbbs.com> <7a9e9db15b8e930eb1419881ae65675e@news.novabbs.org> <5877853f8232aed16a7a18421f8f4728@news.novabbs.org> <6e688ee27fe3c126f2f67291e86a3666@rocksolidbbs.com> <0eb7d6b2fab7d94364ecd100462ee715@rocksolidbbs.com> <1301352607f3066c786becdbcda80039@news.novabbs.org> <c7fe904d0d3c4b8d1f2f1af35b36ff58@news.novabbs.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="1141247"; mail-complaints-to="usenet@i2pn2.org";
posting-account="qk6pvs/sIyKYNRNFdjVS+ghlZZkCUq7cWs+7p7kaLpU";
User-Agent: Rocksolid Light 0.8.5
X-Rslight-Posting-User: 7f2224730128256930309c9186f6203084896743
X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5*A|XCDf
?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7|z[.9iv^g>*8_B
H0=hZt'[%)4kG|
X-Rslight-Site: $2y$10$eHMxG.kQHvlruXk0geKdfuaBZsj.ngjJ3YE/eXKEVmO4/SfzWgLhO
X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on i2pn2.org
 by: Retro Guy - Wed, 2 Aug 2023 15:00 UTC

vga256 wrote:

> This one might be useful for RSL, but it will require a bit of adaptation to make use of the flatfile user database. It's a password reset page for users who've forgotten their passwords. It generates a random token, e-mails a link with the token to the user using phpmailer, validates the token against the user database, and lets the user change their password. I also added a 24 hour token expiry.

> https://bitbucket.org/svga256/tomobbs/commits/5729fb4a6f916a47a814123fefd9ea19a891463d

Looks good!

> One question - Is it safe to send passwords for validation in forms via $_POST without first being hashed? This is an area of php that I don't have a ton of experience with, so I just followed the exemplar code in register.php.

You're kind of relying on SSL during that time. To hash it first would require client side scripting, which would make this feature unavailable if JS is disabled. It is best to choose $_POST as you are. Avoid $_GET for such things and receive as $_POST, (not $_REQUEST which allows someone to generate a $_GET and have it received and processed.

I took a look at the code. I do plan to add this feature to RSL at some point.

I notice that you are retrieving $keys, which is good. Not sure if the purpose of $keys is obvious, but it is meant to limit a request to a time period. Meaning, if you try the same request in the future (or someone get a hold of your request), it won't work after a certain time, as $keys are rotated at the server. So a request including $keys would not match after a certain period of time. Just thought I'd mention all that in case it isn't clear in the code why it is there.

BTW, I don't claim to know what I'm talking about, I'm a hobbyist programmer. If someone has better advice, please chime in :)

--
Retro Guy

Re: RSlight commits

<1ff452a0b2a89236afa3e72ad92f8766@news.novabbs.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=514&group=rocksolid.nodes.help#514

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: vga@vga256.com (vga256)
Newsgroups: rocksolid.nodes.help
Subject: Re: RSlight commits
Date: Wed, 2 Aug 2023 15:59:06 +0000
Organization: Rocksolid Light
Message-ID: <1ff452a0b2a89236afa3e72ad92f8766@news.novabbs.org>
References: <48f3b762ea1b773c2b5bbf31c4e21f3f@rocksolidbbs.com> <f6302ee1d14cc6fae777030eb4cd865a@rocksolidbbs.com> <89de840b87cc206f6edff7c73d5a9d53@news.novabbs.org> <ae847c3e3700580080bb15d6f31d763e@rocksolidbbs.com> <82dc8b9f4847fe09e240208c9ac5c165@news.novabbs.org> <f59b8b8398beb31ee9616511faccfc7d@rocksolidbbs.com> <473a269b62036d42252d58cc83e071ba@news.novabbs.org> <05e340190a18331fccaefc0bea0b82ae@news.novabbs.org> <09bc94780921cab662e9fe1c684f70b3@rocksolidbbs.com> <7a9e9db15b8e930eb1419881ae65675e@news.novabbs.org> <5877853f8232aed16a7a18421f8f4728@news.novabbs.org> <6e688ee27fe3c126f2f67291e86a3666@rocksolidbbs.com> <0eb7d6b2fab7d94364ecd100462ee715@rocksolidbbs.com> <1301352607f3066c786becdbcda80039@news.novabbs.org> <c7fe904d0d3c4b8d1f2f1af35b36ff58@news.novabbs.org> <2768cb7d9a184959100eb3c7650e7c94@rocksolidbbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="1146173"; mail-complaints-to="usenet@i2pn2.org";
posting-account="PGd4t4cXnWwgUWG9VtTiCsm47oOWbHLcTr4rYoM0Edo";
User-Agent: Rocksolid Light 0.8.5
X-Rslight-Site: $2y$10$G.YWqLGljYB7/bM6rBkrdutRXWJOQuDkK4DCpqZvNZJ/a4ecysmSW
X-Rslight-Posting-User: 9d50238f0c8e65588ce75c7d7eaad42d47312328
X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on i2pn2.org
 by: vga256 - Wed, 2 Aug 2023 15:59 UTC

> You're kind of relying on SSL during that time. To hash it first would require client side scripting, which would make this feature unavailable if JS is disabled. It is best to choose $_POST as you are. Avoid $_GET for such things and receive as $_POST, (not $_REQUEST which allows someone to generate a $_GET and have it received and processed.

Ah haaa... now that's interesting. I suspected that SSL was doing the heavy lifting, but that also helps me understand the risks for anyone communicating via non-https. I did not know there was a distinction between POST and GET security-wise! (I just POST everything out of habit)

> I took a look at the code. I do plan to add this feature to RSL at some point.

> I notice that you are retrieving $keys, which is good. Not sure if the purpose of $keys is obvious, but it is meant to limit a request to a time period. Meaning, if you try the same request in the future (or someone get a hold of your request), it won't work after a certain time, as $keys are rotated at the server. So a request including $keys would not match after a certain period of time. Just thought I'd mention all that in case it isn't clear in the code why it is there.

Ah haa.. thanks for the explanation. I left $keys in register.php because I didn't know what it was doing at the time. I guess my token generation will do the same job, but it's great to know that function has already been taken care of.

--
Posted on Rocksolid Light

Re: RSlight commits

<ce5d6079036456189db8db3830248139$1@sybershock.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=515&group=rocksolid.nodes.help#515

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!rocksolid2!.POSTED!not-for-mail
From: admin@sybershock.com (Syber Shock)
Newsgroups: rocksolid.nodes.help
Subject: Re: RSlight commits
Date: Wed, 2 Aug 2023 17:24:31 -0500
Organization: sybershock.com
Message-ID: <ce5d6079036456189db8db3830248139$1@sybershock.com>
References: <48f3b762ea1b773c2b5bbf31c4e21f3f@rocksolidbbs.com>
<acf1c52ec3f5da5c5fd71c33c34482b5@news.novabbs.org>
<73a235585db5d0a107c08bba9a8864e8@news.novabbs.org>
<f6302ee1d14cc6fae777030eb4cd865a@rocksolidbbs.com>
<89de840b87cc206f6edff7c73d5a9d53@news.novabbs.org>
<ae847c3e3700580080bb15d6f31d763e@rocksolidbbs.com>
<82dc8b9f4847fe09e240208c9ac5c165@news.novabbs.org>
<f59b8b8398beb31ee9616511faccfc7d@rocksolidbbs.com>
<473a269b62036d42252d58cc83e071ba@news.novabbs.org>
<05e340190a18331fccaefc0bea0b82ae@news.novabbs.org>
<09bc94780921cab662e9fe1c684f70b3@rocksolidbbs.com>
<7a9e9db15b8e930eb1419881ae65675e@news.novabbs.org>
<5877853f8232aed16a7a18421f8f4728@news.novabbs.org>
<6e688ee27fe3c126f2f67291e86a3666@rocksolidbbs.com>
<0eb7d6b2fab7d94364ecd100462ee715@rocksolidbbs.com>
<1301352607f3066c786becdbcda80039@news.novabbs.org>
<c7fe904d0d3c4b8d1f2f1af35b36ff58@news.novabbs.org>
<2768cb7d9a184959100eb3c7650e7c94@rocksolidbbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: novabbs.org;
logging-data="3092537"; mail-complaints-to="usenet@novabbs.org";
posting-account="TzG3Hl99Aa0Fgb506WreKRgRTO2mG9+aGjVDifyfNqo";
 by: Syber Shock - Wed, 2 Aug 2023 22:24 UTC

On Wed, 2 Aug 2023 15:00:48 +0000
retro.guy@rocksolidbbs.com (Retro Guy) wrote:

> vga256 wrote:
>
> > This one might be useful for RSL, but it will require a bit of
> > adaptation to make use of the flatfile user database. It's a
> > password reset page for users who've forgotten their passwords. It
> > generates a random token, e-mails a link with the token to the user
> > using phpmailer, validates the token against the user database, and
> > lets the user change their password. I also added a 24 hour token
> > expiry.
>
> > https://bitbucket.org/svga256/tomobbs/commits/5729fb4a6f916a47a814123fefd9ea19a891463d
> >
>
> Looks good!
>
> > One question - Is it safe to send passwords for validation in forms
> > via $_POST without first being hashed? This is an area of php that
> > I don't have a ton of experience with, so I just followed the
> > exemplar code in register.php.
>
> You're kind of relying on SSL during that time. To hash it first
> would require client side scripting, which would make this feature
> unavailable if JS is disabled. It is best to choose $_POST as you
> are. Avoid $_GET for such things and receive as $_POST, (not
> $_REQUEST which allows someone to generate a $_GET and have it
> received and processed.
>
> I took a look at the code. I do plan to add this feature to RSL at
> some point.
>
> I notice that you are retrieving $keys, which is good. Not sure if
> the purpose of $keys is obvious, but it is meant to limit a request
> to a time period. Meaning, if you try the same request in the future
> (or someone get a hold of your request), it won't work after a
> certain time, as $keys are rotated at the server. So a request
> including $keys would not match after a certain period of time. Just
> thought I'd mention all that in case it isn't clear in the code why
> it is there.
>
> BTW, I don't claim to know what I'm talking about, I'm a hobbyist
> programmer. If someone has better advice, please chime in :)

You must ensure that the server will not permit a TLS/SSL protocol
downgrade attack. You must be certain that the server configuration will
never permit this to happen if sending unhashed or un-nonced passwords
through a encrypted connection. The server must refuse to handshake if
the client is not properly negotiating TLS/SSL.

A protocol downgrade attack is where a server will downgrade to an
earlier, weaker form of TLS/SSL or to HTTP in the clear when the
browser is not able to properly negotiate an encrypted connection. A
MITM can perform this attack and force a bad browser or bad server to
downgrade the connection cipher protocol and get the plaintext.

If there is going to be any javascript at all in the web front end,
this is where you would want it--for hashing passwords and nonces
together. And when hashing authentication data, do not use md5 or sha1.
Use sha256, sha384, sha512, b2sum, and other newer, longer hashes. If
you go the hashed password route, always program the client javascript
to do it with a random nonce provided by the server.

At a minimum the server must be configured to force HSTS (or a custom
equivalent) in https connections. It is also vital to use a PHP header
in the application to check that HSTS is enforced and that the server
values for the SSL connection show that SSL is active, and to fail by
refusing to proceed if HSTS is not engaged by either client or server.

If you don't programmatically force both client and browser to enforce
HSTS and prevent any possibility of downgrade attack, then getting pwnd
is just a matter of time.

Since we are dealing with retro enthusiasts, retro networks, and piles
of retro software, this issue is actually really important. Older
unpatched server software, browsers, and clients could be susceptible
to protocol downgrade attacks.

This is why I like the use of GPG for passing private messages
between servers. There is no way to downgrade that. It either works or
it fails without risk of exposing plaintext.

--
SugarBug | https://sybershock.com

Re: RSlight commits

<37d636527089bb2640ec19ca1fb079d2@rocksolidbbs.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=516&group=rocksolid.nodes.help#516

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: retro.guy@rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
Subject: Re: RSlight commits
Date: Thu, 3 Aug 2023 15:37:20 +0000
Organization: RetroBBS
Message-ID: <37d636527089bb2640ec19ca1fb079d2@rocksolidbbs.com>
References: <48f3b762ea1b773c2b5bbf31c4e21f3f@rocksolidbbs.com> <89de840b87cc206f6edff7c73d5a9d53@news.novabbs.org> <ae847c3e3700580080bb15d6f31d763e@rocksolidbbs.com> <82dc8b9f4847fe09e240208c9ac5c165@news.novabbs.org> <f59b8b8398beb31ee9616511faccfc7d@rocksolidbbs.com> <473a269b62036d42252d58cc83e071ba@news.novabbs.org> <05e340190a18331fccaefc0bea0b82ae@news.novabbs.org> <09bc94780921cab662e9fe1c684f70b3@rocksolidbbs.com> <7a9e9db15b8e930eb1419881ae65675e@news.novabbs.org> <5877853f8232aed16a7a18421f8f4728@news.novabbs.org> <6e688ee27fe3c126f2f67291e86a3666@rocksolidbbs.com> <0eb7d6b2fab7d94364ecd100462ee715@rocksolidbbs.com> <1301352607f3066c786becdbcda80039@news.novabbs.org> <c7fe904d0d3c4b8d1f2f1af35b36ff58@news.novabbs.org> <2768cb7d9a184959100eb3c7650e7c94@rocksolidbbs.com> <ce5d6079036456189db8db3830248139$1@sybershock.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="1258213"; mail-complaints-to="usenet@i2pn2.org";
posting-account="qk6pvs/sIyKYNRNFdjVS+ghlZZkCUq7cWs+7p7kaLpU";
User-Agent: Rocksolid Light 0.8.5
X-Rslight-Posting-User: 7f2224730128256930309c9186f6203084896743
X-Rslight-Site: $2y$10$NX.d8sNumyu/UwQ4yLBfqucTcmG9ZBBGpboIgD6pEZo5wNmXvWQs6
X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on i2pn2.org
X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5*A|XCDf
?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7|z[.9iv^g>*8_B
H0=hZt'[%)4kG|
 by: Retro Guy - Thu, 3 Aug 2023 15:37 UTC

Syber Shock wrote:

> You must ensure that the server will not permit a TLS/SSL protocol
> downgrade attack. You must be certain that the server configuration will
> never permit this to happen if sending unhashed or un-nonced passwords
> through a encrypted connection. The server must refuse to handshake if
> the client is not properly negotiating TLS/SSL.

> A protocol downgrade attack is where a server will downgrade to an
> earlier, weaker form of TLS/SSL or to HTTP in the clear when the
> browser is not able to properly negotiate an encrypted connection. A
> MITM can perform this attack and force a bad browser or bad server to
> downgrade the connection cipher protocol and get the plaintext.

This is good advice. I already force https using the web server (nginx
in my case). But forcing it also using HSTS (as you mention below) is a
good idea.

> If there is going to be any javascript at all in the web front end,
> this is where you would want it--for hashing passwords and nonces
> together. And when hashing authentication data, do not use md5 or sha1.
> Use sha256, sha384, sha512, b2sum, and other newer, longer hashes. If
> you go the hashed password route, always program the client javascript
> to do it with a random nonce provided by the server.

We could do this with JS, but there must be a fallback to allow log in
with JS disabled. Other features that silently fail without JS are not
very important, but logging in would be a pretty obvious fail.

> At a minimum the server must be configured to force HSTS (or a custom
> equivalent) in https connections. It is also vital to use a PHP header
> in the application to check that HSTS is enforced and that the server
> values for the SSL connection show that SSL is active, and to fail by
> refusing to proceed if HSTS is not engaged by either client or server.

> If you don't programmatically force both client and browser to enforce
> HSTS and prevent any possibility of downgrade attack, then getting pwnd
> is just a matter of time.

Adding HSTS to the code is easy. I'll mess around with it today.

> Since we are dealing with retro enthusiasts, retro networks, and piles
> of retro software, this issue is actually really important. Older
> unpatched server software, browsers, and clients could be susceptible
> to protocol downgrade attacks.

> This is why I like the use of GPG for passing private messages
> between servers. There is no way to downgrade that. It either works or
> it fails without risk of exposing plaintext.

Yup. I agree it's the better way to do messaging, and that's what we're
doing :)

--
Retro Guy

Re: RSlight commits

<4b419c91ebf1001ea1c2590bb694a590@rocksolidbbs.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=517&group=rocksolid.nodes.help#517

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: Anonymous@rocksolidbbs.com (Anonymous)
Newsgroups: rocksolid.nodes.help
Subject: Re: RSlight commits
Date: Thu, 3 Aug 2023 18:44:42 +0000
Organization: RetroBBS
Message-ID: <4b419c91ebf1001ea1c2590bb694a590@rocksolidbbs.com>
References: <48f3b762ea1b773c2b5bbf31c4e21f3f@rocksolidbbs.com> <acf1c52ec3f5da5c5fd71c33c34482b5@news.novabbs.org> <73a235585db5d0a107c08bba9a8864e8@news.novabbs.org> <f6302ee1d14cc6fae777030eb4cd865a@rocksolidbbs.com> <89de840b87cc206f6edff7c73d5a9d53@news.novabbs.org> <ae847c3e3700580080bb15d6f31d763e@rocksolidbbs.com> <82dc8b9f4847fe09e240208c9ac5c165@news.novabbs.org> <f59b8b8398beb31ee9616511faccfc7d@rocksolidbbs.com> <473a269b62036d42252d58cc83e071ba@news.novabbs.org> <05e340190a18331fccaefc0bea0b82ae@news.novabbs.org> <09bc94780921cab662e9fe1c684f70b3@rocksolidbbs.com> <7a9e9db15b8e930eb1419881ae65675e@news.novabbs.org> <5877853f8232aed16a7a18421f8f4728@news.novabbs.org> <6e688ee27fe3c126f2f67291e86a3666@rocksolidbbs.com> <0eb7d6b2fab7d94364ecd100462ee715@rocksolidbbs.com> <1301352607f3066c786becdbcda80039@news.novabbs.org> <c7fe904d0d3c4b8d1f2f1af35b36ff58@news.novabbs.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="1274126"; mail-complaints-to="usenet@i2pn2.org";
posting-account="qk6pvs/sIyKYNRNFdjVS+ghlZZkCUq7cWs+7p7kaLpU";
User-Agent: Rocksolid Light 0.8.5
X-Rslight-Posting-User: 7d1b1c0431a54fcbeb6112e1ac43419a90ad024c
X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on i2pn2.org
X-Rslight-Site: $2y$10$slp4Y1CweCzIUKgVk6THw.M8Zc9c3jFbwokwywccMnNSVsmu9.H/2
 by: Anonymous - Thu, 3 Aug 2023 18:44 UTC

> One question - Is it safe to send passwords for validation in forms via $_POST without first being hashed? This is an area of php that I don't have a ton of experience with, so I just followed the exemplar code in register.php.

anon replying here, because I find that discussion interesting:

1) to my knowledge, neither GET nor POST are safe by themselves, since an attacker eavesdropping can extract all information contained, whichever method is used. GET is just slightly worse, because on top it presents all info in the form of an url, which might get stored (without intention) in all kinds of places.

2) an attacker that can read a password from the POST stream can also read a hash. So I fail to see any difference in sending a password vs sending a hash (which is then used serverside as a password again).

3) in my opinion, the safety of any communication between browser and server relies on the underlying protocols used. https was already mentioned in this thread, together with its limitations and challenges. Using tor or i2p gets rid of those headaches altogether (but that is just me talking, using tor at every possible corner).

--
Posted on RetroBBS

Re: RSlight commits

<73910ac996dcb497c5ae22cf62226c0a@rocksolidbbs.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=518&group=rocksolid.nodes.help#518

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: retro.guy@rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
Subject: Re: RSlight commits
Date: Thu, 3 Aug 2023 21:33:39 +0000
Organization: RetroBBS
Message-ID: <73910ac996dcb497c5ae22cf62226c0a@rocksolidbbs.com>
References: <48f3b762ea1b773c2b5bbf31c4e21f3f@rocksolidbbs.com> <f6302ee1d14cc6fae777030eb4cd865a@rocksolidbbs.com> <89de840b87cc206f6edff7c73d5a9d53@news.novabbs.org> <ae847c3e3700580080bb15d6f31d763e@rocksolidbbs.com> <82dc8b9f4847fe09e240208c9ac5c165@news.novabbs.org> <f59b8b8398beb31ee9616511faccfc7d@rocksolidbbs.com> <473a269b62036d42252d58cc83e071ba@news.novabbs.org> <05e340190a18331fccaefc0bea0b82ae@news.novabbs.org> <09bc94780921cab662e9fe1c684f70b3@rocksolidbbs.com> <7a9e9db15b8e930eb1419881ae65675e@news.novabbs.org> <5877853f8232aed16a7a18421f8f4728@news.novabbs.org> <6e688ee27fe3c126f2f67291e86a3666@rocksolidbbs.com> <0eb7d6b2fab7d94364ecd100462ee715@rocksolidbbs.com> <1301352607f3066c786becdbcda80039@news.novabbs.org> <c7fe904d0d3c4b8d1f2f1af35b36ff58@news.novabbs.org> <4b419c91ebf1001ea1c2590bb694a590@rocksolidbbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="1287950"; mail-complaints-to="usenet@i2pn2.org";
posting-account="qk6pvs/sIyKYNRNFdjVS+ghlZZkCUq7cWs+7p7kaLpU";
User-Agent: Rocksolid Light 0.8.5
X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on i2pn2.org
X-Rslight-Site: $2y$10$E5t7XEdjmRY/tf7eN5MuJOXKVFDcdGPqMIkz.44ZJ9L/sp8IIa04G
X-Rslight-Posting-User: 7f2224730128256930309c9186f6203084896743
X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5*A|XCDf
?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7|z[.9iv^g>*8_B
H0=hZt'[%)4kG|
 by: Retro Guy - Thu, 3 Aug 2023 21:33 UTC

Anonymous wrote:

>> One question - Is it safe to send passwords for validation in forms via $_POST without first being hashed? This is an area of php that I don't have a ton of experience with, so I just followed the exemplar code in register.php.

> anon replying here, because I find that discussion interesting:

> 1) to my knowledge, neither GET nor POST are safe by themselves, since an attacker eavesdropping can extract all information contained, whichever method is used. GET is just slightly worse, because on top it presents all info in the form of an url, which might get stored (without intention) in all kinds of places.

The only real benefit to POST over GET is that you avoid the risk of giving someone a link that has the data visible in it. It's harder to spoof POST, but of course it can be done. You just reduce the risk, but you don't avoid all risk.

> 2) an attacker that can read a password from the POST stream can also read a hash. So I fail to see any difference in sending a password vs sending a hash (which is then used serverside as a password again).

> 3) in my opinion, the safety of any communication between browser and server relies on the underlying protocols used. https was already mentioned in this thread, together with its limitations and challenges. Using tor or i2p gets rid of those headaches altogether (but that is just me talking, using tor at every possible corner).

With the software we're discussing, RSL and tomo, I believe that SSL is sufficient. Enforcing SSL is a good idea, and it's pretty simple.

There are good reasons to limit access to some sites to only tor or i2p, but it's overkill for this task, and it severely limits the amount of people who would ever become a user of such sites.

The goal here is reasonable security. If someone is planning to overthrow the planet, just SSL won't be good enough.

--
Retro Guy

Re: RSlight commits

<00cc961fd44368cbf82f4fa26d16998b@news.novabbs.org>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=529&group=rocksolid.nodes.help#529

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: vga@vga256.com (vga256)
Newsgroups: rocksolid.nodes.help
Subject: Re: RSlight commits
Date: Mon, 7 Aug 2023 16:56:09 +0000
Organization: Rocksolid Light
Message-ID: <00cc961fd44368cbf82f4fa26d16998b@news.novabbs.org>
References: <48f3b762ea1b773c2b5bbf31c4e21f3f@rocksolidbbs.com> <f6302ee1d14cc6fae777030eb4cd865a@rocksolidbbs.com> <89de840b87cc206f6edff7c73d5a9d53@news.novabbs.org> <ae847c3e3700580080bb15d6f31d763e@rocksolidbbs.com> <82dc8b9f4847fe09e240208c9ac5c165@news.novabbs.org> <f59b8b8398beb31ee9616511faccfc7d@rocksolidbbs.com> <473a269b62036d42252d58cc83e071ba@news.novabbs.org> <05e340190a18331fccaefc0bea0b82ae@news.novabbs.org> <09bc94780921cab662e9fe1c684f70b3@rocksolidbbs.com> <7a9e9db15b8e930eb1419881ae65675e@news.novabbs.org> <5877853f8232aed16a7a18421f8f4728@news.novabbs.org> <6e688ee27fe3c126f2f67291e86a3666@rocksolidbbs.com> <0eb7d6b2fab7d94364ecd100462ee715@rocksolidbbs.com> <1301352607f3066c786becdbcda80039@news.novabbs.org> <c7fe904d0d3c4b8d1f2f1af35b36ff58@news.novabbs.org> <4b419c91ebf1001ea1c2590bb694a590@rocksolidbbs.com> <73910ac996dcb497c5ae22cf62226c0a@rocksolidbbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="1702164"; mail-complaints-to="usenet@i2pn2.org";
posting-account="PGd4t4cXnWwgUWG9VtTiCsm47oOWbHLcTr4rYoM0Edo";
User-Agent: Rocksolid Light 0.8.5
X-Rslight-Site: $2y$10$eENECkMN1UpYCX9rj5INbOmXBG1E9TsrUSBzqBvvHd5QtOAyhT1QC
X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on i2pn2.org
X-Rslight-Posting-User: 9d50238f0c8e65588ce75c7d7eaad42d47312328
 by: vga256 - Mon, 7 Aug 2023 16:56 UTC

tiny patch for newsportal.php:

If the connection to the remote server fails during a message send, prevent a script execution crash in newsportal.php:
line ~128:

if (is_resource($ns))
fclose($ns);

(when it cannot connect, $ns is passed as false, which cannot be fclosed)

--
Posted on Rocksolid Light

Re: RSlight commits

<641cb3a78017ccf5955ed0d7e4fe2dee@rocksolidbbs.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=530&group=rocksolid.nodes.help#530

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: retro.guy@rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
Subject: Re: RSlight commits
Date: Mon, 7 Aug 2023 20:35:40 +0000
Organization: RetroBBS
Message-ID: <641cb3a78017ccf5955ed0d7e4fe2dee@rocksolidbbs.com>
References: <48f3b762ea1b773c2b5bbf31c4e21f3f@rocksolidbbs.com> <ae847c3e3700580080bb15d6f31d763e@rocksolidbbs.com> <82dc8b9f4847fe09e240208c9ac5c165@news.novabbs.org> <f59b8b8398beb31ee9616511faccfc7d@rocksolidbbs.com> <473a269b62036d42252d58cc83e071ba@news.novabbs.org> <05e340190a18331fccaefc0bea0b82ae@news.novabbs.org> <09bc94780921cab662e9fe1c684f70b3@rocksolidbbs.com> <7a9e9db15b8e930eb1419881ae65675e@news.novabbs.org> <5877853f8232aed16a7a18421f8f4728@news.novabbs.org> <6e688ee27fe3c126f2f67291e86a3666@rocksolidbbs.com> <0eb7d6b2fab7d94364ecd100462ee715@rocksolidbbs.com> <1301352607f3066c786becdbcda80039@news.novabbs.org> <c7fe904d0d3c4b8d1f2f1af35b36ff58@news.novabbs.org> <4b419c91ebf1001ea1c2590bb694a590@rocksolidbbs.com> <73910ac996dcb497c5ae22cf62226c0a@rocksolidbbs.com> <00cc961fd44368cbf82f4fa26d16998b@news.novabbs.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="1721149"; mail-complaints-to="usenet@i2pn2.org";
posting-account="qk6pvs/sIyKYNRNFdjVS+ghlZZkCUq7cWs+7p7kaLpU";
User-Agent: Rocksolid Light 0.8.5
X-Rslight-Site: $2y$10$v3t48OLwKMp.rLMsAPLHd.SvLumihId5ZJKae7D3H3g7Hg5E9Rj2e
X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5*A|XCDf
?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7|z[.9iv^g>*8_B
H0=hZt'[%)4kG|
X-Rslight-Posting-User: 7f2224730128256930309c9186f6203084896743
X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on i2pn2.org
 by: Retro Guy - Mon, 7 Aug 2023 20:35 UTC

vga256 wrote:

> tiny patch for newsportal.php:

> If the connection to the remote server fails during a message send, prevent a script execution crash in newsportal.php:
> line ~128:

> if (is_resource($ns))
> fclose($ns);

> (when it cannot connect, $ns is passed as false, which cannot be fclosed)

Thanks! I'll apply that soon.

--
Retro Guy

Re: RSlight commits

<6a3033e14c62b78af9fc6612795c511b@rocksolidbbs.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=531&group=rocksolid.nodes.help#531

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: retro.guy@rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
Subject: Re: RSlight commits
Date: Tue, 8 Aug 2023 14:24:14 +0000
Organization: RetroBBS
Message-ID: <6a3033e14c62b78af9fc6612795c511b@rocksolidbbs.com>
References: <48f3b762ea1b773c2b5bbf31c4e21f3f@rocksolidbbs.com> <ae847c3e3700580080bb15d6f31d763e@rocksolidbbs.com> <82dc8b9f4847fe09e240208c9ac5c165@news.novabbs.org> <f59b8b8398beb31ee9616511faccfc7d@rocksolidbbs.com> <473a269b62036d42252d58cc83e071ba@news.novabbs.org> <05e340190a18331fccaefc0bea0b82ae@news.novabbs.org> <09bc94780921cab662e9fe1c684f70b3@rocksolidbbs.com> <7a9e9db15b8e930eb1419881ae65675e@news.novabbs.org> <5877853f8232aed16a7a18421f8f4728@news.novabbs.org> <6e688ee27fe3c126f2f67291e86a3666@rocksolidbbs.com> <0eb7d6b2fab7d94364ecd100462ee715@rocksolidbbs.com> <1301352607f3066c786becdbcda80039@news.novabbs.org> <c7fe904d0d3c4b8d1f2f1af35b36ff58@news.novabbs.org> <4b419c91ebf1001ea1c2590bb694a590@rocksolidbbs.com> <73910ac996dcb497c5ae22cf62226c0a@rocksolidbbs.com> <00cc961fd44368cbf82f4fa26d16998b@news.novabbs.org> <641cb3a78017ccf5955ed0d7e4fe2dee@rocksolidbbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="1799132"; mail-complaints-to="usenet@i2pn2.org";
posting-account="qk6pvs/sIyKYNRNFdjVS+ghlZZkCUq7cWs+7p7kaLpU";
User-Agent: Rocksolid Light 0.8.5
X-Rslight-Site: $2y$10$3t5215Q2h2mXPjiafvOObO91bstMTzP1HrMQE11Rh8ed8UpGUS1Ce
X-Rslight-Posting-User: 7f2224730128256930309c9186f6203084896743
X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5*A|XCDf
?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7|z[.9iv^g>*8_B
H0=hZt'[%)4kG|
X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on i2pn2.org
 by: Retro Guy - Tue, 8 Aug 2023 14:24 UTC

There's a typo in spoolnews.php (for Mail). I fixed it, here is the relevant part of the file, just one line changed (bbbs to bbs):

@@ -150,7 +150,7 @@ function get_articles($ns, $group) {

$nocem_check="@@NCM";
- $bbbsmail_check="@@RSL";
+ $bbsmail_check="@@RSL";

--
Retro Guy

Re: RSlight commits

<39302637535a0f9ec1ce1b7a508e33c8@rocksolidbbs.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=606&group=rocksolid.nodes.help#606

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: retro.guy@rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
Subject: Re: RSlight commits
Date: Sat, 19 Aug 2023 12:00:49 +0000
Organization: RetroBBS
Message-ID: <39302637535a0f9ec1ce1b7a508e33c8@rocksolidbbs.com>
References: <48f3b762ea1b773c2b5bbf31c4e21f3f@rocksolidbbs.com> <acf1c52ec3f5da5c5fd71c33c34482b5@news.novabbs.org> <73a235585db5d0a107c08bba9a8864e8@news.novabbs.org> <f6302ee1d14cc6fae777030eb4cd865a@rocksolidbbs.com> <89de840b87cc206f6edff7c73d5a9d53@news.novabbs.org> <ae847c3e3700580080bb15d6f31d763e@rocksolidbbs.com> <82dc8b9f4847fe09e240208c9ac5c165@news.novabbs.org> <f59b8b8398beb31ee9616511faccfc7d@rocksolidbbs.com> <473a269b62036d42252d58cc83e071ba@news.novabbs.org> <05e340190a18331fccaefc0bea0b82ae@news.novabbs.org> <09bc94780921cab662e9fe1c684f70b3@rocksolidbbs.com> <7a9e9db15b8e930eb1419881ae65675e@news.novabbs.org> <5877853f8232aed16a7a18421f8f4728@news.novabbs.org> <6e688ee27fe3c126f2f67291e86a3666@rocksolidbbs.com> <0eb7d6b2fab7d94364ecd100462ee715@rocksolidbbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="3028488"; mail-complaints-to="usenet@i2pn2.org";
posting-account="qk6pvs/sIyKYNRNFdjVS+ghlZZkCUq7cWs+7p7kaLpU";
User-Agent: Rocksolid Light 0.9.0
X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on i2pn2.org
X-Rslight-Posting-User: 7f2224730128256930309c9186f6203084896743
X-Rslight-Site: $2y$10$V2amQLoPF3SzouHh32oY.OswXFNaHujmtkJ.Fsj5IX.wnPGAtm/Ji
X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5*A|XCDf
?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7|z[.9iv^g>*8_B
H0=hZt'[%)4kG|
 by: Retro Guy - Sat, 19 Aug 2023 12:00 UTC

New commit to rslight-lib.php. If they don't display well here, I'll send a better description:

nntp treats commands as case insensitive, but overlooked was LIST NEWSGROUPS. This fixes it (starting at line 58):

if ($command[0] == 'list') {
if(isset($command[1])) {
- $msg = get_list($command[1], $msgsock);
+ $msg = get_list(strtolower($command[1]), $msgsock);
} else {
$msg = get_list("active", $msgsock);
}

Starting at line 1044 is an old bug, which is now fixed:

if(trim($name[1]) !== "") {
$msg.=$findgroup."rn";
} elseif(file_exists($spooldir."/".$name[0]."-title")) {
- $msg.=file_get_contents($spooldir."/".$name[0]."-title", IGNORE_NEW_LINES);
+ $msg.=file_get_contents($spooldir."/".$name[0]."-title")."rn";
} else {
$msg.=$findgroup."rn";
}

--
Retro Guy

Re: RSlight commits

<3918fb5eab9513193755132f20db0b9a@rocksolidbbs.com>

  copy mid

https://news.novabbs.org/computers/article-flat.php?id=607&group=rocksolid.nodes.help#607

  copy link   Newsgroups: rocksolid.nodes.help
Path: i2pn2.org!.POSTED!not-for-mail
From: retro.guy@rocksolidbbs.com (Retro Guy)
Newsgroups: rocksolid.nodes.help
Subject: Re: RSlight commits
Date: Sun, 20 Aug 2023 12:29:50 +0000
Organization: RetroBBS
Message-ID: <3918fb5eab9513193755132f20db0b9a@rocksolidbbs.com>
References: <48f3b762ea1b773c2b5bbf31c4e21f3f@rocksolidbbs.com> <acf1c52ec3f5da5c5fd71c33c34482b5@news.novabbs.org> <73a235585db5d0a107c08bba9a8864e8@news.novabbs.org> <f6302ee1d14cc6fae777030eb4cd865a@rocksolidbbs.com> <89de840b87cc206f6edff7c73d5a9d53@news.novabbs.org> <ae847c3e3700580080bb15d6f31d763e@rocksolidbbs.com> <82dc8b9f4847fe09e240208c9ac5c165@news.novabbs.org> <f59b8b8398beb31ee9616511faccfc7d@rocksolidbbs.com> <473a269b62036d42252d58cc83e071ba@news.novabbs.org> <05e340190a18331fccaefc0bea0b82ae@news.novabbs.org> <09bc94780921cab662e9fe1c684f70b3@rocksolidbbs.com> <7a9e9db15b8e930eb1419881ae65675e@news.novabbs.org> <5877853f8232aed16a7a18421f8f4728@news.novabbs.org> <6e688ee27fe3c126f2f67291e86a3666@rocksolidbbs.com> <0eb7d6b2fab7d94364ecd100462ee715@rocksolidbbs.com> <39302637535a0f9ec1ce1b7a508e33c8@rocksolidbbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="3132688"; mail-complaints-to="usenet@i2pn2.org";
posting-account="qk6pvs/sIyKYNRNFdjVS+ghlZZkCUq7cWs+7p7kaLpU";
User-Agent: Rocksolid Light 0.9.0
X-Rslight-Posting-User: 7f2224730128256930309c9186f6203084896743
X-Rslight-Site: $2y$10$metAbvhTz4ft/DZooUHH1.9vOZ3hjGVHa7GpiiC1zFrQ81eI8M7Pi
X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on i2pn2.org
X-Face: .&YR-G(w(DZ$$,}%k=]*5*!p'=(anr"IT`wZG'2VWdfl\r)l[42u7JH`n(JUQ*e5*A|XCDf
?&\X&uwkl38"CYX3O8m}C8E4p'%N$2#kSTVzx{Ly|DjLT\Vk7NE}NQ(VC$Yq]i:7|z[.9iv^g>*8_B
H0=hZt'[%)4kG|
 by: Retro Guy - Sun, 20 Aug 2023 12:29 UTC

Here is a list of recent changes:

Add interBBS Mail feature. (mostly complete and working)

Limit browser caching headers to only overboard and search results.

Discontinue use of overview flat files. Overview is now handled
only in the sqlite .db3 overview file (which already existed, but
needs upgrading at 0.9.0). Modified INSTALL.md to show steps to
upgrade properly.

Add history.db3 to handle deleted (NoCeM or expired) articles to
keep the article number reserved, and keep a record of deleted
message-ids. This greatly improves external newsreader support.

Fix a few bugs discovered along the way.

Clean up indentation on most .php files.

--
Retro Guy


computers / Rocksolid Nodes Help / Re: RSlight commits

Pages:12
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor