? ? ? Pending

User tests: Successful: Unsuccessful:

avatar bembelimen
bembelimen
26 Nov 2020

Pull Request for Issue #31176 .

Summary of Changes

This PR fixes the weak comparison for the password hashing handler.

@HLeithner and me tried to fix the wrong usage of the switch statement mentioned here: #31176 (comment)

Testing Instructions

Register a user without libsodium installed.

Actual result BEFORE applying this Pull Request

See: #31176 (comment)

Expected result AFTER applying this Pull Request

User is registered and BCryprt is used.

Documentation Changes Required

avatar bembelimen bembelimen - open - 26 Nov 2020
avatar bembelimen bembelimen - change - 26 Nov 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 26 Nov 2020
Category Libraries
avatar bembelimen bembelimen - change - 26 Nov 2020
Labels Added: ? ?
avatar chmst chmst - test_item - 28 Nov 2020 - Tested successfully
avatar chmst
chmst - comment - 28 Nov 2020

I have tested this item successfully on c8d2b03

Tested on win10, Xampp with PHP 7.4.6. Registered users and checked the password in the database.

Before PR with normal php 7.4.6
$argon2i$v=19$m=65536,t=4,p=1$SWFULi5FY2d....

Before (renamed php_sodium.php in php)
$argon2i$v=19$m=65536,t=4,p=1$bm1aZn

After PR with normal php 7.4.6
$2y$10$uEw....

After PR (renamed php_sodium.php in php)
$2y$10$E.wUzScPv....


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31500.
avatar manojLondhe manojLondhe - test_item - 5 Dec 2020 - Tested successfully
avatar manojLondhe
manojLondhe - comment - 5 Dec 2020

I have tested this item successfully on c8d2b03

For same password for different users, I see as below in database password column

Before patch
$argon2i$v=19$m=65536,t=4,p=1$b29oNDNUZ1ZoZGlMRWQwOA$fc8zv34Rg7xWENE6cLI2WcJg99yMr6tBKwGWmQDgiII

After patch
$2y$10$QAuP9Nt64s2NG2YXP2pkOObR5uenW5s62OpwwTKXhugc.wCZR0ESy

I am not sure though if it is a successful test or no.

System info of my env.
PHP Version | 7.4.10


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31500.
avatar chmst chmst - change - 5 Dec 2020
Status Pending Ready to Commit
avatar chmst
chmst - comment - 5 Dec 2020

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/31500.

4cf5b69 9 Dec 2020 avatar wilsonge CS
avatar wilsonge wilsonge - change - 9 Dec 2020
Labels Added: ?
4b6f8b4 9 Dec 2020 avatar wilsonge CS
avatar wilsonge wilsonge - change - 9 Dec 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-12-09 19:36:23
Closed_By wilsonge
avatar wilsonge wilsonge - close - 9 Dec 2020
avatar wilsonge wilsonge - merge - 9 Dec 2020
avatar wilsonge
wilsonge - comment - 9 Dec 2020

Thanks!

Add a Comment

Login with GitHub to post a comment