Zabbix — 1 vulnerability check
noctis ships 1 vulnerability check for Zabbix, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Zabbix httpmon.php SQL Injection
| CVE | CVE-2013-5743 |
|---|---|
| Severity | critical · CVSS 9.8 |
| Category | sqli — SQL injection |
| Services | http, https |
| Detection | set_var, tcp_connect, match · highest QoD 75 |
| Feed | tests/vulnerabilities/zabbix/CVE-2013-5743.yaml |
Sends a single quote in the applications parameter of Zabbix httpmon.php and checks whether the response leaks a MySQL syntax error from the query.
How noctis detects it
- Raw TCP (TLS on HTTPS), sent verbatim:
GET /httpmon.php?applications=2%27 HTTP/1.0 - Checks
root_resp.bannerforError in query - Checks
root_resp.bannerforYou have an error in your SQL syntax→ finding QoD 75: SQL error leaked by /httpmon.php?applications=2%27: … - Raw TCP (TLS on HTTPS), sent verbatim:
GET /zabbix/httpmon.php?applications=2%27 HTTP/1.0 - Checks
zbx_resp.bannerforError in query - Checks
zbx_resp.bannerforYou have an error in your SQL syntax→ finding QoD 75: SQL error leaked by /zabbix/httpmon.php?applications=2%27: …
References:
Feed source — tests/vulnerabilities/zabbix/CVE-2013-5743.yaml
# Zabbix httpmon.php SQL injection — CVE-2013-5743
#
# Ported from OpenVAS/Greenbone NVT 2013/gb_zabbix_62794.nasl (GPL-2.0-only).
#
# Detection: GET <dir>/httpmon.php?applications=2%27 (a single quote in the
# "applications" parameter). A vulnerable frontend passes the value unescaped
# into SQL and returns the database error, containing both "Error in query"
# and "You have an error in your SQL syntax". Both strings are required, as in
# the NASL (pattern + extra_check). Probed dirs: "/" and "/zabbix".
#
# tcp_connect is used so the %27 encoding is sent verbatim.
# QoD 75 (response analysis).
uid: c36df46c-111e-4542-b8b9-bcc276bc4878
name: "Zabbix httpmon.php SQL Injection (CVE-2013-5743)"
description: |
Sends a single quote in the applications parameter of Zabbix httpmon.php and
checks whether the response leaks a MySQL syntax error from the query.
cves: [CVE-2013-5743]
cvss: 9.8
severity: critical
category: sqli
confidence_base: 0.30
tags: [zabbix, sqli, monitoring]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2013-5743"
- "OpenVAS NVT 2013/gb_zabbix_62794.nasl (GPL-2.0-only)"
steps:
- id: init
action: set_var
var_name: sqli_root
var_value: false
- id: init-zabbix
action: set_var
var_name: sqli_zabbix
var_value: false
# ── dir "/" ──────────────────────────────────────────────────────────────
- id: probe-root
action: tcp_connect
port: "{{port}}"
send: "GET /httpmon.php?applications=2%27 HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
timeout_secs: 10
store_as: root_resp
- id: root-error
action: match
source: root_resp.banner
pattern: "Error in query"
on_match:
set_vars:
sqli_root: true
- id: root-syntax
action: match
source: root_resp.banner
pattern: "You have an error in your SQL syntax"
condition: "sqli_root == true"
on_match:
finding:
confidence_delta: 0.55
qod: 75
evidence: "SQL error leaked by /httpmon.php?applications=2%27: {{root_resp.banner}}"
stop: true
# ── dir "/zabbix" ────────────────────────────────────────────────────────
- id: probe-zabbix
action: tcp_connect
port: "{{port}}"
send: "GET /zabbix/httpmon.php?applications=2%27 HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
timeout_secs: 10
store_as: zbx_resp
- id: zabbix-error
action: match
source: zbx_resp.banner
pattern: "Error in query"
on_match:
set_vars:
sqli_zabbix: true
- id: zabbix-syntax
action: match
source: zbx_resp.banner
pattern: "You have an error in your SQL syntax"
condition: "sqli_zabbix == true"
on_match:
finding:
confidence_delta: 0.55
qod: 75
evidence: "SQL error leaked by /zabbix/httpmon.php?applications=2%27: {{zbx_resp.banner}}"
stop: true