On The Insider: Miley Cyrus in Sex and the City 2
BNET Business Network:
BNET
TechRepublic
ZDNet

July 31st, 2007

Mozilla fixes its end of URL protocol handling saga

Posted by Ryan Naraine @ 3:22 am

Categories: Apple, Data theft, Exploit code, Firefox, Google, Hackers, Metasploit, Microsoft, Mozilla, Open source, Passwords, Patch Watch, Pen testing, Responsible disclosure, Spyware and Adware, Viruses and Worms, Vulnerability research, Zero-day attacks

Tags: Mozilla Firefox, Mozilla Thunderbird, Protocol, Mozilla Corp., Ryan Naraine

Mozilla has fixed its end of the controversial URL protocol handling vulnerability that puts Windows users at risk of PC takeover attacks.

Exactly a week after admitting that Firefox was just as guilty as Internet Explorer when it comes to passing dangerous data to third party applications, the open-source group shipped Firefox 2.0.0.6 with workarounds and patches for two related vulnerabilities.

[ SEE: Mozilla caught napping on URL protocol handling flaw ]

The main fix (MFSA2007-27) corrects an issue found by former Microsoft security strategist Jesper Johansson where Mozilla did not percent-encode spaces and double-quotes in URIs handed off to external programs for handling. The danger here is that the receiving program to mistakenly interpret a single URI as multiple arguments.

In its advisory, Mozilla said the Firefox and Thunderbird 2.0.0.6 releases contain fixes that prevent the original demonstrations presented by Johansson, but warned that it it is still possible to launch a filetype handler based on extension rather than the registered protocol handler.

“A way to exploit a common handler with a single unexpected URI as an argument may yet be found. Since this handling is a property of the Windows Shell API this variant appears to affect other internet-enabled applications that pass these URIs to the Windows Shell,” Mozilla explained.

The company is suggesting the following workaround:

By default Firefox will ask before launching external protocol handlers, and these prompts should be denied from sites that are not trustworthy, especially if the requested URL contains spaces and double-quote (”) characters. An exception is made for mail-related protocols in Firefox, they do not prompt by default. If the default mail handler is Thunderbird 2.0.0.5 or later there will not be a problem, but if another program or older version of Thunderbird is the default handler then mail URIs can be made to prompt as well. (Similarly, in Thunderbird browser protocols like http: and ftp: do not prompt but instead launch the default browser.) To make mail-related links prompt in Firefox before launching external programs:

    • Enter about:config in the location bar
    • Enter warn-external in the Filter: box
    • Double-click to set the mailto, news, nntp, and snews lines to true

Firefox 2.0.0.6 also corrects a privilege escalation issue through chrome-loaded about:blank window.

Microsoft’s Internet Explorer can still be used as an attack vector for passing malicious data to third-party Windows apps but the software maker does not consider this a vulnerability that needs to be patched.

The patches will be delivered automatically over the next 24-48 hours  via the built-in auto-update mechanism.  Firefox users can manually download the update from GetFirefox.com.

Ryan NaraineRyan Naraine is a journalist and security evangelist at Kaspersky Lab. He manages Threatpost.com, a security news portal. Here is Ryan's full profile and disclosure of his industry affiliations.


Email Ryan Naraine

For daily updates on Ryan's activities, follow him on Twitter.

Subscribe to Zero Day via Email alerts or RSS.

  • Talkback
  • Most Recent of 60 Talkback(s)
