Why All The Hype About 0day? - Michael Sutton's Blog -
Why All The Hype About 0day?

The term "0day" has the power to make sys admins cringe. It the greatest fear of anyone tasked with protecting critical assets - a problem without an easy solution.

Why? No, seriously why? 0day is a neon sign in the middle of Times Square. Once people start talking about it (at which point it's really not 0day), everyone is aware of it. Admins are scrambling to implement workarounds and slamming vendors to demand patches (as they should). How many angry phone calls do you suppose that Microsoft received during HD Moore's Month of Browser Bugs?

The point is, that new vulnerabilities draw attention. The ones that scare me are the old ones, the ones that have been forgotten about. Targeted attacks require specific vulnerabilities but many, if not most attacks, choose not to discriminate. The attacker simply wants control of as many machines as possible to send spam, phish for credit card numbers, etc. In this case, any old vulnerability will do, so long as a multitude of machines remain unpatched.

I've always believed that Internet is plagued with unpatched machines to an extent far greater than most people realize. Today, I set out to prove this to myself. The challenge in doing this is to find a way to identify vulnerable machines without attacking them. I want to prove a theory but I don't want to do damage in the process (note: no web servers were harmed during the filming of this blog). Fortunately, web applications provide us with a unique means of identifying vulnerable applications. Due to the fact that search engines archive and index the content served by web apps, if we can identify a unique signature within a vulnerable application, we can locate vulnerable servers without ever needing to connect to them. Johnny Long created somewhat of a cult following doing just this with his Google Hacking Database.

My first challenge was to identify a reasonably nasty vulnerability for which a patch has been available for some time. Fortunately, I had just the candidate. On December 4, 2005, MediaWiki, a popular open source wiki project, announced a remote PHP code execution vulnerability. I knew it well as I was using a server that was vulnerable.

Challenge number two involved identifying a unique string that could be used to locate vulnerable servers. According to the vendor advisory, all versions of MediaWiki in the 1.5.x branch prior to 1.5.3 are vulnerable. Fortunately, MediWiki made this challenge trivial as by default, it includes a page to identify the running version. The Special:Version page identifies not only the version of MediaWiki, but also the versions of PHP and MySQL that are used to support the application. Perfect. So long as servers exposed this page, I had the signature that I was looking for.

Next, I needed to craft a search term to accurately identify the signature. I wasn’t able to find a 'magic bullet' that would find exactly what I was looking for, so I settled on the following collection of terms:

  • "This wiki is powered by MediaWiki" "1.5"
    • phrases present on the Special:Version page
  • allinurl:special version index php
    • words present in the URL of the Special:Version page for a 'typical' installation
  • inurl:wiki/MediaWiki
    • a portion of a typical MediaWiki URL for any version

Using these search terms with both Google and Yahoo! (better results were ultimately obtained with Yahoo!) I set out to identify vulnerable servers. How many were there? Beats me, I stopped after the first 50. These are 50 publicly accessible servers, wide open to remotely running system commands.

A natural question to ask is, are these servers likely to contain sensitive information or are they just personal servers which we wouldn't expect to have strong security? Could they provide an attacker with a gateway into a significant network or are they a dead end into someone's home network? Let's take a look at some of the 50 organizations that participated in this impromptu survey to answer that question:

  • Four US colleges
  • One British University
  • One Viennese university
  • One Canadian university
  • One Ivy League school (on a site hosted by the computer society no less)
  • An Irish human rights organization
  • A project for building Firefox extensions
  • A New York based mobile software developer
  • An entertainment company traded on the NYSE

While some of the vulnerable sites were small sites and likely don't have adequate resources to ensure adequate security, others were significant organizations that should absolutely have stronger security practices in place.

The point is that identifying vulnerable servers is a trivial task. In some cases it can be done without even needing to visit the site in question. Why are spam and phishing attacks so prevalent? We're making it far too easy for them.

- michael


Posted 09-01-2006 11:29 AM by erik.peterson

Comments

Itchy wrote re: Why All The Hype About 0day?
on 09-03-2006 5:35 AM
Is it possible that some of those servers are intentionally open honey-traps? Isn't that part of the security profile for large institutions like universities?
Zeke wrote re: Why All The Hype About 0day?
on 09-03-2006 10:32 AM
How many of the vulnerable sites you identified would upon a closer look turn out to be honeypots?
Sergio wrote re: Why All The Hype About 0day?
on 09-03-2006 6:50 PM
You say it's easy to find sites vulnerable to attacks because of not updating their software, but what exemple people get when it has been almost a month since the last exploit for Hotmail, still unresolved? And we are speaking about a vulnerability prone to being abused to get access to thousands of Hotmail accounts. It implies spamming a lot of people, and to have some of these people follow a link, but when has this been a problemn for spammers?
erik.peterson wrote re: Why All The Hype About 0day?
on 09-05-2006 8:21 AM

Sergio - You highlight the security dilemma of utilizing an application service provider. While you hand off the burden of needing to constantly patch your own software, you trust that someone else will do it for you. If that doesn't happen, your overall security has diminished and not improved as you've now lost control of the ability to force good security. Fortunately, in my experience, providers such as Yahoo!, Hotmail, Google, etc. for email are very responsive when applying security fixes, so long as they know about the issue. They have to be, they're reputation depends upon it.

erik.peterson wrote re: Why All The Hype About 0day?
on 09-05-2006 8:30 AM

Itchy/Zeke - You pose a fair criticism. I looked back at some of the servers in question. Based on the fact that the servers are running a minimal number of additional services/applications, I can be reasonably confident that they are legitimate production servers as opposed to honeypots. However, I'll be the first to admit that a well designed honeypot, doesn't look like one.

LonerVamp wrote re: Why All The Hype About 0day?
on 09-06-2006 4:41 PM

Not sure if you were really posing the question, but why does a 0day make me cringe? Because someone may have been using it before a patch was released, or may start using it quickly. Imagine the impact of Blaster or Slammer (a worm, e.g.) had they been released before any patches were put into place. Or imagine if one of those "0day" MS Office holes had been used in a targeted attack on your C-levels.

But you are correct, old vulnerabilities are as scary or even more scary and lots of servers are out there that are vulnerable to something or other. Sadly, not everyone admin keeps up with the security news or is able to patch in a timely manner due to the myriad other tasks that we tend to have on our heads. Sometimes, some technologies or software aren't even thought about... "We use a third-party forum that is 3 years old...? Why didn't the web devel team tell me that?!? When did we get a wiki...? Huh? I have to patch my web apps too??"

Such is the world we live in now. :)

TrackBack wrote http://it.slashdot.org/article.pl?sid=06/09/01/2146243&from=rss
on 09-24-2006 1:30 AM