EvoCam 3.6.6 / 3.6.7 Web Server GET Request Overflow - Nessus

High   Plugin ID: 47682

This page contains detailed information about the EvoCam 3.6.6 / 3.6.7 Web Server GET Request Overflow Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 47682
Name: EvoCam 3.6.6 / 3.6.7 Web Server GET Request Overflow
Filename: macosx_evocam_3_6_8.nasl
Vulnerability Published: 2010-06-01
This Plugin Published: 2010-07-08
Last Modification Time: 2018-07-14
Plugin Version: 1.11
Plugin Type: local
Plugin Family: MacOS X Local Security Checks
Dependencies: http_version.nasl, ssh_get_info.nasl
Required KB Items [?]: Host/MacOSX/packages

Vulnerability Information


Severity: High
Vulnerability Published: 2010-06-01
Patch Published: 2010-06-02
CVE [?]: CVE-2010-2309
CPE [?]: N/A

Synopsis

The remote host has an application that may be susceptible to a remote buffer overflow attack.

Description

The version of EvoCam installed on the Mac OS X host is either 3.6.6 or 3.6.7. Such versions reportedly contain a buffer overflow in the Web Server component.

Using an overly long GET request, an unauthenticated remote attacker may be able to leverage this vulnerability to execute arbitrary code on the remote host subject to the privileges under which the application runs.

Solution

Upgrade to EvoCam 3.6.8 or later.

Public Exploits


Target Network Port(s): 8080
Target Asset(s): Services/www, Settings/ParanoidReport
Exploit Available: True (Metasploit Framework, Exploit-DB, Immunity Canvas, Core Impact)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the EvoCam 3.6.6 / 3.6.7 Web Server GET Request Overflow vulnerability:

  1. Metasploit: exploit/osx/http/evocam_webserver
    [MacOS X EvoCam HTTP GET Buffer Overflow]
  2. Exploit-DB: exploits/osx/remote/13735.py
    [EDB-13735: Apple Mac OSX EvoCam Web Server 3.6.6/3.6.7 - Remote Buffer Overflow]
  3. Exploit-DB: exploits/osx/remote/16864.rb
    [EDB-16864: UFO: Alien Invasion IRC Client (OSX) - Remote Buffer Overflow (Metasploit)]
  4. Exploit-DB: exploits/osx/remote/16874.rb
    [EDB-16874: Apple Mac OSX EvoCam Web Server - GET Buffer Overflow (Metasploit)]
  5. Immunity Canvas: CANVAS

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 V2 Vector [?]: AV:N/AC:L/Au:N/C:P/I:P/A:P/E:F/RL:OF/RC:C
CVSS Base Score:7.5 (High)
Impact Subscore:6.4
Exploitability Subscore:10.0
CVSS Temporal Score:6.2 (Medium)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:6.2 (Medium)

Go back to menu.

Plugin Source


This is the macosx_evocam_3_6_8.nasl nessus plugin source code. This script is Copyright (C) 2010-2018 Tenable Network Security, Inc.

#TRUSTED 8c8a641da5e3a74d2f32c0bac044e361e0c04d0d6f6edd04ec05547b8f145b5b64d9d8f7ca5122fd635bf153809876befcea2adc22cfd88e4c4ad75260e23cfcad1489b6fa86a15f1cdaed7d3783c4ecb58a3c8d1fa6c723c345e0bfe692670cdcba2478f7b29d0519a11b013e36fde8f738299889d74f495be4c1cfe6675db78605ebe581a983dbdb75509551820cdb7c658ff1c935d39567fd2ed56d8f4bc03e3be0d02caf6d53d4f20c6a6a4d99d9ea0486041982dba8fe8ff82f6cae5dc5841d41f41054fbf91c8107b869631eb1620999b977e3f390491d926b11d70d0e845fa2a66067842dc22b627a6738ee8beb6b6aa686c56642619609dcd30c2ec66567f722fa5443da8a2402aca419e1b356f40628876f1cadea6105ed8f7284acf3b2d9cc23f5c9fa9d5e5ff0a08c1f0e7f1fdfe19ba32c90c727319f57692956f5803ee469e27f3b6ac2aa3664048a9e2c6c7a01a145f7fa0aa463f71e90d33f643660a6f1111cd65d051e9f6ff0d367551a63bf640d5b6509fc1a05d962a14d813b50ca21f91d6dd63e3f13683e524e5fd901516fbc562d430676747c85353789c894ff6ca4dec3bad9959995a900dda9acd84976f8afe758f54a5ef94d962d5c2e96865d10830723febe722a5c29fcefd1205e78cd081b4e3cf62246c5f51bdd0943e60707f3bb00fe93c97c5b6b6e62e19d1477ea527e17ba4a2083911d56
#
# (C) Tenable Network Security, Inc.
#


