Lucene search

K
openvasCopyright (C) 2011 SecPodOPENVAS:902765
HistoryDec 13, 2011 - 12:00 a.m.

Adobe Flex SDK 'SWF' Files Cross-Site Scripting Vulnerability (Windows)

2011-12-1300:00:00
Copyright (C) 2011 SecPod
plugins.openvas.org
12

EPSS

0.036

Percentile

91.6%

This host is installed with Adobe Flex SDK and is prone to
cross site scripting vulnerability.

###############################################################################
# OpenVAS Vulnerability Test
# $Id: secpod_adobe_flex_sdk_swf_files_xss_vuln_win.nasl 5367 2017-02-20 14:16:52Z cfi $
#
# Adobe Flex SDK 'SWF' Files Cross-Site Scripting Vulnerability (Windows)
#
# Authors:
# Madhuri D <[email protected]>
#
# Copyright:
# Copyright (c) 2011 SecPod, http://www.secpod.com
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2
# (or any later version), as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
###############################################################################

tag_solution = "Apply the patch from below link
  http://kb2.adobe.com/cps/915/cpsid_91544.html

  *****
  NOTE: Ignore this warning if patch is applied already.
  *****

  ****************************************************************
  Note: This script detects Adobe Flex SDK installed as part of Adobe
  Flex Builder only. If SDK is installed separately, manual verification
  is required.
  ****************************************************************";

tag_impact = "Successful exploitation could allow remote attackers to execute arbitrary
  HTML and script code in a user's browser session in context of an
  affected site.
  Impact Level: Application";
tag_affected = "Adobe Flex SDK version 3.x through 3.6 and 4.x through 4.5.1";
tag_insight = "The flaw is due to certain unspecified input passed to SWF files developed
  using the framework is not properly sanitised before being returned to the
  user.";
tag_summary = "This host is installed with Adobe Flex SDK and is prone to
  cross site scripting vulnerability.";

if(description)
{
  script_id(902765);
  script_version("$Revision: 5367 $");
  script_cve_id("CVE-2011-2461");
  script_bugtraq_id(50869);
  script_tag(name:"cvss_base", value:"4.3");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:N/I:P/A:N");
  script_tag(name:"last_modification", value:"$Date: 2017-02-20 15:16:52 +0100 (Mon, 20 Feb 2017) $");
  script_tag(name:"creation_date", value:"2011-12-13 00:49:37 +0530 (Tue, 13 Dec 2011)");
  script_name("Adobe Flex SDK 'SWF' Files Cross-Site Scripting Vulnerability (Windows)");

  script_xref(name : "URL" , value : "http://secunia.com/advisories/47053/");
  script_xref(name : "URL" , value : "http://www.securityfocus.com/bid/50869/info");
  script_xref(name : "URL" , value : "http://kb2.adobe.com/cps/915/cpsid_91544.html");
  script_xref(name : "URL" , value : "http://www.adobe.com/support/security/bulletins/apsb11-25.html");

  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2011 SecPod");
  script_family("General");
  script_dependencies("secpod_reg_enum.nasl");
  script_require_ports(139, 445);
  script_mandatory_keys("SMB/WindowsVersion");

  script_tag(name : "impact" , value : tag_impact);
  script_tag(name : "affected" , value : tag_affected);
  script_tag(name : "insight" , value : tag_insight);
  script_tag(name : "summary" , value : tag_summary);
  script_tag(name : "solution" , value : tag_solution);
  script_tag(name:"qod_type", value:"registry");
  script_tag(name:"solution_type", value:"VendorFix");
  exit(0);
}


include("smb_nt.inc");
include("version_func.inc");
include("secpod_smb_func.inc");

if(!get_kb_item("SMB/WindowsVersion")){
  exit(0);
}

key = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\";

if(!registry_key_exists(key:key)){
    exit(0);
}

foreach item (registry_enum_keys(key:key))
{
  flexName = registry_get_sz(key:key + item, item:"DisplayName");

  ## Checking DisplayName
  if("Adobe Flex" >< flexName)
  {
    sdkPath = registry_get_sz(key:key + item, item:"FrameworkPath");

    ## Check for 'sdk' in the path and grep the version
    if("sdk" >< sdkPath)
    {
      sdkVer = eregmatch(pattern:"\\([0-9.]+)", string:sdkPath);
      if(!isnull(sdkVer[1]))
      {
        # Check for Flex SDK version
        if(version_in_range(version:sdkVer[1], test_version:"3.0", test_version2:"3.6") ||
           version_in_range(version:sdkVer[1], test_version:"4.0", test_version2:"4.5.1"))
        {
          security_message(0);
          exit(0);

        }
      }
    }
  }
}