XnView crashes with *.wmf-exploit-image

Bugs found in XnView Classic. Please report only one bug per topic!

Moderators: helmut, XnTriq, xnview

Post Reply
bloodflash

XnView crashes with *.wmf-exploit-image

Post by bloodflash »

Testcase:
http://www.heise.de/security/dienste/br ... wmfexp.php

This URL loads a Test-Image for the Windows-WMF-Vulnerability from the german IT-mag "c't".
This image forces XnView to crash immediatly on my W2kSP4-System.
Danny
Posts: 578
Joined: Sat Sep 04, 2004 5:09 pm

Post by Danny »

Well, in this case, that's better than executing the embedded code at least.
Guest

Post by Guest »

But some users won't recognize the reason. And when a similar image is saved in the XnView standard-startup-folder such a user can't use XnView any more!
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Post by helmut »

Danny wrote:Well, in this case, that's better than executing the embedded code at least.
Does XnView crash before executing the code or after? (Maybe a dumb question, I'm not deep in the WMF exploit discussion).
ckit
XnThusiast
Posts: 2583
Joined: Tue Feb 17, 2004 1:11 am
Location: QLD, Australia
Contact:

Post by ckit »

None of you, should be discussing this until Microsoft has released their patch on Tuesday 10th Jan.

Win2000 users:
From command line, type "regsvr32 -u c:\winnt\system32\shimgvw.dll"
and press Enter any other bugs will have to wait for now.
AMD Ryzen 3 3300X 3.8Ghz, 16Gb DDR4, RX6600XT with Dell U2520D at 2560x1440@60Hz scaling 125%
Win11 x64 24H2, Hard Disk Sentinel Pro, MS PowerToys, Process Lasso Pro and Wintoys
Guest

Post by Guest »

Code: Select all

regsvr32 -u %windir%\system32\shimgvw.dll
Does not help. At least not on my W2K system. The German magazine c't has published a test for this exploit (which will run calc.exe) and calc.exe is executing when opening the test file with XnView (even after running the above line).

IrfanView simply complains about an invalid file format. I will switch to IrfanView until this has been solved :)
User avatar
robc
Posts: 164
Joined: Mon Nov 14, 2005 12:53 pm

Post by robc »

It's obvious that it's no use unregistering the DLL in this case: doing that just disables standard opening and processing of a WMF file saved on a disk, if you've associated image files with other applications than Windows Picture and Fax Viewer, the result depends on that application's behavior. The flaw lies in gdi32.dll, which is at the core of the Windows graphics subsystem, so any and all apps using standard APIs for WMF processing (thumbnailing, indexing, opening etc.) may be vulnerable... not to speak of the fact that browsing to a page containing a malicious WMF may be enough to get hit, since of course the browser doesn't use that DLL to render WMFs.
Guest

Post by Guest »

how do u stop it? firefox seems to open wmf for me in wmp. :( could a pac file work, going to options>file types and removing any thing that opens wmf?
User avatar
Drahken
Posts: 884
Joined: Sun Apr 10, 2005 4:29 pm

Post by Drahken »

You can use a PAC file to block any file with the .wmf extension, although that won't help if they rename the file to "worm.jpg" or "worm.png" or some such.

Go to about:config and search for "ask", you should find 3 entries:
browser.helperApps.neverAsk.openFile
browser.helperApps.neverAsk.saveToDisk
browser.helperApps.alwaysAsk.force

Edit the openFile one and make certain to remove any wmf entries. Now add WMF to one of the other 2 (always ask is safer, but saveToDisk should be safe as well).
Oh the feuhrer, oh the feuhrer, oh the feuhrer's nipples bonk!
Post Reply