Lucene search

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

Safari < 3.2.2 Multiple Vulnerabilities

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

The version of Safari installed on the remote Windows host is earlier than 3.2.2. Such versions reportedly have multiple security vulnerabilities :

  • Input validation issues in their handling of ‘feed:’ URLs, which could be abused to execute arbitrary JavaScript code in the local security zone.

  • A cached certificate is not required before displaying a lock icon for a HTTPS website. This allows a man- in-the-middle attacker to present the user with spoofed web pages over HTTPS that appear to be from a legitimate source.

  • The browser processes a 3xx HTTP CONNECT before a successful SSL handshake, which could allow a man-in- the-middle attacker to execute arbitrary script code in the context of a HTTPS site.

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


include("compat.inc");


if (description)
{
  script_id(35687);
  script_version("1.16");

  script_cve_id("CVE-2009-0137", "CVE-2009-2062", "CVE-2009-2072");
  script_bugtraq_id(33234, 35411, 35412);

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

  script_set_attribute( attribute:"synopsis", value:
"The remote host contains a web browser with multiple vulnerabilities.");
  script_set_attribute( attribute:"description",   value:
"The version of Safari installed on the remote Windows host is earlier
than 3.2.2.  Such versions reportedly have multiple security
vulnerabilities :

  - Input validation issues in their handling of 'feed:' 
    URLs, which could be abused to execute arbitrary 
    JavaScript code in the local security zone.

  - A cached certificate is not required before displaying 
    a lock icon for a HTTPS website.  This allows a man-
    in-the-middle attacker to present the user with spoofed 
    web pages over HTTPS that appear to be from a legitimate 
    source.

  - The browser processes a 3xx HTTP CONNECT before a 
    successful SSL handshake, which could allow a man-in-
    the-middle attacker to execute arbitrary script code in 
    the context of a HTTPS site."  
  );
  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/HT3439"
  );
  script_set_attribute(
    attribute:"see_also", 
    value:"https://lists.apple.com/archives/security-announce/2009/Feb/msg00001.html"
  );
  script_set_attribute(
    attribute:"solution", 
    value:"Upgrade to Safari 3.2.2 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:U/RL:OF/RC:C");
  script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"false");
  script_cwe_id(20, 287);
 script_set_attribute(attribute:"plugin_publication_date", value: "2009/02/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] < 28 ||
          (iver[2] == 28 && iver[3] < 1)
        )
      )
    )
  )
)
{
  if (report_verbosity)
  {
    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
Related for SAFARI_3_2_2.NASL