MozillaZine

Fix for URL Spoofing Security Vulnerability Checked in to Mozilla Trunk and 1.6 Branch

Wednesday January 7th, 2004

The latest nightly builds of Mozilla feature a fix for the URL spoofing security vulnerability discovered in several browsers last month. A patch was checked in to the trunk and 1.6 branch yesterday, meaning that both the forthcoming Mozilla 1.6 and Mozilla Firebird 0.8 will be immune to the flaw.

In vulnerable versions of Mozilla, the address displayed in the Status Bar while hovering over a link is truncated if the characters %00 are present in the URL of the destination page. An attacker could exploit this to make a link that goes to http://www.microsoft.com%01%00@evilscam.net (real location evilscam.net) but appears in the Status Bar as simply http://www.microsoft.com. By fooling a user into believing that he or she is visiting a trusted site, an attacker could trick him or her into revealing sensitive information such as credit card details.

The flaw was originally detected in Microsoft Internet Explorer before also being spotted in Mozilla. The IE variant is more serious, however, as it affects not only the URL displayed in the Status Bar but also the URL shown Address Bar after following a spoofed link. At the time of writing, Microsoft has acknowledged the problem but not yet issued a patch.

Full technical details of the fix are in bug 228176. The Secunia Internet Explorer Address Bar Spoofing Test page allows browser users to check whether their software is vulnerable.

Update: The patch has now also been checked in to the 1.4 branch and will be included in the forthcoming Mozilla 1.4.2.


#18 Re: save browser

by tobypowell

Saturday January 10th, 2004 2:16 AM

You are replying to this message

the problem is not a bit of code in the address bar but the address itself

the @ symbol is used to attach a username and password to a URL, such as for FTP or some weird web authentication I've not seen for a long time.

this means that if the web address it <http://www.microsoft.com/…st@http://mydodgysite.com>

your average user will see that as going to a microsoft website, rather than the actual website which would be mydodgysite.com

There's no javascript in that whatsoever.

The second part of the bug is that the part after the @ can be hidden from the status bar (and the address bar in IE) by using a null character of %00 ( I think that 's the one.. real answer above)