J-Security Center

Title: Microsoft IE5 Javascript URL Redirection Vulnerability

Severity: MODERATE

Description:

A malicious web site operator could design a web page that, when visited by an IE5 user, would read a local file from the victim host (or any file on the victim's network to which the victim has access) and send the contents of that file to a designated remote location.

1) The IE5 user visits a malicious web site.

2) The web site instructs the client to open another IE5 browser window and display the contents of a file residing on the IE5 user's host (or another host on the network to which the IE5 user has access).

3) Immediately after opening the new browser window, the window is instructed to browse to a specified web site ie: http://malicious server.com/hack.cgi?doit.

4) The hack.cgi?doit page does not return a web page, but instead redirects the window to a javascript URL containing embedded executable code.

5) The javascript code (from step 4) can now access any files on the victim's host (or any file on the victim's network to which the victim has access) and send it to a location maintained by the malicious web site operator.

Under normal circumstances, javascript received from a non-local "security zone" is not allowed to perform such actions against files on the local host. In this instance, however, the IE5 browser has been fooled (via http redirect to javascript) into thinking that the Javascript should execute under the security context of the local host's security zone as the javascript was requested from a browser displaying the local file.

Microsoft has released a FAQ that contains a good description of this vulnerability: http://www.microsoft.com/security/bulletins/MS99-043faq.asp.

Affected Products:

  • Microsoft Internet Explorer 4.0.1
  • Microsoft Internet Explorer 4.0.1 for Windows 98
  • Microsoft Internet Explorer 4.0.1 for Windows NT 4.0
  • Microsoft Internet Explorer 5.0 for Windows 2000
  • Microsoft Internet Explorer 5.0 for Windows 95
  • Microsoft Internet Explorer 5.0 for Windows 98
  • Microsoft Internet Explorer 5.0 for Windows NT 4.0
  • Microsoft Internet Explorer for Unix 5.0.0
  • Microsoft Windows 95
  • Microsoft Windows 98
  • Microsoft Windows NT 4.0

References:

Juniper Networks provides this content via a wide variety of sources and production methods. If notified of errors or omissions in the content of this page, Juniper Networks, at its discretion, will modify or remove the page or leave the content as is, depending on various factors including but not limited to the reputation and authority of the party providing the notification. Please use the contact information displayed elsewhere on this page to report any errors or omissions regarding the content on this page.