On GameSpot: Courtney Love to sue over Guitar Hero 5
BNET Business Network:
BNET
TechRepublic
ZDNet

December 30th, 2005

Lots of bad advice for critical WMF vulnerability!

Posted by George Ou @ 5:39 am

Categories: Security

Tags:

[Updated again at 12/31/2005 1:45 AM]  There has been a lot of bad information/advice being kicked around on the Internet pertaining to the critical WMF vulnerability in the last few days.  I’m said to admit that I too fell for it for a short period of time until I proved that these "fixes" were worthless.  To verify these claims, I went to websites known for distributing spyware.  In both cases for the Registry Modification and hardware DEP protection, my computer was instantly flooded with popups and warning messages and Process Explorer showed a dozen or more processes and netsh commands secretly destroying my test machine.

I tested the registry modification from Mr. Athias that was suppose to mitigate the WMF vulnerability attack.  For safety purposes, I ran the test from a VMWare Windows XP SP2 guest.  The virtual machine was fully patched with Windows XP SP2 and the registry was modified as Mr. Athias suggested yet it was completely trashed by spyware.  The spyware infections were so nasty that I had to completely destroy and rebuild eight virtual Windows XP machines to verify the results.  The registry modification from Mr. Athias simply won’t protect you.

In addition to the registry modification, our own Suzi Turner pointed me to Alex Eckelberry’s blog which claims that Windows DEP (Data Execution Prevention) and hardware Execute Disable support on the CPUs could mitigate this WMF vulnerability.  Unfortunately, my tests showed that DEP does not protect you against this WMF vulnerability as Eckelberry claims.  My virtual machines were infected over and over again even though hardware DEP was enabled.  [Update:  After chatting with Alex Eckelberry, it's clear that Alex was getting conflicting results from mine.  Both Alex and PCDoctorGuide were able to get hardware DEP working on the default Windows DEP settings while it didn't protect me.  My tests show that the default settings for hardware-enforced DEP do not work but turning on hardware-enforced DEP for all programs did work.]

[Updated again on Microsoft's DEP advice:  Microsoft has said that just using Software-enforced DEP helps to mitigate this WMF flaw.  After I contacted Microsoft, A Microsoft spokes person admits that software-enforced DEP does not work and informed me that the original advisory has been updated.  Here is the actual text of the original advisory and updated advisory:

Original advisory:
"I have software DEP enabled on my system, does this help mitigate the vulnerability?  Yes. Windows XP Service Pack 2 also includes software-enforced DEP that is designed to reduce exploits of exception handling mechanisms in Windows. By default software-enforced DEP applies to core operating system components and services. This vulnerability can be mitigated by enabling DEP for all programs on your computer.  For additional information about how to “Enable DEP for all programs on your computer”, see the product documentation."

Modified advisory as of 12/30/2005:
"Software based DEP does not mitigate the vulnerability. However, Hardware based DEP may work when enabled: please consult with your hardware manufacturer for more information on how to enable this and whether it can provide mitigation."

While it's great Microsoft responded to my request to fix their advisory the same day on a Friday before New Years Day Weekend, they should not have taken out the last two sentences in the excerpt above.  They should have left the following portion in:  "By default software-enforced DEP applies to core operating system components and services. This vulnerability can be mitigated by enabling DEP for all programs on your computer.  For additional information about how to “Enable DEP for all programs on your computer”, see the product documentation."  Even though Alex Eckelberry got conflicting results that shows the default Windows XP SP2 DEP settings stops this WMF exploit, my results showed you had to go the extra mile of enabling DEP for all programs on your computer.  Microsoft still needs to clarify this and explain why the default DEP settings work sometimes and not others.  But for now, the safe thing to do is to modify the DEP settings to apply to all programs.  Hardware-enforce DEP versus software-enforced DEP is explained here nicely and Alex include screen shots to help you determine if you're running hardware or software DEP.

The default setting on Windows XP SP2 for DEP only protects core Windows components and not extra applications like the "Windows Picture and Fax viewer" (I can't blame Microsoft for this Windows XP SP2 default setting because they were damned if they did and damned if they didn't.  There was a lot of sensationalist bashing against SP2 breaking applications even though it was nothing more than a firewall port being blocked and the end result was that many people to this day are still afraid to install SP2 on their computers.)  By setting DEP to the "opt-out" setting where DEP is on by default for every application unless otherwise specified, there may be some legitimate applications that break.  You'll need to manually put those legacy applications in the exclusion list but demand that the software vendor provide an update to support DEP.

There are some reports that I've been hearing where people can't even get their hardware-enforced DEP to work but there may be some special circumstances and I have not been able to verify it.  Dave Methvin from PCPitStop had problems getting his Athlon 64 3400+ to work unless he manually set his boot.ini file to turn DEP to the always on setting using "set /noexecute=AlwaysOn".  This is not very practical because it doesn't allow for any manual exceptions.  My own tests with an Intel Pentium 4 630 3.0 GHz CPU show that hardware-enforced DEP does work when it's set to "Enable for all programs and services except for those I select".  In my case, I can make exceptions to legitimate legacy applications that don't work with DEP protection.  It's important to note that DEP mitigates these types of attacks and should only be used as an extra layer of protection in addition to other defenses.]

