Adobe Flash Player ActiveX Control Universal Cross-Site Scripting Vulnerability
20 Dec. 2007
Summary
This vulnerability allows remote attackers to run arbitrary JavaScript code in the security context of other domains, resulting in information disclosure and session hijacking. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.
The specific flaw exists in the Flash Player ActiveX Control's handling of the navigateToURL API, which takes two arguments, a URL and the name of the frame to be navigated. The SWF movie can pass in a javascript: URI and the name of a frame on some other domain. The code in the URI executes in the security context of the named frame, rather than the security context of the SWF movie or the page that embeds it.
Vulnerable Systems:
* Adobe Flash Player version 9.0.48.0 and earlier
* Adobe Flash Player version 8.0.35.0 and earlier
* Adobe Flash Player version 7.0.70.0 and earlier
public class uxssdemo extends Sprite {
public function uxssdemo() {
setTimeout(DoAttack, 1000);
}
public function DoAttack():void {
var request:URLRequest =
new URLRequest('javascript:alert("Cookie: "+document.cookie+"\\n\\nContent: \\n\\n" + document.lastChild.innerHTML);window.close();');
navigateToURL(request, 'tg');
}
}
}