Showing posts with label World of Warcraft. Show all posts
Showing posts with label World of Warcraft. Show all posts

Friday, February 27, 2009

World of Warcraft's Poor Security

By default, World of Warcraft fails to run properly under a limited account. The game will start and run fine, but no settings are saved (e.g. UI, setup, or addon changes) because everything is stored under the folder that WoW is installed (Program Files) which should be read-only. A reasonable work-around might be to make some of the subfolders under the WoW folder writable (such as WTF, Screenshots, etc.).

A new failure of WoW security design was recently added with the game launcher. On every single run, the game launcher seems to randomly generate a brand-new exe at some random place on your computer. Firewalls are about as thrilled by this as I am. It defeats any kind of whitelist security, and a game has no business complicating computer security like that.

Additionally, there is an uncommon trick World of Warcraft uses that blocks other programs from inspecting its process in memory. This can also prevent other programs from forcefully shutting it down. The technique has to do with Window's Discretionary Access Control List (DACL). It is related to the security tab you see on Windows XP Professional that defines who has what access to various parts of your computer.

A processes's security limitations can be changed dynamically during runtime by the process itself, and that's exactly what WoW does. A process changing it's own security at runtime is not particularly valuable because any other process with equal or greater security access can change it back. It's also meaningless when running as an administrator because every process automatically has all access to everything.

None of this is new. People have known that WoW does for years now. I even ran across a small bit of code specifically to adjust the security of WoW. I've updated it bit to simply remove WoW's security settings then exit.

I'm new to this whole DACL business, so I might have missed some things.

Warning: Any use of this information, whether benign or malicious, might result in having your World of Warcraft account terminated. Take heed, lest you anger the Blizzard gods.

Sunday, February 22, 2009

Locking down my Windows XP machine

During my last Windows XP re-install, I pondered for a moment if I should use proper computer security by running within a limited user account. Eventually my desire for convenience, and realization that I wield the raw power of the OS far too much, kept me with a default admin account.

I’ve never really needed much protection. I can count on one hand the number of viruses my antivirus has found on my computer this decade. Only one of those tricked me to execute it. Over time, my weekly antivirus false-positives caused me to disable the nightly scans.

No, my fear of unwanted programs wasn’t enough to drive me into putting a lock on that admin door. It turned out to be the fear of programs I do want that pushed me to the switch. It started with World Of Warcraft’s Warden, and culminated with Mirror’s Edge’s SecuROM. Invasive DRM and rootkits concern me far more than any virus.

But I’m glad I didn’t try to live in the limited account back then. It would not have lasted very long before I would be sick of always having to switch to an admin account whenever I wanted to burn a CD, change anything in the control panel, install anything, or modify system or program files. There is the "Run as…" option, but that often leaves changes made to the account being "run as", instead of the current account.

Luckily my Linux experiences in the last year taught me that you can have the best of both worlds with a program like sudo. My searches for something like that for Windows led me to 3 open source solutions.

  • SudoWin (Sudo for Windows): This is repeatedly recomenneded by readers of Atwood’s Real Ultimate Programming Power blog.
  • suDown (or sudoWn): Tried briefly before running across…
  • SuRun: Seems to be the new kid on the block. I have been using this one for several weeks now, and so far I love it.

For better or for worse, I disabled having to actually enter a password. This was mainly due to my need for some programs to always run with admin access (especially at startup). For everything else, I get a nice popup that just needs an OK click, not much different from Vista’s UAC. Update 1: The new v1.2.0.6 lets you skip password input for your white-listed apps if you want.

Update 2: After using SuRun even longer now, I’ve only found 2 problems with it: (1) When browsing explorer as administrator, any changes you make don’t get reflected in the file browser (you have to manually refresh to see), and (2) It sometimes takes several seconds to open new Windows explorer windows. In general big delays have occurred for any kind of file system browsing, or low-level associated functions. For example, mounting/unmounting a TrueCrypt volume can take up to 10 seconds, and has even failed with a strange error on unmounting at times.

Update 3: Found an insightful thread where someone discussed with the SuRun creator about some aspects of the program.

It’s kinda comforting to see Process Explorer unable to view any details of admin processes. I know that Warden and SecuROM* will be hitting the same roadblock.

However I ran across something a little disturbing with World of Warcraft the other day. Process Explorer was unable to view details of the Wow.exe process, as if it was running as admin without my knowledge.

To be continued… * I’m aware that SecuROM has been known to install a service, thus always granting it admin access, but I’ve kept a watchful eye on my services and haven’t noticed anything yet.

Thursday, January 29, 2009

Stupid Dragon

Ever since patch 3.0, a terribly annoying dragon resides in the World of Warcraft login screen. Every couple of minutes it lets loose an obnoxious roar.

You are sure to always find at least one active thread in the WoW forums focusing on this terrible design flaw. But it astounds me that the replies are mostly to tell the poster to STFU, or suggest half-baked solutions to what is the real problem: a stupid dragon. For those of you that find the 'whiners' more annoying than the dragon, I recommend these macros you can play every time you run across one of those threads:

/script PlaySoundFile("Sound\\Ambience\\GlueScreen\\Wrath_Login_1.wav")
/script PlaySoundFile("Sound\\Ambience\\GlueScreen\\Wrath_Login_2.wav") 
/script PlaySoundFile("Sound\\Ambience\\GlueScreen\\Wrath_Login_3.wav") 
/script PlaySoundFile("Sound\\Ambience\\GlueScreen\\Wrath_Login_4.wav")

For those of you who would rather spend time getting rid of the roar, the fix turns out to be terrifically easy.

Download this file and put it into your World Of Warcraft/Data folder to shut the dragon up.

How this works (I think): When WoW needs a resource (a sound, graphic, etc.) it checks the name indexes found in the various MPQ files. If two MPQ files contain the same named resource, it picks one of them (probably from the last file in alphabetical order). So this MPQ file essentially replaces those 4 sound resources above with empty sounds.

Don't believe me? You can use Ladik's MPQ Editor to take a look at the MPQ file.

I cannot take credit for this hack. Someone in the WoW forums posted this fix in a thread I am now unable to find again.