Microsoft Internet Explorer frame/iframe javascript: URL cross-domain script execution

ie-frame-script-execution (10066) The risk level is classified as HighHigh Risk


Microsoft Internet Explorer could allow a remote attacker to execute malicious JavaScript on any Web page that uses a <frame> or <iframe> element. A remote attacker could exploit this vulnerability by setting the URL in a Web page's <frame> or <iframe> element to a javascript: URL (i.e.: javascript:alert (document.cookie), which would cause the script to be executed in the security context of the currently loaded site. If the child frame is located in a different domain as the parent, the attacker would need to change the URL of the child frame to that of the parent before setting the javascript: URL. An attacker could use this vulnerability to steal a user's cookies or possibly access and modify Web content.

This vulnerability could also be used to read local files or execute programs on a victim's computer by creating a page that loads the PrivacyPolicy.dlg file, which contains a <frame> element, and then modifying the URL of this file's frame to the javascript: URL. The PrivacyPolicy.dlg file was included with Internet Explorer 6.0 only.


Gain Access


Apply the appropriate patch for your system, as listed in the latest Microsoft Security Bulletin. See References.

— OR —

Use Microsoft Automatic Update if it is supported by your operating system. The original bulletin issued by Microsoft has been superseded.


Platforms Affected:

  • Microsoft Internet Explorer 5.5
  • Microsoft Internet Explorer 6.0


Sep 09, 2002

The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (IBM Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

For corrections or additions please email ignore thisxforceignore this@ignore thisus.ignore thisibm.comignore this

Return to the main page