Vulnerabilities > CVE-2008-2640 - Cross-Site Scripting vulnerability in Adobe Flex and Flex Builder

047910
CVSS 4.3 - MEDIUM
Attack vector
NETWORK
Attack complexity
MEDIUM
Privileges required
NONE
Confidentiality impact
NONE
Integrity impact
PARTIAL
Availability impact
NONE
network
adobe
CWE-79
nessus

Summary

Multiple cross-site scripting (XSS) vulnerabilities in the Flex 3 History Management feature in Adobe Flex 3.0.1 SDK and Flex Builder 3, and generated applications, allow remote attackers to inject arbitrary web script or HTML via the anchor identifier to (1) client-side-detection-with-history/history/historyFrame.html, (2) express-installation-with-history/history/historyFrame.html, or (3) no-player-detection-with-history/history/historyFrame.html in templates/html-templates/. NOTE: Firefox 2.0 and possibly other browsers prevent exploitation.

Vulnerable Configurations

Part Description Count
Application
Adobe
2

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Cross Site Scripting through Log Files
    An attacker may leverage a system weakness where logs are susceptible to log injection to insert scripts into the system's logs. If these logs are later viewed by an administrator through a thin administrative interface and the log data is not properly HTML encoded before being written to the page, the attackers' scripts stored in the log will be executed in the administrative interface with potentially serious consequences. This attack pattern is really a combination of two other attack patterns: log injection and stored cross site scripting.
  • Embedding Scripts in Non-Script Elements
    This attack is a form of Cross-Site Scripting (XSS) where malicious scripts are embedded in elements that are not expected to host scripts such as image tags (<img>), comments in XML documents (< !-CDATA->), etc. These tags may not be subject to the same input validation, output validation, and other content filtering and checking routines, so this can create an opportunity for an attacker to tunnel through the application's elements and launch a XSS attack through other elements. As with all remote attacks, it is important to differentiate the ability to launch an attack (such as probing an internal network for unpatched servers) and the ability of the remote attacker to collect and interpret the output of said attack.
  • Embedding Scripts within Scripts
    An attack of this type exploits a programs' vulnerabilities that are brought on by allowing remote hosts to execute scripts. The attacker leverages this capability to execute scripts to execute his/her own script by embedding it within other scripts that the target software is likely to execute. The attacker must have the ability to inject script into script that is likely to be executed. If this is done, then the attacker can potentially launch a variety of probes and attacks against the web server's local environment, in many cases the so-called DMZ, back end resources the web server can communicate with, and other hosts. With the proliferation of intermediaries, such as Web App Firewalls, network devices, and even printers having JVMs and Web servers, there are many locales where an attacker can inject malicious scripts. Since this attack pattern defines scripts within scripts, there are likely privileges to execute said attack on the host. Of course, these attacks are not solely limited to the server side, client side scripts like Ajax and client side JavaScript can contain malicious scripts as well. In general all that is required is for there to be sufficient privileges to execute a script, but not protected against writing.
  • Cross-Site Scripting in Error Pages
    An attacker distributes a link (or possibly some other query structure) with a request to a third party web server that is malformed and also contains a block of exploit code in order to have the exploit become live code in the resulting error page. When the third party web server receives the crafted request and notes the error it then creates an error message that echoes the malformed message, including the exploit. Doing this converts the exploit portion of the message into to valid language elements that are executed by the viewing browser. When a victim executes the query provided by the attacker the infected error message error message is returned including the exploit code which then runs in the victim's browser. XSS can result in execution of code as well as data leakage (e.g. session cookies can be sent to the attacker). This type of attack is especially dangerous since the exploit appears to come from the third party web server, who the victim may trust and hence be more vulnerable to deception.
  • Cross-Site Scripting Using Alternate Syntax
    The attacker uses alternate forms of keywords or commands that result in the same action as the primary form but which may not be caught by filters. For example, many keywords are processed in a case insensitive manner. If the site's web filtering algorithm does not convert all tags into a consistent case before the comparison with forbidden keywords it is possible to bypass filters (e.g., incomplete black lists) by using an alternate case structure. For example, the "script" tag using the alternate forms of "Script" or "ScRiPt" may bypass filters where "script" is the only form tested. Other variants using different syntax representations are also possible as well as using pollution meta-characters or entities that are eventually ignored by the rendering engine. The attack can result in the execution of otherwise prohibited functionality.

Nessus

NASL familyCGI abuses : XSS
NASL idADOBE_FLEX_APSB08-14.NASL
descriptionThe remote host contains one or more HTML documents associated with Adobe Flex 3
last seen2020-06-01
modified2020-06-02
plugin id33220
published2008-06-18
reporterThis script is Copyright (C) 2008-2018 Tenable Network Security, Inc.
sourcehttps://www.tenable.com/plugins/nessus/33220
titleAdobe Flex 3 History Management historyFrame.html XSS
code
#
# (C) Tenable Network Security, Inc.
#


include("compat.inc");

