Lucene search
+L

VICIdial Remote OS Command Execution Vulnerability (May 2017) - Active Check

🗓️ 30 May 2017 00:00:00Reported by Copyright (C) 2017 Greenbone AGType 
openvas
 openvas
🔗 plugins.openvas.org👁 82 Views

VICIdial Remote OS Command Execution Vulnerability (May 2017). VICIdial versions 2.9 RC1 to 2.13 RC1 allows unauthenticated users to execute arbitrary operating system commands as the web server user if password encryption is enabled (disabled by default). An unauthenticated attacker may execute arbitrary OS commands as the web server

Related
Refs
Code
# SPDX-FileCopyrightText: 2017 Greenbone AG
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-only

CPE = "cpe:/a:vicidial:vicidial";

if (description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.106838");
  script_version("2025-07-16T05:43:53+0000");
  script_tag(name:"last_modification", value:"2025-07-16 05:43:53 +0000 (Wed, 16 Jul 2025)");
  script_tag(name:"creation_date", value:"2017-05-30 10:12:02 +0700 (Tue, 30 May 2017)");
  script_tag(name:"cvss_base", value:"10.0");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:C/I:C/A:C");

  script_cve_id("CVE-2025-34099");

  script_tag(name:"qod_type", value:"remote_analysis");

  script_tag(name:"solution_type", value:"VendorFix");

  script_name("VICIdial Remote OS Command Execution Vulnerability (May 2017) - Active Check");

  script_category(ACT_ATTACK);

  script_copyright("Copyright (C) 2017 Greenbone AG");
  script_family("Web application abuses");
  script_dependencies("gb_vicidial_http_detect.nasl");
  script_mandatory_keys("vicidial/http/detected");
  script_require_ports("Services/www", 443);

  script_tag(name:"summary", value:"VICIdial is prone to a remote OS command execution
  vulnerability.");

  script_tag(name:"vuldetect", value:"Sends a crafted HTTP request and checks if input filtering is
  not patched and if password encryption is supported which indicates that the server is
  vulnerable.");

  script_tag(name:"insight", value:"VICIdial allows unauthenticated users to execute arbitrary
  operating system commands as the web server user if password encryption is enabled (disabled by
  default).");

  script_tag(name:"impact", value:"An unauthenticated attacker may execute arbitrary OS commands as
  the web server.");

  script_tag(name:"affected", value:"VICIdial versions 2.9 RC1 through 2.13 RC1 if password
  encryption is enabled (disabled by default).");

  script_tag(name:"solution", value:"See the referenced link for a solution.");

  script_xref(name:"URL", value:"http://www.vicidial.org/VICIDIALmantis/view.php?id=1016");
  script_xref(name:"URL", value:"https://raw.githubusercontent.com/rapid7/metasploit-framework/master/modules/exploits/unix/webapp/vicidial_user_authorization_unauth_cmd_exec.rb");
  script_xref(name:"URL", value:"https://vulncheck.com/advisories/vicidial-unauth-command-injection");

  exit(0);
}

include("host_details.inc");
include("http_func.inc");
include("http_keepalive.inc");
include("misc_func.inc");

if (!port = get_app_port(cpe: CPE, service: "www"))
  exit(0);

if (!get_app_location(cpe: CPE, port: port, nofork: TRUE))
  exit(0);

user = rand_str(length: 10, charset: "ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz");
pass = "#" + rand_str(length: 10, charset: "ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz") + "&#";
userpass = user + ":" + pass;
userpass64 = base64(str: userpass);
authstr = "Basic " + userpass64;

req = http_get_req(port: port, url: "/vicidial/vicidial_sales_viewer.php",
                   add_headers: make_array("Authorization", authstr));
res = http_keepalive_send_recv(port: port, data: req);

if (!eregmatch(pattern: "\|" + user + "\|" + pass + "\|BAD\|", string: res))
  exit(99);

if (http_vuln_check(port: port, url: "/agc/bp.pl", pattern: "Bcrypt password hashing script",
                    check_header: TRUE)) {
  report = 'Result of the check:\nInput filtering is not patched and password encryption is supported. ' +
           'Which indicates that the server is vulnerable if password encryption is enabled.';
  security_message(port: port, data: report);
  exit(0);
}

exit(99);

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation