Overview
Microsoft Internet Explorer (IE) allows script from a dialog frame in one domain to execute in a different domain, including the Local Machine Zone. The script could read certain local files and data (i.e. cookies) from other web sites. In the presence of other vulnerabilities (VU#626395, VU#25249), the script could execute arbitrary commands.
Description
Microsoft Internet Explorer provides two methods (showModalDialog and showModelessDialog) that can be used to display dialog box frames. The methods must specify a URI to use as the source of the dialog frame and they may take optional arguments, including script. These arguments can be accessed from the dialog frames using the dialogArguments property. Script passed as an argument to a dialog frame is subject to the security restrictions of the DHTML Object Model: script executing in one frame cannot access data in a frame from a different domain. In addition, script cannot access data using a different protocol. For example, script in a frame on cert.org cannot access data in a frame from example.com, and an http:// frame cannot access data using file:// or https://. The dialog methods may specify source URIs in a different domain than the parent frame, however the security restrictions should prevent script in one frame from accessing data in the other. From MS03-004: "Internet Explorer evaluates security when one web page requests access to resources in another security zone. There is a flaw in the way Internet Explorer checks the originating domain when script runs in a dialog box." Internet Explorer does not correctly enforce cross-domain security when the source of a dialog frame is set using an IFRAME element (or object). In publicly available examples, one file on a web site creates a scripting object and calls a dialog method with two arguments: the source of the dialog frame (a second file on the same web site as the parent) and a reference to the scripting object. The second file instantiates an IFRAME using a local file resource (res://shdoclc.dll/privacypolicy.dlg, see VU#711843). The local resource fulfills a necessary precondition of the attack - it uses dialogArguments to access the script without adequate validation. Script that is passed as an argument to a dialog frame can be accessed from a different domain/protocol as specified in the IFRAME element of the dialog frame's source URL. As a result, the script can read data from the target domain.
Internet Explorer, Outlook, Outlook Express, MSN Messenger, Eudora, Lotus Notes, Adobe PhotoDeluxe, AOL, and any other software that hosts the WebBrowser ActiveX control could be affected by this vulnerability. |
Impact
An attacker who is able to convince a user to access a specially crafted HTML document, such as an Internet web page or HTML email message, could execute arbitrary script in a different domain. When combined with cross-site scripting vulnerabilities in local HTML resources [VU#711843], the script could execute with privileges of the user in the security context of the Local Machine Zone. The script could read certain types of local files in known locations. In conjunction with other vulnerabilities (VU#626395, VU#25249), the script could execute arbitrary commands on the user's system. |
Solution
Apply Patch Apply Q810847 or a more recent cumulative patch. See Microsoft Security Bulletin MS03-004 for more information. |
Restrict HTML Help commands Restrict the execution of the Shortcut and WinHelp HTML Help commands to specified folders, or disable the commands entirely. As in the previous recommendation, this technique will protect against arbitrary command execution via HTML Help. Details are available in Microsoft Knowledge Base Article 810687. |
Vendor Information
CVSS Metrics
Group | Score | Vector |
---|---|---|
Base | ||
Temporal | ||
Environmental |
References
- http://www.pivx.com/larholm/adv/TL002/default.htm
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2002-0189
- http://www.microsoft.com/technet/security/bulletin/MS02-023.asp
- http://online.securityfocus.com/bid/4527
- http://security.greymagic.com/adv/gm001-ax/
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2002-0691
- http://microsoft.com/technet/security/bulletin/MS02-047.asp
- http://online.securityfocus.com/bid/5561
- http://www.iss.net/security_center/static/9938.php
- http://www16.brinkster.com/liudieyu/BadParent/BadParent-CONTENT.txt
- http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2003-1326
- http://microsoft.com/technet/security/bulletin/MS03-004.asp
- http://www.securityfocus.com/bid/6205
- http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/showmodaldialog.asp
- http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/showmodelessdialog.asp
- http://msdn.microsoft.com/workshop/author/om/xframe_scripting_security.asp
- http://msdn.microsoft.com/workshop/author/dhtml/sec_dhtml.asp
- http://msdn.microsoft.com/workshop/author/om/doc_object.asp
- http://msdn.microsoft.com/workshop/author/om/windows_frames_dialogs.asp
- http://msdn.microsoft.com/workshop/author/om/windows_frames_dialogs.asp#sec_dialogs
- http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/dialogarguments.asp
- http://msdn.microsoft.com/workshop/security/szone/overview/overview.asp#default_zones
- http://support.microsoft.com/support/kb/articles/Q182/5/69.ASP
- http://msdn.microsoft.com/workshop/browser/webbrowser/browser_control_ovw_entry.asp
- http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwebhttpresponseclassredirecttopic.asp
- http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/iframe.asp
- http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/properties/innerhtml.asp
Acknowledgements
Several variations of this vulnerability were publicly reported by Thor Larholm, GreyMagic Software, and Liu Die Yu.
This document was written by Art Manion and Shawn Van Ittersum.
Other Information
CVE IDs: | CVE-2002-0189 |
Severity Metric: | 18.07 |
Date Public: | 2002-04-17 |
Date First Published: | 2003-04-25 |
Date Last Updated: | 2007-06-05 14:01 UTC |
Document Revision: | 57 |