Lucene search

K
nessusThis script is Copyright (C) 2009-2018 Tenable Network Security, Inc.SAFARI_3_2_3.NASL
HistoryMay 13, 2009 - 12:00 a.m.

Safari < 3.2.3 Multiple Vulnerabilities

2009-05-1300:00:00
This script is Copyright (C) 2009-2018 Tenable Network Security, Inc.
www.tenable.com
25

The version of Safari installed on the remote Windows host is earlier than 3.2.3. Such versions are potentially affected by several issues :

  • A heap-based buffer overflow issue in the libxml library when handling long entity names could lead to a crash or arbitrary code execution. (CVE-2008-3529)

  • Multiple input validation issues exist in Safari’s handling of ‘feed:’ URLs, which could be abused to execute arbitrary JavaScript code. (CVE-2009-0162)

  • A memory corruption issue in WebKit’s handling of SVGList objects could lead to arbitrary code execution.
    (CVE-2009-0945)

  • The browser uses the HTTP Host header to determine the context of a 4xx/5xx CONNECT response from a proxy server.
    This could allow a man-in-the-middle attacker to execute arbitrary script code in the context of a legitimate server, circumventing the browser’s same-origin policy. (CVE-2009-2058)

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


include("compat.inc");


if (description)
{
  script_id(38745);
  script_version("1.17");

  script_cve_id("CVE-2008-3529", "CVE-2009-0162", "CVE-2009-0945", "CVE-2009-2058");
  script_bugtraq_id(31126, 34924, 34925, 35380);
  script_xref(name:"Secunia", value:"35056");

  script_name(english:"Safari < 3.2.3 Multiple Vulnerabilities");
  script_summary(english:"Checks Safari's version number");

  script_set_attribute( attribute:"synopsis", value:
"The remote host contains a web browser that is affected by several
vulnerabilities."  );
  script_set_attribute( attribute:"description",   value:
"The version of Safari installed on the remote Windows host is earlier
than 3.2.3.  Such versions are potentially affected by several issues :

  - A heap-based buffer overflow issue in the libxml library
    when handling long entity names could lead to a crash or
    arbitrary code execution. (CVE-2008-3529)

  - Multiple input validation issues exist in Safari's
    handling of 'feed:' URLs, which could be abused to
    execute arbitrary JavaScript code. (CVE-2009-0162)

  - A memory corruption issue in WebKit's handling of
    SVGList objects could lead to arbitrary code execution.
    (CVE-2009-0945)

  - The browser uses the HTTP Host header to determine the
    context of a 4xx/5xx CONNECT response from a proxy server.
    This could allow a man-in-the-middle attacker to execute
    arbitrary script code in the context of a legitimate server,
    circumventing the browser's same-origin policy. (CVE-2009-2058)"  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://www.microsoft.com/en-us/research/publication/pretty-bad-proxy-an-overlooked-adversary-in-browsers-https-deployments/?from=http%3A%2F%2Fresearch.microsoft.com%2Fapps%2Fpubs%2Fdefault.aspx%3Fid%3D79323"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://support.apple.com/en-us/HT3550"
  );
  script_set_attribute(
    attribute:"see_also",
    value:"https://lists.apple.com/archives/security-announce/2009/May/msg00000.html"
  );
  script_set_attribute(
    attribute:"solution",
    value:"Upgrade to Safari 3.2.3 or later."
  );
  script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:POC/RL:OF/RC:C");
  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");
  script_cwe_id(79, 94, 119, 287);
 script_set_attribute(attribute:"plugin_publication_date", value: "2009/05/13");
 script_cvs_date("Date: 2018/11/15 20:50:28");
  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:apple:safari");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"Windows");

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

  script_dependencies("safari_installed.nasl");
  script_require_keys("SMB/Safari/FileVersion");

  exit(0);
}


include("global_settings.inc");


ver = get_kb_item("SMB/Safari/FileVersion");
if (isnull(ver)) exit(0);

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

if (
  iver[0] < 3 ||
  (
    iver[0] == 3 &&
    (
      iver[1] < 525 ||
      (iver[1] == 525 && iver[2] < 29)
    )
  )
)
{
  if (report_verbosity > 0)
  {
    prod_ver = get_kb_item("SMB/Safari/ProductVersion");
    if (!isnull(prod_ver)) ver = prod_ver;

    report = string(
      "\n",
      "Safari version ", ver, " is currently installed on the remote host.\n"
    );
    security_hole(port:get_kb_item("SMB/transport"), extra:report);
  }
  else security_hole(get_kb_item("SMB/transport"));
}
VendorProductVersionCPE
applesafaricpe:/a:apple:safari