if (!defined_func("bn_random")) exit(0);


include("compat.inc");


if (description)
{
  script_id(47682);
  script_version("1.11");
  script_set_attribute(attribute:"plugin_modification_date", value: "2018/07/14");

  script_cve_id("CVE-2010-2309");
  script_bugtraq_id(40489);
  script_xref(name:"EDB-ID", value:"13735");

  script_name(english:"EvoCam 3.6.6 / 3.6.7 Web Server GET Request Overflow");
  script_summary(english:"Checks version of EvoCam");

  script_set_attribute(
    attribute:"synopsis",
    value:
"The remote host has an application that may be susceptible to a remote
buffer overflow attack."
  );
  script_set_attribute(
    attribute:"description",
    value:
"The version of EvoCam installed on the Mac OS X host is either 3.6.6
or 3.6.7.  Such versions reportedly contain a buffer overflow in the
Web Server component. 

Using an overly long GET request, an unauthenticated remote attacker
may be able to leverage this vulnerability to execute arbitrary code
on the remote host subject to the privileges under which the
application runs."
  );
  script_set_attribute(attribute:"solution", value:"Upgrade to EvoCam 3.6.8 or later.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
  script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");
  script_set_attribute(attribute:"exploit_framework_canvas", value:"true");
  script_set_attribute(attribute:"canvas_package", value:'CANVAS');
  script_set_attribute(attribute:"exploit_framework_core", value:"true");
  script_set_attribute(attribute:"metasploit_name", value:'MacOS X EvoCam HTTP GET Buffer Overflow');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2010/06/01");
  script_set_attribute(attribute:"patch_publication_date", value:"2010/06/02");
  script_set_attribute(attribute:"plugin_publication_date", value:"2010/07/08");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"MacOS X Local Security Checks");

  script_copyright(english:"This script is Copyright (C) 2010-2018 Tenable Network Security, Inc.");

  script_dependencies("ssh_get_info.nasl", "http_version.nasl");
  script_require_keys("Host/MacOSX/packages");
  script_require_ports("Services/www", 8080, "Settings/ParanoidReport");

  exit(0);
}


include("global_settings.inc");
include("misc_func.inc");
include("ssh_func.inc");
include("macosx_func.inc");



if(sshlib::get_support_level() >= sshlib::SSH_LIB_SUPPORTS_COMMANDS)
  enable_ssh_wrappers();
else disable_ssh_wrappers();

packages = get_kb_item("Host/MacOSX/packages");
if (!packages) exit(1, "The 'Host/MacOSX/packages' KB item is missing.");


# Unless we're paranoid, make sure the service is enabled.
if (get_kb_item("global_settings/report_paranoia") != 'Paranoid')
{
  found = FALSE;
  ports = add_port_in_list(list:get_kb_list("Services/www"), port:8080);

  foreach port (ports)
  {
     soc = open_sock_tcp(port);
     if (soc)
     {
      send(socket:soc, data:http_get(item:"/", port:80));
      res = recv(socket:soc, length:1024);

      if (
        strlen(res) &&
        (
          "<title>EvoCam</title>" >< res ||
          '<applet archive="evocam.jar" code="com.evological.evocam.class"' >< res
        )
      ) found = TRUE;
      close(soc);
    }
    if (found) break;            
  } 
  if(!found) exit(0, "The EvoCam web server is not listening on the remote host.");
}


