Neolithic Windows security hole alive and well in Windows 7

Back when Microsoft made software with stone knives and bearskins, they included a major security hole. It's still there today.

By sjvn  17 comments

One of the reasons I've never liked Windows is that it was never made to deal with the security problems of working in a networked, multi-user world. As a direct result, Windows has been fundamentally insecure for more than a decade. Even so, I was surprised to find that there's a 17-year old security hole that's been in Windows since NT and it's still present today in Windows 7.

Wow. Even I'm shocked by this latest example of just how rotten Windows security is. It just reminds me again though that while Microsoft keeps adding features and attempting to patch its way out of security problems to Windows, Windows' foundation is built on sand and not on the stone of good, solid design.

Tavis Ormandy, a Google security engineer, uncovered this new 'old' hole while digging around Windows. Ormandy found that way back in 1993 in Windows NT that Windows included a 'feature' to support BIOS service routines in legacy Windows 16bit applications.

Think about that for a moment this 'feature' was put in to support software that was already out of date in 1993. Guess what? It's been in every version of Windows since then up to, and including, Windows 7. Honestly, is there anyone on Earth who's running Windows 3.1 applications on Windows 7? Or, Vista? Or, XP... you get the idea.

Be that as it may, the code's still in there. An attacker can trigger the vulnerability through a variety of means. The end-result is, surprise, another Windows machine that's totally owned by the attacker. Once in charge, they can vacuum down your files, install malware, and all the other usual tricks.

A security company called Immunity has already released an add-on to its program Canvass that can be used to show if your computer is vulnerable to attacks using this method. You don't need to worry with that though. If you're running 32-bit Windows, congratulations, you can be successfully attacked.

The important point about Immunity's work is that if they can build a test that demonstrates the problem, a criminal hacker can build a program that will exploit it. It's only a matter of time.

There's no patch for this. You can, however, block it by switching off your computer's MSDOS and WOWEXEC subsystems. Unless you're running pre-historic 16-bit MS-DOS or Windows programs you won't see any problems.

How you do this varies from one version of Windows to another. The basic idea though is always the same: you want to turn off two services: CMDLINE, for MS-DOS applications, and WOWCMDLINE for 16-bit Windows programs.

In Windows XP, you do this by running the Registry Editor (Regedt32.exe) from Window's Run command. Before doing this though, or making any other change to a Windows registry, you should make a backup of the registry. That done, get regedt running, and head over to the following registry entry:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\WOW

Once there, find the CMDLINE and WOWCMDLINE items and right click on them. This will give you the option to edit their value. Choose this and add a character in front of their values. You could, of course, just delete them, but this way, if for some reason, you ever do need to run an obsolete program you can just zap the character and they'll be back and ready to go. These are dynamic changes so once you've exited regedt you won't need to reboot your computer for the changes to take effect.

Congratulations. You're now immune to attacks using the latest, but oldest, Windows security hole.

