
|
Microsoft Internet Explorer and Spoofed URL's
(Added 01/29/2004, Updated 07/16/2004)
Scenario: Accessing a Web Site with any version of Microsoft's
Internet Explorer (MSIE) by way of a link embedded in an email message,
document or other rich text file gives outward indications that the Site
was reached, yet the Web Browser was hijacked to a different URL
(spoofing).
Pre-condition: A version of Microsoft Internet Explorer prior to
version 6.0.2800.1106 is used for accessing the URL in question.
Solution: There is a known flaw in all versions of MSIE that predate
version 6.0 (with Service Pack 1) which makes this kind of spoofing
possible. It permits the hijacking of the Web Browser for potentially
malicious purposes, such as to take advantages of other flaws in the
Browser or the version of the underlying Operating System.
The spoof works by way of a link that is intentionally crafted to give the
appearance of accessing a Web Page on one domain, while in actuality
loading a Web Page located in a completely different location. This is done
by inserting a non-printing character into the physical URL represented by
the link.
To illustrate the flaw, click on each of the two buttons and pay close
attention to the content of the address bar. The first will load a
specially prepared demonstration page in the normal manner, while the
second loads the same page utilizing the flaw described in this article.
Note: The second page will not load with the updated version of MSIE, as
identified above)
|
|
Because the originator of the spoof is able to hide the real URL, the most
expedient solution is to never click on links that appear in emails or
documents from unknown sources. Instead, the URL should be selected and
copied (<Ctrl>+C) and pasted (<Ctrl>+V)
into the Web Browser's location bar. Although this may be tedious, it is
the safest solution in the long run.
If in doubt about the legitimacy of a Web Page location, it's also possible
to determine the actual URL by executing the following JavaScript applet
from the Browser's location bar (Please note that use of this applet on
some types of Web Site, such as on e-commerce Sites, may cause the current
session to be lost for example the contents of an online shopping
cart):
javascript:alert('Displayed URL:\t' + location.protocol + '//' + location.hostname + '/' + '\nActual URL:\t' + location.href + '\n\nIf the server names do not match, this may be a spoof.');
See also: Microsoft
Knowledge Base Article #833786
Update: MSIE version 6.0.2800.1106 corrects this flaw. To verify the
version of MSIE in use, click Help | About
and check the version information in the resulting dialog. The patched
browser should report the above version number in the first line of version
data. The fourth line should include SP1 in the Update Versions list.
|