CA Multiple Products Message Queuing Multiple Remote Vulnerabilities - Nessus

Critical   Plugin ID: 20173

This page contains detailed information about the CA Multiple Products Message Queuing Multiple Remote Vulnerabilities Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 20173
Name: CA Multiple Products Message Queuing Multiple Remote Vulnerabilities
Filename: cacam_overflow.nasl
Vulnerability Published: 2005-08-22
This Plugin Published: 2005-11-08
Last Modification Time: 2021-12-28
Plugin Version: 1.20
Plugin Type: remote
Plugin Family: Gain a shell remotely
Dependencies: cacam_detect.nasl
Required KB Items [?]: CA/MessageQueuing

Vulnerability Information


Severity: Critical
Vulnerability Published: 2005-08-22
Patch Published: 2005-08-22
CVE [?]: CVE-2005-2667, CVE-2005-2668, CVE-2005-2669
CPE [?]: cpe:/a:ca:messaging

Synopsis

Arbitrary code can be executed on the remote host due to a flaw in the CAM service.

Description

The remote version of CA Message Queuing Service contains a stack overflow in the 'log_security' function that may allow an attacker to execute arbitrary code on the remote host.

This version is also prone to denial of service on the TCP port 4105 as well as arbitrary code execution through spoofed CAFT packets.

An attacker does not need to be authenticated to exploit this flaw.

Solution

CA has released a set of patches for CAM 1.05, 1.07 and 1.11.

Public Exploits


Target Network Port(s): 4105
Target Asset(s): N/A
Exploit Available: True (Metasploit Framework, Exploit-DB, Core Impact)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the CA Multiple Products Message Queuing Multiple Remote Vulnerabilities vulnerability:

  1. Metasploit: exploit/windows/unicenter/cam_log_security
    [CA CAM log_security() Stack Buffer Overflow (Win32)]
  2. Exploit-DB: exploits/windows_x86/remote/16825.rb
    [EDB-16825: CA CAM (Windows x86) - 'log_security()' Remote Stack Buffer Overflow (Metasploit)]

Before running any exploit against any system, make sure you are authorized by the owner of the target system(s) to perform such activity. In any other case, this would be considered as an illegal activity.

WARNING: Beware of using unverified exploits from sources such as GitHub or Exploit-DB. These exploits and PoCs could contain malware. For more information, see how to use exploits safely.

Risk Information


CVSS Score Source [?]: CVE-2005-2668
CVSS V2 Vector: AV:N/AC:L/Au:N/C:C/I:C/A:C/E:F/RL:OF/RC:C
CVSS Base Score:10.0 (High)
Impact Subscore:10.0
Exploitability Subscore:10.0
CVSS Temporal Score:8.3 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:8.3 (High)
CVSS V3 Vector: CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
CVSS Base Score:9.1 (Critical)
Impact Subscore:6.0
Exploitability Subscore:2.3
CVSS Temporal Score:NA (None)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:9.1 (Critical)

Go back to menu.

Plugin Source


This is the cacam_overflow.nasl nessus plugin source code. This script is Copyright (C) 2005-2021 Tenable Network Security, Inc.

#
# (C) Tenable Network Security, Inc.
#


include("compat.inc");

