PT-2024-34645 · Yeswiki · Yeswiki
Nishacid
·
Published
2024-10-31
·
Updated
2024-11-01
·
CVE-2024-51478
CVSS v3.1
9.9
Critical
| Vector | AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:L |
Name of the Vulnerable Software and Affected Versions
YesWiki versions prior to 4.4.5
Description
The use of a weak cryptographic algorithm and a hard-coded salt to hash the password reset key allows it to be recovered and used to reset the password of any account. This issue is due to the application using a weak cryptographic algorithm, specifically
md5, to hash the password reset key, and a hard-coded salt defined in the includes/services/UserManager.php file. The key is generated from the user's name, e-mail address, a random number between 0 and 10000, the current date of the request, and the salt. If an attacker knows the user's name and e-mail address, they can retrieve the key and use it to reset the account password with a bit of brute force on the random number.Recommendations
For versions prior to 4.4.5, the safest solution is to update to version 4.4.5, which fixes this issue by addressing the weak cryptographic algorithm and hard-coded salt used for password reset key hashing.
As a temporary workaround, consider restricting access to the password reset functionality until a patch is available.
Exploit
Fix
Use of a Broken Cryptographic Algorithm
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Yeswiki