[ZBXNEXT-7397] Insecure md5 is used for verifying passwords Created: 2021 Dec 27  Updated: 2024 Apr 10  Resolved: 2022 Mar 07

Status: Closed
Project: ZABBIX FEATURE REQUESTS
Component/s: API (A), Server (S)
Affects Version/s: 6.0.0beta1
Fix Version/s: 6.2.0alpha1, 6.2 (plan)

Type: Change Request Priority: High
Reporter: Artjoms Rimdjonoks Assignee: Martins Krisjanis (Inactive)
Resolution: Fixed Votes: 0
Labels: frontend, password, security
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
Team: Team B
Sprint: Sprint 84 (Jan 2022), Sprint 85 (Feb 2022)
Story Points: 0.25

 Description   

Zabbix front-end still allows using md5 for verifying passwords (CUser.php):

    private static function verifyPassword($password, array $db_user) {                                                                                         
        if (strlen($db_user['passwd']) > ZBX_MD5_SIZE) {                                                                                                        
            return password_verify($password, $db_user['passwd']);                                                                                              
        }                                                                                                                                                       
                                                                                                                                                                
        if (hash_equals($db_user['passwd'], md5($password))) {  

Apparently it was intentional to keep it for backwards compatibility (check ZBXNEXT-1898).
However, to me this functionality looks more like a vulnerability.



 Comments   
Comment by Alexei Vladishev [ 2022 Feb 10 ]

I would suggest to leave the incorrect login message as it is in 6.0. No need to change it.

Comment by Martins Krisjanis (Inactive) [ 2022 Feb 14 ]

Frontend implemented in development branch feature/ZBXNEXT-7397-5.5

Comment by Martins Krisjanis (Inactive) [ 2022 Feb 25 ]

Implemented in:

Comment by Martins Krisjanis (Inactive) [ 2022 Mar 02 ]

Documentation updated:

Generated at Thu Jun 05 22:45:08 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.