17 comments

    Anonymous 2 years ago
    I run Quattro pro for Windows (3.1) most days and it is far superior to Excel or Scalc for what I need to do so be careful what you mock
    Anonymous 2 years ago
    Windows Vista and 7 drop 16-bit support, and even things run from the command prompt would have to be started from a command prompt stated in Administrator mode to gain this access. This is flat out WRONG information, and scaremongering. Microsoft fixed the problem by dropping 16-bit support entirely!
    Anonymous 2 years ago
    LMAO. This is incredibly effective. way back in the day I watched a friend slap up mp3s with the id3 tagger overflow exploit that then attacked through this and total took admin rights on anyone who played these songs. With any other buffer overflow exploit from any windows software and this unpatched (and now well documented) problem I showed my 12 year old daughter how it can be used to take over your computer. so that with an older version of firefox, flash, acrobat reader, or any of a number of other programs can spell the end for you regardless of firewall and security settings. Next lets find some web designer with crappy security and use and SQL exploit to take this sillness global... I'm kidding, but damn, it's amazing to me the stupidy of your average reader because everything I've said I could do and would have done before I got honest :D
    Anonymous 2 years ago
    SJVN, I thought this was a security column, not a "bash Microsoft and push open source" column. You started out good but you returned to your old ways, old habits are hard to break.
    Anonymous 2 years ago
    Okay, this one is bad -- but I don't see the point in stressing how old it is, Steven. What matters is how much older it gets before Microsoft fixes it, yes?After all, that's what we (the Linux community) said last year when word got out of a security hole that had been in the Linux kernel, undiscovered, for multiple years. The Linux hole got closed within about 2 days, I seem to recall. Let's see how MS compares.
    Anonymous 2 years ago
    Ok let me start with the hole described in this article. Ok so if this is a problem, and i am not saying it is not, i want to know how many viruses, trojans, and so on that have taken advantage of it and caused havoc in anyones system?I am personally not using dos or 16bit apps that i know of, but that does not mean i do not have a need to do so. In those cases, they are most likely not internet related or have any need to access the internet. Those programs can either run in virtual environments, or with windows systems that have the internet shutdown or no access to the internet.IE on the other hand is well known for having too many bugs, let alone holes that allow invasion from the outside. Even if you remove IE or do not use IE, it is still in your system as part of Windows Explorer. Yes, i tell everyone not to use IE, unless the program or site they are accessing does not work with Firefox, or other Browsers of your choice. Also, IE is available for Linux systems too.For those of you that may not know, toolbars are one of your greatest holes in your system, regardless of what OS you are running or browser. toolbars are a form of you giving permission to access your system and everything you do. Get rid of them all as it is most likely you do not use them anyway. Just think of all the extra space you will have on your browser viewing again.Back to windows, there are a number of programs running on your system that are open doors for MS to access your system and anyone else that knows of them and how to access them. ctfmon, and wga are both access points to your system as well as automatic updates. Close the holes and turn them all off. You do not have to believe me, check them out for your self. Make sure your remote access is turned off too.Windows also offers another door with the automatic login as an administrator rather than a user. If they changed this process to the user ID to be a limited user for daily and most operations you would close the doors on many potential administration loop holes or opportunities if something might attempt to get into your system. Setup a separate ID as an admin ID with a password that is strong and you will remember. Then change your user ID to a limited user. This will create a huge additional protection. Linux does not have this issue, because you start out as a user, rather than an administrator and only go into root privileges for those functions requiring it and once done you are back running as a user. Just a few thoughts on security issues.randy
    Anonymous 2 years ago
    I have a very nice CAD package that is no longer published, and it was developed back in the 16 bit era. Once you learn one CAD package, they tend to be quirky enough that you don't change if you can avoid it. Being able to run Windows, over a free personal VMWare, lets me run Drafix, even though WINE doesn't support 16 bit apps. BTW, there are MANY business still running DOS apps, as in PC DOS / MS DOS. Believe it or not ...
    Anonymous 2 years ago
    The best way to get Microsoft's army of PR boys and girls to pounce on an internet post is to claim that Linux may do something that Microsoft cannot.There's a name for this in the "PR industry", forgotten what it is, it is not, however, 'shilling'.
    Anonymous 2 years ago
    I take offense to the "stone knives and bearskins" comment. :P don't associate such awesome things with an entity such as Microsoft ;)
    Anonymous 2 years ago in reply to Anonymous
    Agreed, mixing Microsoft in with a quote from Star Trek (Spock, TOS "The City on the Edge of Forever") is totally inappropriate.
    Anonymous 2 years ago
    That's interesting - the CMDLINE and WOWCMDLINE values don't occur on my Win 7 ultimate WOW reg key.
    Anonymous 2 years ago
    MS empire caught with their collective pants down. And yet... despite running Linux in all my computers, I have to keep a Windows partition in one computer. Oh, those Windows games, they are so fun and shiny...
    Anonymous 2 years ago in reply to Anonymous
    Can you name me an operating system or a browser that has no security holes? MS might get a bad wrap every now and then.. but I would attribute that to the fact that a lions share of the worlds user base uses windows.. If linux has a security hole (and there are plenty) would the world holler and scream? They usually just silent patch it up whenever the next volunteer has time. How about Chrome and FireFox? What about OSX? If 90% of the world used linux, I'd be even more afraid.. Who would close up all those holes and how would you apply those patches? How can you trust anything? I know many people from MS (and I don't work there for the record) but I can say that they do take security seriously.. How could they not?I don't like the emotionally charged context of this article that talks about proper design. What is proper design? Does the author know anything about operating systems? What would be a proper design? Back it up with solutions and suggestions. How would *you* design it differently? It must be super easy since a very popular monolithic kernel was written by a college kid right?
    Anonymous 2 years ago
    Since Microsoft supports so much software, it doesn't surprise me to support older featuresAnyways, this supposed security hole is most effective on win xp and on win 7 or vista, the damage is much mitigated. This hole is overexaggerated. There are other sources that indicate that while the hole exists, it doesn't do any damage on a newer edition of internet explorer. All software have security holes and it is good that we find them. However, why do windows security holes get so much reputation? Because so many people hate the windows platform with their lives. Internet explorer is a good browser for the common people. Windows 7 is a fantastic operating system.(Much more performance than xp on a multicore system. Let's not forget that folks.
    Anonymous 2 years ago in reply to Anonymous
    The *support* in question only shows that Win 7 is not a complete rewrite, as many folks claim, but is again yet another rehash of the same tired old poorly designed crap.Realistically, no one who is still using Win 3.1 software is trying to use in on Win 7. (Nor were any of those six people trying to run it on XP, either.) What this means is that the only thing being supported here is a vector to compromise the security of the OS, and for a host to be completely P0wnd.Folks dislike Windows because it's riddled with security holes, has poor interface design, is a bloated memory hog, and doesn't provide a good user experience. Windows has the reputation it has *earned*. NOT all software is implemented with poor security design. (Not even all Win-based software is written with poor security design.) You simply take for granted that that is the case because it's so common that Windows-based software is of poor security design. Your expectations have been beaten into non-existence because poor practices are so commonly the norm on Windows -- not because nothing could actually be done about it...Windows 7 is NOT a 'fantastic' operating system. It just happens to suck less than XP, so by comparison it looks good. ('Better than XP' isn't exactly a high bar...)Internet Exploder is a terrible browser. It's slow. It's bloated. It doesn't render CSS in a standards compliant manner. Active X is a security nightmare. It's a mess. The 'common people' to whom you refer would all be far better served by an open-source browser like Firefox, or Opera, or Chrome. (Or, Safari, or Camino, or Konqueror, or Gecko for that matter...)
    Anonymous 2 years ago in reply to Anonymous
    This article is a total exaggeration! This issue is really not a big deal! Windows computers are so full of insane security holes, it is ridiculous. If you look at how many ways you can be owned by foreign spy agencies, the Russian mafia, and every crock on the internet - this really isn't important at all. These massive, gaping holes are so abundant, that poor Sparkie didn't even realise that this 16-bit BIOS Windows kernel hole is completely different from the ActiveX Internet Explorer hole that Google users were owned by! If you're using Windows, then even if your using a firewall, anti-virus, etc., there are such huge holes that you should already assume you have been owned.
    Anonymous 2 years ago in reply to Anonymous
    Let me get this straight. Windows security issues get so much press because everyone hates Windows? It has nothing to do with the fact that Windows has over 92% of the market share does it (http://marketshare.hitslink.com/operating-system-market-share.aspx?qprid=8).Do you really expect the focus to be on the dozen's of OS's that get that remaining 8%? Even small vuln's in Windows can affect a huge number of people.Sure, Windows has some good points. Otherwise it wouldn't have 92% of the market share. But with that success comes focus. If they can live up to it, they don't deserve to keep it.

      Add a comment

      Post a comment using one of these accounts
      Or join now
      At least 6 characters

      Note: Comment will appear soon after you have activated your account.
      Obscene/spam comments will be removed and accounts suspended.
      The information you submit is subject to our Privacy Policy and Terms of Service.

      ITworld LIVE

      SecurityWhite Papers & Webcasts

      White Paper

      Overcome Top 7 Admin Challenges of Active Directory

      As Active Directory's role in the enterprise has drastically increased, so has the need to secure the data. Gain insight on creating repeatable, enforceable processes that reduces administrative overhead and enables robust, customizable reporting and auditing capabilities. Brought to you by NetIQ.

      White Paper

      Insiders Can Ruin Your Company. Take Action.

      Did you know that 80 percent of threats to an organization come from the inside? The threat from insiders is often overlooked in organizations worldwide. This white paper from NetIQ, discusses key technology solutions that help to prevent and detect insider threats.

      White Paper

      Top Solutions and Tools to Prevent Devastating Malware

      Custom malware frequently goes undetected. According to Forrester Research, the best way to reduce risk of breach is to deploy file integrity monitoring (FIM) tools that provide immediate alerts. This white paper has been brought to you by NetIQ, the leader in solving complex IT challenges.

      White Paper

      Streamline Compliance and Increase ROI

      Streamline, simplify, and automate compliance related activities; especially those that impact multiple business units. This white paper from NetIQ, outlines solutions that will help your business gain the maximum return on investment possible while aligning your compliance programs.

      White Paper

      X-Ray of the PCI Process-4 Proactive Steps

      This white paper from Forrester Research Inc., helps break PCI into understandable components. Security and risk professionals will gain knowledge and insight into creating a compliant and secure IT environment. Follow these four proactive steps now before your next audit. Brought to you by NetIQ.

      See more White Papers | Webcasts

      Ask a question

      Ask a Question