function exec(cmd)
{
  local_var ret, buf;

  if (islocalhost())
    buf = pread(cmd:"/bin/bash", argv:make_list("bash", "-c", cmd));
  else
  {
    ret = ssh_open_connection();
    if (!ret) exit(1, "ssh_open_connection() failed.");
    buf = ssh_cmd(cmd:cmd);
    ssh_close_connection();
  }
  if (buf !~ "^[0-9]") exit(1, "Failed to get the version - '"+buf+"'.");

  buf = chomp(buf);
  return buf;
}


plist = "/Applications/EvoCam.app/Contents/Info.plist";
cmd = string(
  "cat '", plist, "' | ",
  "grep -A 1 CFBundleShortVersionString | ",
  "tail -n 1 | ",
  'sed \'s/.*string>\\(.*\\)<\\/string>.*/\\1/g\''
);
version = exec(cmd:cmd);
if (!strlen(version)) exit(1, "Can't get version info from '"+plist+"'.");

ver = split(version, sep:'.', keep:FALSE);
for (i=0; i<max_index(ver); i++)
  ver[i] = int(ver[i]);

if (
  ver[0] == 3 && 
  ver[1] == 6 && 
  (ver[2] == 6 || ver[2] == 7)
)
{
  gs_opt = get_kb_item("global_settings/report_verbosity");
  if (gs_opt && gs_opt != 'Quiet')
  {
    report = 
      '\n  Installed version : ' + version +
      '\n  Fixed version     : 3.6.8\n';
    security_hole(port:0, extra:report);
  }
  else security_hole(0);
}
else exit(0, "The remote host is not affected since EvoCam "+version+" is installed.");

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

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

Go back to menu.

How to Run


Here is how to run the EvoCam 3.6.6 / 3.6.7 Web Server GET Request Overflow 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 MacOS X Local Security Checks plugin family.
  6. On the right side table select EvoCam 3.6.6 / 3.6.7 Web Server GET Request Overflow plugin ID 47682.
  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 macosx_evocam_3_6_8.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

/opt/nessus/bin/nasl -T - macosx_evocam_3_6_8.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 macosx_evocam_3_6_8.nasl -t <IP/HOST>

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: See also: Similar and related Nessus plugins:
  • 58074 - Firefox < 10.0.2 png_decompress_chunk Integer Overflow (Mac OS X)
  • 58072 - Firefox 3.6.x < 3.6.27 png_decompress_chunk Integer Overflow (Mac OS X)
  • 73741 - Flash Player for Mac <= 11.7.700.275 / 13.0.0.201 Pixel Bender Component Buffer Overflow (APSB14-13)
  • 125892 - Fortinet FortiOS (Mac OS X) <= 5.4, 5.6.x < 5.6.8, 6.0.x < 6.0.5 SSL VPN Buffer Overflow (FG-IR-18-387) (deprecated)
  • 125893 - Fortinet FortiOS (Mac OS X) < 5.6.11, 6.0.x < 6.0.5 SSL VPN Heap Buffer Overflow (FG-IR-18-388) (deprecated)
  • 59499 - iTunes < 10.6.3 m3u Multiple Buffer Overflow Vulnerabilities (Mac OS X)
  • 38987 - iTunes < 8.2 itms: URL Stack Overflow (Mac OS X)
  • 41059 - iTunes < 9.0.1 PLS File Buffer Overflow (Mac OS X)
  • 135851 - libssh2 < 1.8.1 Integer Overflow Vulnerability.
  • 71571 - Apple Motion < 5.1 OZDocument::parseElement() Function MOTN File Subview Attribute Handling Integer Overflow
  • 58075 - Thunderbird 10.x < 10.0.2 png_decompress_chunk Integer Overflow (Mac OS X)
  • 58073 - Thunderbird 3.1.x < 3.1.19 png_decompress_chunk Integer Overflow (Mac OS X)

Version


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

Go back to menu.