if(description)
{
  script_id(20173);
  script_version("1.20");

  script_cve_id("CVE-2005-2667", "CVE-2005-2668", "CVE-2005-2669");
  script_bugtraq_id(14621,14622,14623);

  script_name(english:"CA Multiple Products Message Queuing Multiple Remote Vulnerabilities");

  script_set_attribute(attribute:"synopsis", value:"Arbitrary code can be executed on the remote host due to a flaw in the
CAM service." );
  script_set_attribute(attribute:"description", value:
"The remote version of CA Message Queuing Service contains a stack
overflow in the 'log_security' function that may allow an attacker
to execute arbitrary code on the remote host.

This version is also prone to denial of service on the TCP port 4105
as well as arbitrary code execution through spoofed CAFT packets.

An attacker does not need to be authenticated to exploit this flaw.");

  script_set_attribute(attribute:"see_also", value:"https://cxsecurity.com/issue/WLB-2006020014" );
  script_set_attribute(attribute:"solution", value:
"CA has released a set of patches for CAM 1.05, 1.07 and 1.11." );
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
  script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2005-2668");
  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");
  script_set_attribute(attribute:"exploit_framework_core", value:"true");
  script_set_attribute(attribute:"metasploit_name", value:'CA CAM log_security() Stack Buffer Overflow (Win32)');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

  script_set_attribute(attribute:"plugin_publication_date", value: "2005/11/08");
  script_set_attribute(attribute:"patch_publication_date", value: "2005/08/22");
  script_set_attribute(attribute:"vuln_publication_date", value: "2005/08/22");
  script_set_attribute(attribute:"plugin_modification_date", value:"2021/12/28");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe",value:"cpe:/a:ca:messaging");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_copyright(english:"This script is Copyright (C) 2005-2021 Tenable Network Security, Inc.");
  script_family(english:"Gain a shell remotely");

  script_dependencies("cacam_detect.nasl");
  script_require_keys("CA/MessageQueuing");
  script_require_ports(4105);
  exit(0);
}
var version = get_kb_item ("CA/MessageQueuing");
if (isnull(version))
  exit (0);

var port = 4105;

var main = ereg_replace (pattern:"^([0-9]+)\.[0-9]+ \(Build [0-9]+_[0-9]+\)$", string:version, replace:"\1");
var revision = ereg_replace (pattern:"^[0-9]+\.([0-9]+) \(Build [0-9]+_[0-9]+\)$", string:version, replace:"\1");

var build = ereg_replace (pattern:"^[0-9]+\.[0-9]+ \(Build ([0-9]+)_[0-9]+\)$", string:version, replace:"\1");
var build_rev = ereg_replace (pattern:"^[0-9]+\.[0-9]+ \(Build [0-9]+_([0-9]+)\)$", string:version, replace:"\1");

var main = int(main);
var revision = int (revision);
var build = int(build);
var build_rev = int (build_rev);


# vulnerable :
# 1.05
# < 1.07 build 220_13
# 1.07 build 230 & 231
# < 1.11 build 29_13

var report = ' Please upgrade to either version 1.07 build 220_13 or version 1.11 build 29_13 and above\n ';

if ((main < 1) ||
     ((main == 1) && (revision < 7)) ||
     ((main == 1) && (revision > 7) && (revision < 11)) )
{
  security_report_v4(port:port, extra:report, severity:SECURITY_HOLE);
}
else if (main == 1)
{
 if (revision == 7)
 {
  if ((build < 220) || ((build == 220) && (build_rev < 13)))
    security_report_v4(port:port, extra:report, severity:SECURITY_HOLE);
  else if ((build == 230) || (build == 231))
    security_report_v4(port:port, extra:report, severity:SECURITY_HOLE);
 }
  else if (revision == 11)
 {
  if ((build < 29) || ((build == 29) && (build_rev < 13)))
     security_report_v4(port:port, extra:report, severity:SECURITY_HOLE);
 }
}

The latest version of this script can be found in these locations depending on your platform:

  • Linux / Unix:
    /opt/nessus/lib/nessus/plugins/cacam_overflow.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\cacam_overflow.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/cacam_overflow.nasl

Go back to menu.

How to Run


Here is how to run the CA Multiple Products Message Queuing Multiple Remote Vulnerabilities as a standalone plugin via the Nessus web user interface (https://localhost:8834/):

  1. Click to start a New Scan.
  2. Select Advanced Scan.
  3. Navigate to the Plugins tab.
  4. On the top right corner click to Disable All plugins.
  5. On the left side table select Gain a shell remotely plugin family.
  6. On the right side table select CA Multiple Products Message Queuing Multiple Remote Vulnerabilities plugin ID 20173.
  7. Specify the target on the Settings tab and click to Save the scan.
  8. Run the scan.

Here are a few examples of how to run the plugin in the command line. Note that the examples below demonstrate the usage on the Linux / Unix platform.

Basic usage:

/opt/nessus/bin/nasl cacam_overflow.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a cacam_overflow.nasl -t <IP/HOST>

Run the plugin with trace script execution written to the console (useful for debugging):

/opt/nessus/bin/nasl -T - cacam_overflow.nasl -t <IP/HOST>

Run the plugin with using a state file for the target and updating it (useful for running multiple plugins on the target):

/opt/nessus/bin/nasl -K /tmp/state cacam_overflow.nasl -t <IP/HOST>

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: See also: Similar and related Nessus plugins:
  • 34393 - CA BrightStor ARCserve Backup RPC Interface (asdbapi.dll) Traversal Arbitrary Command Execution
  • 19387 - CA BrightStor ARCserve Backup Agent for Windows Long String Overflow
  • 24240 - CA BrightStor ARCserve Backup for Laptops & Desktops Server Multiple Vulnerabilities (QO83833)
  • 24015 - CA BrightStor ARCserve Backup Multiple Vulnerabilities (QO84983)
  • 24816 - CA BrightStor ARCserve Backup Tape Engine and Portmapper Multiple Vulnerabilities (QO86255)
  • 25086 - CA BrightStor ARCserve Backup Multiple Vulnerabilities (QO87569)
  • 24013 - CA BrightStor ARCserve Backup Tape Engine Multiple Remote Overflows (QO84983)
  • 18041 - CA BrightStor ARCserve Backup Universal Agent Remote Overflow (QO66526)
  • 22511 - CA BrightStor ARCserve Backup DBASVR for Windows Multiple Remote Buffer Overflows
  • 22510 - CA BrightStor ARCserve Backup for Windows Multiple Remote Buffer Overflows (QO81201)
  • 69317 - CA ARCserve Backup for Laptops and Desktops Server and CA Desktop Management Suite Multiple Remote Vulnerabilities
  • 17307 - CA License Service Multiple Vulnerabilities
  • 31731 - CA BrightStor ARCserve Backup ListCtrl ActiveX (ListCtrl.ocx) AddColumn() Method Overflow

Version


This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file cacam_overflow.nasl version 1.20. For more plugins, visit the Nessus Plugin Library.

Go back to menu.