if (description)
{
  script_id(33220);
  script_version("1.14");

  script_cve_id("CVE-2008-2640");
  script_bugtraq_id(29778);
  script_xref(name:"Secunia", value:"30746");

  script_name(english:"Adobe Flex 3 History Management historyFrame.html XSS");
  script_summary(english:"Looks for vulnerable versions of historyFrame.html");

 script_set_attribute(attribute:"synopsis", value:
"The remote web server contains HTML documents that are affected by a
cross-site scripting vulnerability." );
 script_set_attribute(attribute:"description", value:
"The remote host contains one or more HTML documents associated with
Adobe Flex 3's History Management Feature and affected by a DOM-based
cross-site scripting vulnerability.  Due to its failure to sanitize
user input, an attacker may be able to leverage this issue to inject
arbitrary HTML and script code into a user's browser to be executed
within the security context of the affected site, possibly by using
JavaScript code flow manipulation techniques." );
 script_set_attribute(attribute:"see_also", value:"http://blog.watchfire.com/wfblog/2008/06/javascript-code.html" );
 script_set_attribute(attribute:"see_also", value:"https://www.adobe.com/support/security/bulletins/apsb08-14.html" );
 script_set_attribute(attribute:"solution", value:
"Replace the affected file(s) with an instance of 'historyFrame.html'
from the Flex 3.0.2 update as discussed in the vendor advisory above." );
 script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:N/I:P/A:N");
 script_set_cvss_temporal_vector("CVSS2#E:H/RL:OF/RC:C");
 script_set_attribute(attribute:"exploitability_ease", value:"No exploit is required");
 script_set_attribute(attribute:"exploit_available", value:"false");
 script_cwe_id(79);
 script_set_attribute(attribute:"plugin_publication_date", value: "2008/06/18");
 script_set_attribute(attribute:"patch_publication_date", value: "2008/06/17");
 script_cvs_date("Date: 2018/11/15 20:50:19");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_set_attribute(attribute:"cpe",value:"cpe:/a:adobe:flex_builder");
script_set_attribute(attribute:"cpe",value:"cpe:/a:adobe:flex_sdk");
script_end_attributes();


  script_category(ACT_GATHER_INFO);
  script_family(english:"CGI abuses : XSS");
  script_copyright(english:"This script is Copyright (C) 2008-2018 Tenable Network Security, Inc.");
  script_dependencies("http_version.nasl");
  script_exclude_keys("Settings/disable_cgi_scanning");
  script_require_ports("Services/www", 80);

  exit(0);
}

include("global_settings.inc");
include("misc_func.inc");
include("http.inc");

port = get_http_port(default:80);

# Loop through directories.
info = "";

foreach dir (cgi_dirs())
{
  # Retrieve the affected file.
  url = string(dir, "/historyFrame.html");

  r = http_send_recv3(method:"GET", item:url, port:port);
  if (isnull(r)) exit(0);
  res = r[2];

  # Look for a vulnerable version.
  if (
    "document.write(url);" >< res &&
    "function processUrl()" >< res &&
    "if (!parent._ie_firstload)" >< res &&
    "Hidden frame for Browser History support." >< res
  )
  {
    info += '  ' + url + '\n';
    if (!thorough_tests) break;
  }
}


# Report if a problem was found.
if (info)
{
  if (report_verbosity)
  {
    report = string(
      "\n",
      "Nessus discovered the following vulnerable instance(s) of the file on\n",
      "the remote host :\n",
      "\n",
      info
    );
    security_warning(port:port, extra:report);
  }
  else security_warning(port);
  set_kb_item(name: 'www/'+port+'/XSS', value: TRUE);
}

Seebug

  • bulletinFamilyexploit
    descriptionBUGTRAQ ID: 29778 CVE(CAN) ID: CVE-2008-2640 Adobe Flex 3是用于构建和维护Web应用程序的高效开放源码框架。 Flex 3的历史管理功能所使用的historyFrame.html页面没有正确地过滤某些用户输入便返回给了用户,这允许远程攻击者通过提交恶意请求执行跨站脚本攻击,导致在用户浏览器会话中执行任意HTML和脚本代码。 0 Adobe Flex Builder 3 Adobe Flex 3.0.1 SDK Adobe ----- 目前厂商已经发布了升级补丁以修复这个安全问题,请到厂商的主页下载: &lt;a href=http://www.adobe.com/support/security/bulletins/downloads/historyFrame.zip target=_blank&gt;http://www.adobe.com/support/security/bulletins/downloads/historyFrame.zip&lt;/a&gt;
    idSSV:3443
    last seen2017-11-19
    modified2008-06-20
    published2008-06-20
    reporterRoot
    titleAdobe Flex 3历史管理historyFrame.html跨站脚本漏洞
  • bulletinFamilyexploit
    descriptionBUGTRAQ ID: 29778 CVE ID:CVE-2008-2640 CNCVE ID:CNCVE-20082640 Adobe Flex 3是一款开发富网络应用的工具。 Adobe Flex 3历史管理功能存在跨站脚本问题,远程攻击者可以利用漏洞获得敏感信息。 Adobe Flex 3历史管理功能存在输入验证错误,historyFrame.html脚本对用户提交的参数缺少过滤,提交恶意脚本代码,并诱使用户访问,可导致获得目标用户敏感信息。 Adobe Flex SDK 3.0.1 Adobe Flex Builder 3 Adobe Flex 3.0 升级程序: Adobe Flex 3.0 Adobe historyFrame.zip <a href=http://www.adobe.com/support/security/bulletins/downloads/historyFrame.zip target=_blank>http://www.adobe.com/support/security/bulletins/downloads/historyFrame.zip</a> Adobe Flex Builder 3 Adobe historyFrame.zip <a href=http://www.adobe.com/support/security/bulletins/downloads/historyFrame.zip target=_blank>http://www.adobe.com/support/security/bulletins/downloads/historyFrame.zip</a> Adobe Flex SDK 3.0.1 Adobe historyFrame.zip <a href=http://www.adobe.com/support/security/bulletins/downloads/historyFrame.zip target=_blank>http://www.adobe.com/support/security/bulletins/downloads/historyFrame.zip</a>
    idSSV:3466
    last seen2017-11-19
    modified2008-06-23
    published2008-06-23
    reporterRoot
    titleAdobe Flex 3历史管理'historyFrame.html'跨站脚本漏洞