[Updated again:  Microsoft's official workaround to unregister a certain DLL file using the command of "regsvr32 /u shimgvw.dll" at the Start-Run prompt seems to also be very effective.  Unfortunately, it kills the ability for Windows Explorer to display thumbnail images but I'm afraid we'll have to live without it until an official patch from Microsoft comes out (hopefully next month's patch cycle).  There are new reports that there are certain cases where this fix doesn't work.  MSPaint and Lotus Notes can still be exploited even with this DLL unregistered.  I think we haven't heard the end of this one yet and there may be many more applications vulnerable to this exploit but the combination of hardware-enforced DEP and unregistering the shimgvw.dll file seems to be very effective for now.]

George Ou is Technical Director of ZDNet. See his full profile and disclosure of his industry affiliations.

  • Talkback
  • Most Recent of 175 Talkback(s)
References not open to the public
All references on the WMF vulnerability prior to December 2005 are all probably classified (Dept of Defense & intelligence agencies).... (Read the rest)
Posted by: cburgess-iPALADIN Posted on: 01/09/06 You are currently: a Guest | | Terms of Use
Too much to Take  D. T. Schmitz | 12/30/05
You think we really buy that?  JimLowry | 01/03/06
I recommend a more subtile approach....  palmwarrior | 01/04/06
Beg to differ...  Linux User 147560 | 01/04/06
Number of updates depends on installed applications...  palmwarrior | 01/05/06
My point is  Linux User 147560 | 01/05/06
seriously this isnt a windows issue linux folks  jimk_z | 01/04/06
Knowledge is gained through research  richardebyrd | 01/05/06
Undigested data isn't knowledge  palmwarrior | 01/05/06
Stemming anxiety  broper | 12/30/05
Yup...  SecurityGeek_z | 12/30/05
Yup...  SecurityGeek_z | 12/30/05
Follow-up  alexeck_z | 12/30/05
You did not turn it on for "ALL programs"  george_ou | 12/30/05
George, this is a buffer overflow!  jacec | 12/30/05
Software DEP outside of a VM?  jacec | 12/30/05
Hey, I had to sleep sometime  george_ou | 12/30/05
Sleep is a good thing  jacec | 12/30/05
There has been a lot of confusion  george_ou | 12/30/05
thanks for the info  jacec | 12/30/05
They just updated their site  george_ou | 12/30/05
What physical machines are you referring to?  jacec | 12/30/05
VMWare or not... who cares?  SecurityGeek_z | 12/30/05
Since VMWare didn't even support hardware DEP  jacec | 12/31/05
Incorrect  SecurityGeek_z | 12/31/05
Since VMWare didn't even support hardware DEP  jacec | 12/31/05
VMWare is not 100% perfect  cburgess | 01/04/06
Alex emailed me  george_ou | 12/31/05
Unregistering doesn't work for Lotus Notes  dv8or70@... | 12/30/05
well it worked for me...  paperghost | 12/30/05
If you're right George...  jacec | 12/30/05
Thanks for clearing that up George!  klo_2k | 12/30/05
Well on the bright side!  Linux User 147560 | 12/30/05
Sad state of Linux security?  rcb_z | 01/03/06
SuSE 9.3 Pro....  Linux User 147560 | 01/04/06
not hacked != secure  rcb_z | 01/05/06
Facts about hacking Linux and BSD  george_ou | 01/06/06
Ever hear of the SelLinux kernel?  Linux User 147560 | 01/06/06
The Worst Advice  Harry Bardal | 12/30/05
Even fundamental flaws can be fixed...  SecurityGeek_z | 12/30/05
Fundamentalism  Harry Bardal | 01/02/06
vista???  axe's worst nightmare | 01/02/06
graphics viewer applications  cpc@... | 12/30/05
We're still looking  george_ou | 12/30/05
re: We're still looking  barsteward | 12/30/05
Security is everyone's problem  george_ou | 12/30/05
re:Security is everyone's problem  barsteward | 12/30/05
That's patently false  george_ou | 12/30/05
re: That's patently false  barsteward | 12/31/05
Please don't feed the trolls  broper | 12/31/05
Been there, done that...  JDThompson | 12/31/05
Vulnerability is in the Windows GDI  SecurityGeek_z | 12/30/05
Software DEP outside a VM?  jacec | 12/30/05
Software DEP is a Self-Contained Feature  SecurityGeek_z | 12/31/05
Great explanation (nt)  george_ou | 12/31/05
Read it for yourself  jacec | 01/02/06
Hey where are the MS cheerleaders?  Linux User 147560 | 12/30/05
Sick  broper | 12/30/05
Damn straight!  Linux Advocate | 12/30/05
Let's not forget  D. T. Schmitz | 12/31/05
True and false  george_ou | 12/31/05
What applications?  Linux User 147560 | 12/31/05
which apps  D. T. Schmitz | 12/31/05
I've been over this topic before  george_ou | 12/31/05
Don't know if  Boot_Agnostic | 01/03/06
Ted who?  Linux User 147560 | 01/04/06
Cheerleaders?  SecurityGeek_z | 12/30/05
I am pretty proactive myself there buddy!  Linux Advocate | 12/30/05
Well said  Suzi_z | 12/31/05
Here here!  broper | 12/31/05
By "cheerleaders", I think he meant...  Zogg | 01/02/06
NBMers are very rare  george_ou | 01/02/06
Then ZDNet attracts some people who do a *very* good NBM impression wink.  Zogg | 01/02/06
Like who? Here's a simple test to determine.  george_ou | 01/02/06
This just BEGS the question...  Zogg | 01/03/06
Yes, I can answer  george_ou | 01/03/06
Didn't I say that your test was simplistic?  Zogg | 01/03/06
Yes I can George!  Linux User 147560 | 01/03/06
Great games platform?  Zogg | 01/03/06
That's still a cheap shot  george_ou | 01/03/06
Excuse me? Are you DEMANDING that people upgrade from W2K?  Zogg | 01/03/06
Ah, change the subject  george_ou | 01/03/06
Still wondering how a W2K user can be accused of "stifling" XP or Vista...  Zogg | 01/03/06
Hmmm...can't find anybody saying W2K is best  WiredGuy | 01/03/06
Win2K works with VS.Net 2003  George Jay | 01/04/06
Tons of people make the claim that Win2k is best ever  george_ou | 01/04/06
Well George here is why I think Win2K is the best thing MS eveer put out  Linux User 147560 | 01/04/06
W2K  NonZealot | 01/04/06
Nice one  Richard Flude | 01/02/06
It's official, you are an idiot  NonZealot | 01/03/06
But unregistering the DLL isn't enough.  Zogg | 01/03/06
Only a comment on his idiotic monolithic/spaghetti remark  NonZealot | 01/03/06
Apparently, Hardware DEP is a good fix, if your CPU supports it.  Zogg | 01/03/06
Hardware DEP  NonZealot | 01/03/06
You are suggesting that WMF files execute data *on purpose*.  Zogg | 01/03/06
Executing data on purpose  NonZealot | 01/03/06
Funny  Richard Flude | 01/03/06
Your rebuttals are pathetic  NonZealot | 01/03/06
Even more embarassing news for you  NonZealot | 01/03/06
Took the words right out of my mouth....  LuckyCharm | 01/04/06
Hmmm, what about the ignorant home user?  LGLisle | 01/03/06
Security 'Expert'  bpick_z | 01/03/06
You are ignoring....  cburgess | 01/04/06
ms cherleaders???  axe's worst nightmare | 01/02/06
Probably being drowned out by the linux cheerleaders.  osreinstall | 01/03/06
Sites that allow graphic uploads?  ericha8 | 12/30/05
We are too familiar with this  michael_t | 12/30/05
I found the problem and corrected it  george_ou | 12/30/05
Pay no attention to that kind of grumbling  ericha8 | 12/30/05
Thank you  george_ou | 12/30/05
De nada  ericha8 | 12/30/05
Great point on Wikipedia  george_ou | 12/30/05
Xen and XenSource  D. T. Schmitz | 12/31/05
Implimentations that don't nuke...  cburgess | 01/04/06
knoppix-std.org  rcb_z | 01/04/06
yes george just focus on your own grumbling,,, you have to make a living...  michael_t | 01/04/06
Looks like a dutch cracker is using the vulnerability  tombalablomba | 12/31/05
looks like  axe's worst nightmare | 01/02/06
Indeed  tombalablomba | 01/02/06
Why not just unassociate the files?  scottv_z | 12/31/05
Why not just unassociate the files?  axe's worst nightmare | 01/02/06
WMF just badly designed???  tombalablomba | 01/02/06
WMF is very old  george_ou | 01/02/06
Does that actually matter???  tombalablomba | 01/02/06
Vista will not have this problem for many reasons  george_ou | 01/02/06
it's part of the format  tombalablomba | 01/03/06
XP too  hawkeyeaz1 | 01/03/06
No, it was never claimed.  george_ou | 01/03/06
Admin users  cburgess | 01/04/06
"Vista rewrites a lot of this stuff" ?????  PB_z | 01/03/06
rewrite  0369 | 01/04/06
The problem is user permissions  Paul Wallbank | 01/02/06
You're mostly right  george_ou | 01/02/06
Overrated  toadlife | 01/03/06
Root/Admin users  Paul Wallbank | 01/03/06
No need to wait for Vista  NonZealot | 01/03/06
Does OpenGL work without admin rights?  Zogg | 01/03/06
Seems to on my machine  NonZealot | 01/03/06
OK, I'll try that OpenGL game too.  Zogg | 01/04/06
Nope, no luck.  Zogg | 01/04/06
Except that some actions require "root" privileges.  Zogg | 01/03/06
WinXP requires Power User permissions...  cburgess | 01/04/06
Disagree  NonZealot | 01/04/06
How is this Microsoft's issue to fix?  ye | 01/03/06
(Unofficial) patch for vulnerability  Steve Z | 01/02/06
Yes, that's a nice one  george_ou | 01/02/06
ISC: Do these two things for now--at once  dpnewkirk | 01/03/06
Ilfak Guilfanov's blog - patch download location  ~doolittle~ | 01/03/06
working patch download locations  ~doolittle~ | 01/03/06
Have you tried Ilfak Guifanov's Patch  wbarnette@... | 01/03/06
Ilfak Guifanov's Patch. period.  mados123 | 01/03/06
The unoffical patch seems to work  morchant | 01/03/06
Not only that, but it works better  george_ou | 01/03/06
Defense-in-Depth  jmanico | 01/03/06
This shows a disturbing trend...  Sxooter_z | 01/03/06
Interesting to note that...  PlaceHolder | 01/03/06
What might DEP break?  TimC_z | 01/03/06
"Buggy software" happy. (Sorry, couldn't resist...) EOM  Zogg | 01/03/06
Most software work fine  george_ou | 01/03/06
Alcohol 120% Breaks under DEP  PlaceHolder | 01/03/06
Microsoft recommendation  dlluce | 01/04/06
How to reregister  NonZealot | 01/04/06
No need to gloat  rcb_z | 01/04/06
rcb?  Linux Guy 1000 | 01/04/06
incoherent  rcb_z | 01/05/06
No problems here  Troll Hunter | 01/04/06
2 possible reasons  pkrdk | 01/04/06
Why a picture executes code  NonZealot | 01/04/06
WMF flaw known since 2001  cburgess | 01/04/06
Do you have a Reference? (nt)  cbihler | 01/04/06
References not open to the public  cburgess-iPALADIN | 01/09/06
thank you  rmjivaro | 01/04/06
Too much to Take  richardebyrd | 01/05/06
heres another point of view  Network Support | 01/05/06
Did this message make it in?  Brakiss | 01/05/06

What do you think?

SponsoredWhite Papers, Webcasts, and Downloads

Click Here

Recent Entries

Top Rated

    advertisement
    Click Here

    Archives

    ZDNet Blogs

    White Papers, Webcasts, and Downloads

    SmartPlanet

    Click Here