User tests: Successful: Unsuccessful:
Pull Request for Issue #31176 .
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)
Register a user without libsodium installed.
See: #31176 (comment)
User is registered and BCryprt is used.
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
Labels |
Added:
?
?
|
I have tested this item
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
Status | Pending | ⇒ | Ready to Commit |
RTC
Labels |
Added:
?
|
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 |
Thanks!
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.