What is Zabbix SSO Bypass Vulnerability?
Zabbix is an enterprise-grade open-source solution with a web-based interface that provides distributed system monitoring and network monitoring capabilities. When SAML SSO authentication (non-default) is enabled, malicious actors can modify session data because the user login stored in the session is not verified. Unauthenticated malicious attackers might exploit this issue to escalate privileges and gain admin access to the Zabbix frontend. This is the SSO authentication bypass vulnerability.
How to Prevent SSO Authentication Bypass Vulnerability of Zabbix?
Affected Zabbix Versions
- Zabbix 5.4.0 – 5.4.8
- Zabbix 6.0.0alpha1
Set up Environment
Set up the target environment manually.
In the Authentication section,move to SAML settings and tick Enable SAML authentication.
![SSO Authentication Bypass](https://www.ids-sax2.com/wp-content/uploads/2024/06/image-72.png)
![](https://www.ids-sax2.com/wp-content/uploads/2024/06/image-73.png)
Once opened, the Seegein Singh Singh Singh (Sam) option appears on the landing page.
![](https://www.ids-sax2.com/wp-content/uploads/2024/06/image-74.png)
Vulnerability Recurrence
Capture the packets for the following SAML login link.
![](https://www.ids-sax2.com/wp-content/uploads/2024/06/image-75.png)
Decode zbx_session.
![](https://www.ids-sax2.com/wp-content/uploads/2024/06/image-76-1024x259.png)
Concatenate the decoded data with “{“saml_data”:{“username_attribute”:“xxxusername”} “, as follows:
![](https://www.ids-sax2.com/wp-content/uploads/2024/06/image-77-1024x39.png)
Replace the zbx_session in the captured packets:
![](https://www.ids-sax2.com/wp-content/uploads/2024/06/image-78-1024x43.png)
Replace it and you can successfully log in.
Remediation
- Disable SAML authentication.
- The vendor has released an upgrade patch, which can be obtained from the following link: https://support.zabbix.com/browse/ZBX-20350
Reference links:
- https://blog.csdn.net/weixin_44309905/article/details/123014461
- http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-202201-1030