INcorrect
IE certainly DOES need a fix. However, it will be no more a complete 'gap-closer' than the one that FF just got. All they need to do is properly format the parameters according to the standards.
... (Read the rest)
Posted by: Freebird54 Posted on: 08/02/07 You are currently: a Guest | | Terms of Use
So in the end, Mozilla admits  No_Ax_to_Grind | 07/31/07
So in the end, Mozilla fixes it in 7 days...  bportlock | 07/31/07
Reading is fundemental... There was no "fix".  No_Ax_to_Grind | 07/31/07
They also said...  bportlock | 07/31/07
Small hoile, big hole, its still a hole.  No_Ax_to_Grind | 07/31/07
Same vulnerability...  jasonp@... | 07/31/07
Because it is NOT a bug.  No_Ax_to_Grind | 07/31/07
No_Ax you are right it's not a bug , it's a feature .  MythBuster | 07/31/07
re: Small hoile, big hole, its still a hole.  MythBuster | 07/31/07
Call it a lesson learned  Michael Kelly | 07/31/07
But it is not fixed.  No_Ax_to_Grind | 07/31/07
Do us the favour of being honest with us  bportlock | 07/31/07
Gee, is that your best thought out post?  No_Ax_to_Grind | 07/31/07
No - it is just a statement of how you appear to behave  bportlock | 07/31/07
Judging from the quality (or lack of) of your posts.  No_Ax_to_Grind | 07/31/07
Just one question  zkiwi | 08/01/07
Misrepresentation is pathetic  Freebird54 | 08/01/07
You almost have it  magcomment | 07/31/07
More to it.  No_Ax_to_Grind | 07/31/07
Re: How would the OS or even IE know what is correct and what isn't?  Kid Icarus-21097050858087920245213802267493 | 07/31/07
... so use a schema  Downsider | 08/01/07
So the vulnerability is still there, but the Firefox vector is closed  WiredGuy | 07/31/07
Sorry you are wrong, read the article.  No_Ax_to_Grind | 07/31/07
So you admit...  jasonp@... | 07/31/07
NO! It is not...  No_Ax_to_Grind | 07/31/07
Ahhh....  jasonp@... | 07/31/07
Its what I have said all along, even when FF blamed MS  No_Ax_to_Grind | 07/31/07
Not what he said  rapson | 07/31/07
You forget to try and explain  zkiwi | 08/01/07
Having read all your replies to this post...  Logics | 07/31/07
So I (you, whoever) write a malware plug in  No_Ax_to_Grind | 07/31/07
Why do I bother?  Logics | 07/31/07
He gets it, doesn't care  TripleII | 07/31/07
Don Rupert *never gets it*  DonRupertBitByte | 07/31/07
You're right , Mozilla did admit to the flaw .  MythBuster | 07/31/07
I don't see a link for the FF update  BillyG_n_SC | 07/31/07
Err...  bportlock | 07/31/07
Just got it on mine  Michael Kelly | 07/31/07
That's so, 30 seconds ago  Mike Hunt | 08/01/07
yea, but you know the deal...  BillyG_n_SC | 07/31/07
If you don't want to wait...  dragosani | 07/31/07
Bill...  Monkey_MCSE | 07/31/07
I know that people...  BillyG_n_SC | 07/31/07
For Instance  Max_in_OH | 07/31/07
Like a Curate's egg, it is good in bits.  bportlock | 07/31/07
I pose a question to Axey  Shelendrea | 07/31/07
Because there really is no way to fix it.  No_Ax_to_Grind | 07/31/07
Wait a second  Kid Icarus-21097050858087920245213802267493 | 07/31/07
One more time  No_Ax_to_Grind | 07/31/07
What about this  Shelendrea | 07/31/07
C'mon,  Kid Icarus-21097050858087920245213802267493 | 07/31/07
The Fix is . . .  JLHenry | 08/01/07
Those who disagrees with No_Ax,  Grayson Peddie | 07/31/07
Not really  DonRupertBitByte | 07/31/07
Indeed, its the apps responsibility  No_Ax_to_Grind | 07/31/07
It is a matter of the incorrect app being called...  Logics | 07/31/07
INcorrect  Freebird54 | 08/02/07
NO MORE APPROVAL DIALOGS  Resuna | 07/31/07
I agree  TripleII | 07/31/07
2.0.0.6 broke things too!  robo3 | 08/01/07

What do you think?

SponsoredWhite Papers, Webcasts, and Downloads

advertisement

Recent Entries

Premier Vendor Content Whitepapers, webcasts & resources from our Power Center Sponsors

Archives

Favorite Links

ZDNet Blogs

White Papers, Webcasts, and Downloads

SmartPlanet

Click Here