<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Praetorian Prefect &#187; Web Site Defacement</title>
	<atom:link href="http://praetorianprefect.com/archives/category/web-site-defacement/feed/" rel="self" type="application/rss+xml" />
	<link>http://praetorianprefect.com</link>
	<description>Information security, a little slower...a little deeper</description>
	<lastBuildDate>Thu, 29 Jul 2010 16:38:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Newsweek Reports Zombie Invasion</title>
		<link>http://praetorianprefect.com/archives/2010/06/newsweek-reports-zombie-invasion/</link>
		<comments>http://praetorianprefect.com/archives/2010/06/newsweek-reports-zombie-invasion/#comments</comments>
		<pubDate>Mon, 14 Jun 2010 23:12:03 +0000</pubDate>
		<dc:creator>Prefect</dc:creator>
				<category><![CDATA[Web Site Defacement]]></category>
		<category><![CDATA[konami code]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=4198</guid>
		<description><![CDATA[Newsweek.com becomes the latest in a <a href="http://konamicodesites.com/">long list of sites</a> that will reveal an Easter egg if you enter the Konami Code (↑, ↑, ↓, ↓, ←, →, ←, →, B, A, enter) correctly.]]></description>
			<content:encoded><![CDATA[<p><a href="http://ptn-images.s3.amazonaws.com/zombie1.jpg"><img src="http://ptn-images.s3.amazonaws.com/zombie1-150x150.jpg" alt="" title="zombie1" width="150" height="150" class="alignleft size-thumbnail wp-image-4202" /></a></p>

<p>Newsweek.com becomes the latest in a <a href="http://konamicodesites.com/">long list of sites</a> that will reveal an Easter egg if you enter the Konami Code (↑, ↑, ↓, ↓, ←, →, ←, →, B, A, enter) correctly. The Konami Code is a cheat code that appeared in <a href="http://en.wikipedia.org/wiki/List_of_Konami_code_games">many of Konami&#8217;s video games</a>, starting in around 1986 (my favorite places to use it were Contra and Life Force, 30 lives FTW). Ostensibly this is probably something that was included by a developer unbeknownst to the powers that be at Newsweek, similar to an incident that happened <a href="http://praetorianprefect.com/archives/2009/04/now-i-will-believe-that-there-are-unicorns/">at ESPN involving unicorns</a> last year.
<br /><br /><br /><br /></p>

<p><div id="attachment_4205" class="wp-caption alignnone" style="width: 706px"><a href="http://ptn-images.s3.amazonaws.com/konami_newsweek.jpg"><img src="http://ptn-images.s3.amazonaws.com/konami_newsweek.jpg" alt="" title="konami_newsweek" width="696" height="832" class="size-full wp-image-4205" /></a><p class="wp-caption-text">Enter Konami code, be warned of Zombie attack.</p></div>
<br /></p>

<p>Buried in a file of other Javascript libraries used by the Newsweek site is the <a href="http://code.google.com/p/konami-js/">Konami Javascript library</a> code written by <a href="http://www.georgemandis.com/">George Mandis</a>. Within <u>http://www.newsweek.com/etc/designs/newsweek/lib.js</u> is the following Javascript, which looks for the keyboard pattern (↑, ↑, ↓, ↓, ←, →, ←, →, B, A, enter) and replaces content on the page when successful as shown:</p>

<pre><code><br />/*
    * Konami-JS ~
    * Modified variable names and obscured (March 31st, 2010), but otherwise intact
    * :: Now with support for touch events and multiple instances for 
    * :: situations that call for multiple easter eggs!
    * Code: http://konami-js.googlecode.com/
    * Examples: http://www.snaptortoise.com/konami-js
    * Copyright (c) 2009 George Mandis (georgemandis.com, snaptortoise.com)
    * Version: 1.2 (1/30/2010)
    * Licensed under the GNU General Public License v3
    * http://www.gnu.org/copyleft/gpl.html
    * Tested in: Safari 4, Firefox 3, IE7 and Mobile Safari 2.2.1
*/

var AdDebug = function() {
    var adDebug= {
            addEvent:function ( obj, type, fn, ref_obj )
            {
                if (obj.addEventListener)
                    obj.addEventListener( type, fn, false );
                else if (obj.attachEvent)
                {
                    // IE
                    obj["e"+type+fn] = fn;
                    obj[type+fn] = function() { obj["e"+type+fn]( window.event,ref_obj ); }

                    obj.attachEvent( "on"+type, obj[type+fn] );
                }
            },
            input:"",
            pattern:"3838404037393739666513",
            load: function(link) {  

                this.addEvent(document,"keydown", function(e,ref_obj) {                                         
                    if (ref_obj) adDebug = ref_obj; // IE
                    adDebug.input+= e ? e.keyCode : event.keyCode;
                if (adDebug.input.indexOf(adDebug.pattern) != -1) {
                    adDebug.code(link);
                    adDebug.input="";
                    return;
                    }
                },this);
            this.iphone.load(link)

                },
            code: function(link) { window.location=link},
            iphone:{
                    start_x:0,
                    start_y:0,
                    stop_x:0,
                    stop_y:0,
                    tap:false,
                    capture:false,
                    keys:["UP","UP","DOWN","DOWN","LEFT","RIGHT","LEFT","RIGHT","TAP","TAP","TAP"],
                    code: function(link) { window.location=link},
                    load: function(link){
                            adDebug.addEvent(document,"touchmove",function(e){
                              if(e.touches.length == 1 &amp;&amp; adDebug.iphone.capture==true){ 
                                var touch = e.touches[0]; 
                                    adDebug.iphone.stop_x = touch.pageX;
                                    adDebug.iphone.stop_y = touch.pageY;
                                    adDebug.iphone.tap = false; 
                                    adDebug.iphone.capture=false;
                                    adDebug.iphone.check_direction();
                                    }
                                    });               
                            adDebug.addEvent(document,"touchend",function(evt){
                                    if (adDebug.iphone.tap==true) adDebug.iphone.check_direction();           
                                    },false);
                            adDebug.addEvent(document,"touchstart", function(evt){
                                    adDebug.iphone.start_x = evt.changedTouches[0].pageX
                                    adDebug.iphone.start_y = evt.changedTouches[0].pageY
                                    adDebug.iphone.tap = true
                                    adDebug.iphone.capture = true
                                    });               
                                    },
                    check_direction: function(){
                            x_magnitude = Math.abs(this.start_x-this.stop_x)
                            y_magnitude = Math.abs(this.start_y-this.stop_y)
                            x = ((this.start_x-this.stop_x) &lt; 0) ? "RIGHT" : "LEFT";
                            y = ((this.start_y-this.stop_y) &lt; 0) ? "DOWN" : "UP";
                            result = (x_magnitude &gt; y_magnitude) ? x : y;
                            result = (this.tap==true) ? "TAP" : result;                     
                            if (result==this.keys[0]) this.keys = this.keys.slice(1,this.keys.length)
                            if (this.keys.length==0) this.code(this.link)
                            }
                    }
    }

    return adDebug;
}

var adDebugContent = function(){
    function render() {
        $("a").attr("href", "#");

        // FEATURE
        var feature = '&lt;article class="feature-area feature-style-wide"&gt;&lt;div class="feature-content"&gt;&lt;header&gt;&lt;span class="byline" property="dc:creator"&gt;MIKE ROBINSON&lt;/span&gt;&lt;h1 class="header header-60"&gt;&lt;a href="#"&gt;ZOMBIES ATTACK!&lt;/a&gt;&lt;/h1&gt;&lt;span class="subhead"&gt;Run for the hills!&lt;/span&gt;&lt;/header&gt;&lt;p&gt;The undead have risen from their graves and invaded large portions of the east coast. Driven only by an unsatiable desire for brains, there seems to be no stopping their ruthless push forward. Residents are advised to barricade themselves in their homes and wait for further instructions. Under no circumstances should the walking dead be allowed in your house.&lt;/p&gt;&lt;/div&gt;'
        $(".feature").html(feature);

        // NEWSWEEK NOW
        $(".newsweek-now .par").html("");
        var nowHtml = "";
        var nowTemplate = '&lt;div class="newsweeknow section"&gt;&lt;article class="stream-item" class="stream-item article-item"&gt;&lt;h2 class="header" property="dc:title"&gt;&lt;a href="#"&gt;${title}&lt;/a&gt;&lt;/h2&gt;&lt;div class="grid-5"&gt;&lt;p class="text" property="dc:abstract"&gt;${description}&lt;a rel="dcterm:source" href="#" class="more"&gt;More &lt;span class="guillemets"&gt;&amp;rsaquo;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;&lt;aside class="grid-2 last"&gt;&lt;a href="/search.html?q=tea+party" class="primary-tag" title="Primary Tag" property="dc:subject ctag:label foaf:primaryTopic" typeof="ctag:Tag" resource="/content/newsweek/tag/politics.html" rel="ctag:means"&gt;Zombies&lt;/a&gt;&lt;span class="byline"&gt;by &lt;span class="author"&gt;&lt;a typeof="foaf:person" property="dc:creator" rel="foaf:publications"&gt;${author}&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;time property="dc:created" pubdate="true" datetime="2010-06-11"&gt;Jun 11, 2010&lt;/time&gt;&lt;/aside&gt;&lt;/article&gt;&lt;/div&gt;';

        for(var i = 0; i &lt; content.now.length; i++){
            var template = nowTemplate;
            var item = content.now[i];

            template = template.replace("${title}", item.title);
            template = template.replace("${description}", item.description);
            template = template.replace("${author}", item.author);

            nowHtml += template;
        }
        $(".newsweek-now .par").html(nowHtml);

        // SPECTRUM
        $(".spectrum h2").html(content.spectrum.title);
        $(".spectrum a").attr("href", "#");
        var spectrumItems = $(".spectrum ul.sidebar-content li");
        var j = 0;
        for(var i = 0; i &lt; spectrumItems.length; i++){
            var element = spectrumItems[i];

            if(j &lt; content.spectrum.viewpoints.length){
                var item = content.spectrum.viewpoints[j];

                $(element).find("h3 a").text(item.title);
                $(element).find("q a").html(item.quote);
                $(element).find("span.source").text(item.source);
                $(element).find("cite.publication").hide();
                j++;
            } else {
                $(".spectrum ul.sidebar-content li").eq(i).remove();
            }
        }
    }

    var content = {
        "now":[
            {
                "title":"The Zombie Invasion Timeline",
                "description":"It was just three months ago that patient zero, a former British citizen living in New York, was identified as the cause of the zombie invasion. While initially considered to be a bad sinus infection, the disease quickly spread after Patient Zero ate the brains of a attending neurosurgeon.",
                "author":"Steven Stone"
            },
            {
                "title":"Fleeing the Zombie Horde: What Are Our Options?",
                "description":"With goverment barricades falling and traditional warfare tactics deemed ineffective, the local populace must now consider the option of fleeing as viable and advised. There are many options depending on an individuals geographical location, however most zombie experts expressly advise against running for the hills without proper preparation. One must take into consideration the hazardous effects natural elements such as rain and cold weather can have, especially in cold winter months.",
                "author":"Dan Alcalde"

            },
            {
                "title":"No End in Sight for Undead Feast",
                "description":"The haunted continue to walk the streets, often heard moaning 'BRAAAAAIIIIIINS!' [paraphrased]. With their unstoppable quest for human brains the undead have shown no signs in slowing down their pursuit or consumption of our most precious organs. A noted chef suggests, 'While zombies will eat any organ, they most definitely have a preference for our soft cranial tissue. It is easily digestible, and once the tough outer skull is removed quite simple to recover.'",
                "author":"Roberto Gonzalez"
            },
            {
                "title":"Go For the Head",
                "description":"Several close combat experts have reiterated how important it is to strike a zombie directly in the head with a large blunt weapon. Only by smashing their brains can you be certain the approaching undead will not rise again and feast on your exposed limbs.",
                "author":"Nicole Barth"
            },
            {
                "title":"Zombies and You",
                "description":"Not everybody reacts the same to the undead. If you, or a loved one, has encountered a zombie please share your experiences in the comments.",
                "author":"Monica Parra"
            }

        ],
        "spectrum":{
            "title":"Zombie Invasion Continues Unabated",
            "viewpoints":[
                {
                    "title":"SUSPICIOUS",
                    "quote":"I don't see how every barricade could fail unless the government meant to let them through.",
                    "source":"Tim Knight"
                },
                {
                    "title":"DECISIVE",
                    "quote":"If we can't be protected then we'll just protect ourselves!",
                    "source":"Mike Robinson"
                },
                {
                    "title":"FLEEING",
                    "quote":"Save yourselves, run now",
                    "source":"Mark Catalano"
                },
                {
                    "title":"HUNGRY",
                    "quote":"Braaaaaains. Braains brains braaaaaaaaains...",
                    "source":"Dan Alcalde"
                },
                {
                    "title":"BITTEN",
                    "quote":"Wow those things bite hard. Oh, I feel funny...",
                    "source":"Andrew Sprouse"
                }
            ]
        }

    }

    return {
        render: render
    } 
}();

</code></pre>

<h3>Finally</h3>

<p>In the case where this happened on ESPN the results were mostly harmless. As explained by developer Keith Lam, the incident <a href="http://keithlam.com/2009/04/28/espncom-unicorns/">was a prank</a>, not an indication that someone hacked into the site (the developer was canned though). It will be interesting to see if Newsweek&#8217;s amusing defacement is the same situation.</p>

<p>If so, the only downside to the ESPN unicorns was that it exposed that there is little control over the production environment at ESPN, it was fairly easily for a developer to sneak something into production without anyone knowing about it. Unicorns are funny, a disgruntled person could come up with things to show on the web site that aren&#8217;t so funny.</p>

<p>But in both cases, these are harmless jokes, so no harm no foul for the most part.</p>

<h3>Update &#8211; 6/15/10</h3>

<p>According to a Newsweek spokesperson it was an internal developer: &#8220;It&#8217;s true that our programmers had a bit of fun and hid the Konami Easter egg in the site. It does not affect the rest of the site&#8217;s functionality. Now that we&#8217;ve all had a laugh, we will be removing it.&#8221;</p>

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/06/going-after-bp/">Going After BP</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/congressional-web-site-defacements-follow-the-state-of-the-union/">Congressional Web Site Defacements Follow the State of the Union</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/umm-techcrunch-defacement-two-in-24-hours/">Umm&#8230;TechCrunch? Defacement Two in 24 Hours</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/techcrunched-techcrunch-the-victim-of-a-defacement/">TechCrunched &#8211; TechCrunch the Victim of a Defacement</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/baidu-com-the-latest-victim-of-iranian-cyberarmy/">Baidu.com the Latest Victim of Iranian CyberArmy</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2010/06/newsweek-reports-zombie-invasion/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Going After BP</title>
		<link>http://praetorianprefect.com/archives/2010/06/going-after-bp/</link>
		<comments>http://praetorianprefect.com/archives/2010/06/going-after-bp/#comments</comments>
		<pubDate>Wed, 09 Jun 2010 20:43:09 +0000</pubDate>
		<dc:creator>Prefect</dc:creator>
				<category><![CDATA[Web Site Defacement]]></category>
		<category><![CDATA[brute forcing]]></category>
		<category><![CDATA[hacktivism]]></category>
		<category><![CDATA[remote file inclusion]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[vpn]]></category>
		<category><![CDATA[xss]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=4050</guid>
		<description><![CDATA[BP continues to be the subject of criticism following the Deepwater Horizon oil spill, and the hacking community appears to be taking exception to some of BP's recent public relations activities in the online arena.]]></description>
			<content:encoded><![CDATA[<p><a href="http://praetorianprefect.com/wp-content/uploads/2010/06/bp.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2010/06/bp-150x150.jpg" alt="" title="bp" width="150" height="150" class="alignleft size-thumbnail wp-image-4055" /></a></p>

<p>BP continues to be the subject of criticism following the Deepwater Horizon oil spill, and the hacking community appears to be taking exception to some of BP&#8217;s recent public relations activities in the online arena. Specifically, reactions to BP&#8217;s having bought the sponsored link for the search term &#8216;oil spill&#8217; seems to have triggered resentment in the form of both reconnaissance work, a Twitter account compromise, and an amusing cross site scripting vulnerability.</p>

<p>In the Reddit case, the method shown and gotchas demonstrated are worth covering, although no actual hack takes place. The XSS demonstrated at the bottom of the post is just creative and funny.</p>

<h3>Twitter</h3>

<p>As widely reported, on May 27th, BP&#8217;s official Twitter account was compromised and the following tweet put up.</p>

<p><div id="attachment_4062" class="wp-caption alignnone" style="width: 558px"><a href="http://praetorianprefect.com/wp-content/uploads/2010/06/bp-twitter-hacked.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2010/06/bp-twitter-hacked.jpg" alt="" title="bp-twitter-hacked" width="548" height="417" class="size-full wp-image-4062" /></a><p class="wp-caption-text">Pick a stronger password.</p></div>
<br /></p>

<p>And while it&#8217;s not a hack, the spoof Twitter account <a href="http://www.twitter.com/BPGlobalPR">BPGlobalPR</a> has garnered some attention (150k followers) as a satirical response to BP&#8217;s actual public relations response. It has gotten enough attention that the real BP has made overtures to the fake account to <a href="http://newsfeed.time.com/2010/06/09/bp-gets-bpglobalpr-to-clean-up-its-twitter/">better identify itself as a parody</a>.</p>

<h3>Reddit</h3>

<p>Last night on Reddit a user skipperdee responded to a post about the BP sponsored link <a href="http://www.reddit.com/r/politics/comments/ccuc1/if_bp_wants_to_waste_their_money_buying_key_words/">as follows</a>:</p>

<p><div id="attachment_4059" class="wp-caption alignnone" style="width: 760px"><a href="http://praetorianprefect.com/wp-content/uploads/2010/06/h08EB2.png"><img src="http://praetorianprefect.com/wp-content/uploads/2010/06/h08EB2.png" alt="" title="h08EB" width="750" height="526" class="size-full wp-image-4059" /></a><p class="wp-caption-text">Reconnaissance</p></div>
<br /></p>

<p>Let&#8217;s walk through his suggestions:</p>

<h4>VPN Login Screen</h4>

<p>Looking at what&#8217;s here, he found what is ostensibly a VPN login screen for some extranet type applications: https://access.bpglobal.com/bp/C/login.html?_targetURL=https://access.bpglobal.com/pkmslogin.form (with what looks like an open redirect).</p>

<p>Down tick one for information security is that it offers only certificate based authentication or alternatively login with a plain id and password.</p>

<p><div id="attachment_4056" class="wp-caption alignnone" style="width: 760px"><a href="http://praetorianprefect.com/wp-content/uploads/2010/06/IDAM_login.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2010/06/IDAM_login.jpg" alt="" title="IDAM_login" width="750" height="360" class="size-full wp-image-4056" /></a><p class="wp-caption-text">https://access.bpglobal.com/help/bpcertExpired.html</p></div>
<br /></p>

<p>A review of this screen (above) however seems to indicate that the user&#8217;s windows login (active directory) is the same as their IDAM login, by referencing the phrase NT ID and password.</p>

<h4>User Names</h4>

<p>Our Reddit user goes on to show off a little Google hacking by demonstrating how to find out the user names of BP employees:</p>

<p><a href="http://www.google.com/#hl=en&amp;q=%22Documents+And+Settings%22+site%3Abp.com&amp;aq=f&amp;aqi=&amp;aql=&amp;oq=&amp;gs_rfai=&amp;fp=dfdf66882bd03aae">http://www.google.com/#hl=en&amp;q=%22Documents+And+Settings%22+site%3Abp.com&amp;aq=f&amp;aqi=&amp;aql=&amp;oq=&amp;gs_rfai=&amp;fp=dfdf66882bd03aae</a>.</p>

<p><div id="attachment_4067" class="wp-caption alignnone" style="width: 646px"><a href="http://praetorianprefect.com/wp-content/uploads/2010/06/bp_mydocs.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2010/06/bp_mydocs.jpg" alt="" title="bp_mydocs" width="636" height="111" class="size-full wp-image-4067" /></a><p class="wp-caption-text">Username equals Warna3.</p></div>
<br /></p>

<p>Because a number of BP employees use the built in MS Word footer option for file name and path, their user names have been exposed in publicly released documents. Now that a number of usernames can be enumerated, with a brute force password cracker its off to the races for an attacker.</p>

<h4>Documents</h4>

<p>He then goes on to demonstrate that publicly available sites have a sub-directory /STAGING which appears to show semi-public documents (releases to the press, investor releases, etc.).</p>

<p><a href="http://www.google.com/#q=site:bp.com+inurl:staging+%222010%22&amp;hl=en&amp;start=0&amp;sa=N&amp;fp=dfdf66882bd03aae">http://www.google.com/#q=site:bp.com+inurl:staging+%222010%22&amp;hl=en&amp;start=0&amp;sa=N&amp;fp=dfdf66882bd03aae</a></p>

<p>It&#8217;s unclear that anything unusual is publicly exposed here. One document is marked official use only which shows the oil spill projections, however that&#8217;s a lot like saying something is under copyright but still releasable. Another is marked &#8220;Project Confidential&#8221; but it&#8217;s unclear if it left that classification when added to the /STAGING site.</p>

<p><div id="attachment_4086" class="wp-caption alignnone" style="width: 760px"><a href="http://praetorianprefect.com/wp-content/uploads/2010/06/bp_situationmap.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2010/06/bp_situationmap.jpg" alt="" title="bp_situationmap" width="750" height="579" class="size-full wp-image-4086" /></a><p class="wp-caption-text">Situation Map.</p></div>
<br /></p>

<p>Like a lot of large companies, there&#8217;s probably more online than should be, but it doesn&#8217;t appear /STAGING has any special significance as an intranet type site. I will confess, this is my favorite document, <a href="http://docs.google.com/viewer?a=v&amp;q=cache:O4zm5Oi8orsJ:www.bp.com/liveassets/bp_internet/globalbp/STAGING/global_assets/downloads/H/horizon_magazine_issue_2_april_2008.pdf+site:bp.com+inurl:staging+%222010%22+confidential&amp;hl=en&amp;gl=us&amp;pid=bl&amp;srcid=ADGEESj2qEnWcCOF8SWSE5Ikgv1JZDNi2DCJMt93uwf0BsHNct0gjaJcG0ymZucQ0kPIP5GbvWPemQ_7Y2Ddb76Ibx9-SU2hJfKB2wxvy-IXZAEhzJXqhWSKavmJCLcSAvBPxlUSw5EL&amp;sig=AHIEtbSyg7hGwgwf5flxBZmau3Amuc-x_A">the April 2008 company magazine</a>:</p>

<p><div id="attachment_4087" class="wp-caption alignnone" style="width: 495px"><a href="http://praetorianprefect.com/wp-content/uploads/2010/06/bp_horizon.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2010/06/bp_horizon.jpg" alt="" title="bp_horizon" width="485" height="649" class="size-full wp-image-4087" /></a><p class="wp-caption-text">BP Horizon: The Battle to Secure Company Data.</p></div>
<br /></p>

<h4>Some Passwords</h4>

<p>There are two old passwords in two of the files, a form and a newsletter, both are for ibackup.com access which like other document sharing sites has a public folder concept. Given their age, there probably isn&#8217;t much of an issue here, however password re-use inside organizations is quite common.</p>

<p>ID: bproadmap<br />
PW: safety<br />
<a href="http://www.bp.com/liveassets/bp_internet/bp_canada_noel/bp_canada_noel_english/STAGING/local_assets/downloads_pdfs/j/journey_hazard_assessment_card_2009_02_18.pdf">journey_hazard_assessment_card_2009_02_18.pdf</a></p>

<p>ID: bpshipping02<br /> 
PW: flag01<br />
<a href="http://docs.google.com/viewer?a=v&amp;q=cache:6nzmWJJpB3kJ:www.bp.com/liveassets/bp_internet/bp_shipping/bp_shipping_english/STAGING/local_assets/downloads_pdfs/f/Flag_29_May_2008.pdf+site:bp.com+inurl:staging+password&amp;hl=en&amp;gl=us&amp;pid=bl&amp;srcid=ADGEESieFMPdmCO_hNW2MSA4pu7K_bGkmXjhna1KtQNEWiMcdfmOrm658QSkwKVIfO5rFFkOWkFPe8kq9ZssmL_XQ8K4Hdbkm409NGT_A0c0yVynORfFiqQLXNNTgaArMHygEpG9KCix&amp;sig=AHIEtbT7TxhK88zxrqpdVTepx1Z8nH_lhA">Flag_29_May_2008.pdf</a></p>

<p>In the case of the second id, it certainly looks to be the kind of id and password that gets incremented for different things (bpshipping01, bpshipping03, flag02).</p>

<h3>PHP File Include and XSS</h3>

<p>Finally, the Reddit commenter points out the energizer.gp.com URL as one that appears to be a web application with a few issues including potentially a PHP remote file include or arbitrary file access:</p>

<p>http://energiser.bp.com/help.php?module=moodle&amp;file=insert file here</p>

<p>The site appears to use Moodle, a popular CMS platform, thus something else that can be looked at. However <a href="http://www.xssed.com/mirror/67152/">holisticinfosec got there first</a> and best with an XSS based iFrame injection:</p>

<pre><code>http://energiser.bp.com/login/index.php?lang=%22%3E%3Ciframe%20src=http://www.tampabay.com/multimedi
a/archive/00121/SP_322824_BORC_oilp_121445c.jpg%20width=450%20height=300%20frameborder=0%20scroll=no
%3E%3C/%3E%3C/;document.write%28unescape%28a.source%29%29;{//
</code></pre>

<p><div id="attachment_4071" class="wp-caption alignnone" style="width: 760px"><a href="http://praetorianprefect.com/wp-content/uploads/2010/06/bp_xss1.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2010/06/bp_xss1.jpg" alt="" title="bp_xss" width="750" height="707" class="size-full wp-image-4071" /></a><p class="wp-caption-text">iFrame inclusion on a bp.com site.</p></div>
<br /></p>

<h3>Finally</h3>

<p>Is most of this nonsense from a hard core security standpoint? Yes, to an extent. The XSS ought to be corrected, and dual factor authentication on VPN&#8217;s is kind of a must have at this point.</p>

<p>Does BP need a security audit of their perimeter, web properties, online services used, and security policies? Also yes. Maybe schedule it after they plug that gushing oil geyser this August.</p>

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/06/newsweek-reports-zombie-invasion/">Newsweek Reports Zombie Invasion</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/congressional-web-site-defacements-follow-the-state-of-the-union/">Congressional Web Site Defacements Follow the State of the Union</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/umm-techcrunch-defacement-two-in-24-hours/">Umm&#8230;TechCrunch? Defacement Two in 24 Hours</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/techcrunched-techcrunch-the-victim-of-a-defacement/">TechCrunched &#8211; TechCrunch the Victim of a Defacement</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/baidu-com-the-latest-victim-of-iranian-cyberarmy/">Baidu.com the Latest Victim of Iranian CyberArmy</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2010/06/going-after-bp/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Congressional Web Site Defacements Follow the State of the Union</title>
		<link>http://praetorianprefect.com/archives/2010/01/congressional-web-site-defacements-follow-the-state-of-the-union/</link>
		<comments>http://praetorianprefect.com/archives/2010/01/congressional-web-site-defacements-follow-the-state-of-the-union/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 09:46:14 +0000</pubDate>
		<dc:creator>Prefect</dc:creator>
				<category><![CDATA[Web Site Defacement]]></category>
		<category><![CDATA[congress]]></category>
		<category><![CDATA[redeye]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=3236</guid>
		<description><![CDATA[Shortly after President Obama's State of the Union address, constituents visiting the web sites of Congressional representatives like Charles Gonzalez (20th District of Texas), Spencer Bachus (Alabama's 8th District), and Brian Baird (Washington's 3rd District) were presented with a defacement message from the Red Eye Crew that as of 4:10 am EST remains up on their web sites. All of the sites affected are in the house.gov domain, but not every congressional site in the domain is defaced.]]></description>
			<content:encoded><![CDATA[<p><a href="http://praetorianprefect.com/wp-content/uploads/2010/01/US-Capitol.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2010/01/US-Capitol-150x150.jpg" alt="" title="US Capitol" width="75" height="75" class="alignleft size-thumbnail wp-image-3243" /></a></p>

<p>Shortly after President Obama&#8217;s State of the Union address, constituents visiting the web sites of Congressional representatives like Charles Gonzalez (20th District of Texas), Spencer Bachus (Alabama&#8217;s 8th District), and Brian Baird (Washington&#8217;s 3rd District) were presented with a defacement message from the Red Eye Crew that as of 4:10 am EST remains up on their web sites. All of the sites affected are in the house.gov domain, but not every congressional site in the domain is defaced.</p>

<h3>The Defacement</h3>

<p>The sites were defaced to simply show the following line of text:</p>

<pre><code>FUCK OBAMA!! Red Eye CREW !!!!! O RESTO E HACKER !!! by m4V3RiCk ; HADES ; T4ph0d4 -- FROM BRASIL
</code></pre>

<p><div id="attachment_3258" class="wp-caption alignleft" style="width: 760px"><a href="http://praetorianprefect.com/wp-content/uploads/2010/01/hacked.png"><img src="http://praetorianprefect.com/wp-content/uploads/2010/01/hacked.png" alt="Official web site for Representative John Barrow (D - GA)." title="hacked" width="750" height="398" class="size-full wp-image-3258" /></a><p class="wp-caption-text">Official web site for Representative John Barrow (D - GA).</p></div>
<br /></p>

<p>O RESTO E HACKER is Portuguese, roughly &#8220;The rest are hackers&#8221;.</p>

<h3>Affected Sites</h3>

<p>Here is a list of Congressional members web sites that we noted were affected last night. The full list, 49 web sites, attached below as Appendix A, was released on the 28th.</p>

<pre><code>http://www.joewilson.house.gov/

http://bachus.house.gov/


http://www.baird.house.gov/


http://www.barrow.house.gov/


http://www.gonzalez.house.gov/


http://mcnerney.house.gov/


http://mikepence.house.gov/


http://driehaus.house.gov/


http://carson.house.gov/


http://campbell.house.gov/


http://doggett.house.gov/


http://coffman.house.gov/


http://www.kosmas.house.gov/


http://hersethsandlin.house.gov/


http://lujan.house.gov/


http://www.mccollum.house.gov/


http://teague.house.gov/


http://mitchell.house.gov/


http://www.roe.house.gov/


http://www.lofgren.house.gov/


http://carnahan.house.gov/


http://www.chrismurphy.house.gov/


http://hunter.house.gov/


http://olver.house.gov/


http://arcuri.house.gov/


http://olver.house.gov/


http://tierney.house.gov/

</code></pre>

<p>A few committee sites were affected as well:</p>

<pre><code>http://republicans.financialservices.house.gov/

http://republicans.oversight.house.gov/


http://gop.cha.house.gov/

</code></pre>

<h3>Defaced Sites Normal Appearance</h3>

<p>Here are a few examples of what the now defaced sites normally look like:</p>

<p><div id="attachment_3245" class="wp-caption alignleft" style="width: 310px"><a href="http://praetorianprefect.com/wp-content/uploads/2010/01/bachus.png"><img src="http://praetorianprefect.com/wp-content/uploads/2010/01/bachus-300x191.png" alt="The Spencer Bachus site on better days." title="bachus" width="300" height="191" class="size-medium wp-image-3245" /></a><p class="wp-caption-text">The Spencer Bachus site on better days.</p></div>
<br /></p>

<p><div id="attachment_3246" class="wp-caption alignnone" style="width: 310px"><a href="http://praetorianprefect.com/wp-content/uploads/2010/01/gonzalez.png"><img src="http://praetorianprefect.com/wp-content/uploads/2010/01/gonzalez-300x191.png" alt="The Charles Gonzalez site on better days." title="gonzalez" width="300" height="191" class="size-medium wp-image-3246" /></a><p class="wp-caption-text">The Charles Gonzalez site on better days.</p></div>
<br /></p>

<h3>The RedEye Crew</h3>

<p><a href="http://praetorianprefect.com/wp-content/uploads/2010/01/redeye.png"><img src="http://praetorianprefect.com/wp-content/uploads/2010/01/redeye.png" alt="redeye" title="redeye" width="150" height="151" class="alignleft size-full wp-image-3254" /></a>
The Red Eye Crew has been around for a while, and have thousands of web site defacements to their credit. One member, handle HADES, defaced 453 government sites in Brazil last August through a reported SQL Injection. A quick review of the defacements captured at Zone-H <a href="http://www.zone-h.org/archive/notifier=Red%20Eye">shows 45,735 defacements</a>, primarily mass defacements. At one point they were doing tongue in cheek dedications to the memory of <a href="http://en.wikipedia.org/wiki/Elizabeth_B%C3%A1thory">Elizabeth Bathory</a>, a prolific female serial killer from the Middle Ages.</p>

<p>Last August, they defaced the web site of Old Dominion University with a message in Portugese, supporting their being a Brazilian team. The team has also defaced a number of Brazilian web sites. These two points are alongside the fact that they come right out and say that they&#8217;re from Brazil.</p>

<h3>Not the First Time Around</h3>

<blockquote>
  <p>&#8220;those were default passwords, meant to be changed by the Representatives&#8217; offices.&#8221; <br />GovTrends</p>
</blockquote>

<p>As one of our readers astutely pointed out, these sites are managed by a third party provider called <a href="http://switch2govtrends.com/">GovTrends</a> a Virginia web development company with the somewhat ironic phrase <i>&#8220;You get what you pay for&#8221;</i> on their web site.  Last August at least 18 congressional member sites managed by the same vendor were defaced by Indonesian cracker <a href="http://www.zone-h.com/archive/notifier=3n_byt3">3n_byt3 (1164 defacements to his credit)</a>, a result of a reported login to the administrative portion of the sites with a default password according to GovTrends, in an apparent attempt to deflect blame for the attack back to House staffers.</p>

<p>This explanation actually makes little sense, because the defacer added a news item to each page stating: <i>H4ck3d by 3n_byt3 @ Indonesia H4ck3rs</i>. If he had full administrative access to the CMS platform, the defacement would have been a full page defacement, not an injection into a news item on the site. The problem was much more likely an SQL injection, potentially the <a href="http://securityreason.com/exploitalert/7501">Joomla Component News SQL Injection vulnerability</a>.</p>

<p><div id="attachment_3266" class="wp-caption alignnone" style="width: 760px"><a href="http://praetorianprefect.com/wp-content/uploads/2010/01/3n_byt3.JPG"><img src="http://praetorianprefect.com/wp-content/uploads/2010/01/3n_byt3.JPG" alt="Senator Edwards site defacement from last August." title="3n_byt3" width="750" height="321" class="size-full wp-image-3266" /></a><p class="wp-caption-text">Senator Edwards site defacement from last August.</p></div>
<br /></p>

<h3>And Then It Got Awkward</h3>

<blockquote>
  <p>&#8220;It is extremely important that my constituents can trust that information provided to my office is kept confidential and secure.&#8221; <br />Rep. Spencer Bachus</p>
</blockquote>

<p>After the attack in August Representative Spencer Bachus sent a letter to the CAO (Chief Administrative Officer) of the House, asking essentially for two things: actual details of the attack and a plan for notification of these incidents in the future, as shared with Brian Krebs.</p>

<p>You can read the full letter here: <a href='http://praetorianprefect.com/wp-content/uploads/2010/01/BachusLetter.pdf'>BachusLetter</a>.</p>

<p>In the letter he states <i>&#8220;GovTrends refused to provide copies of the logs of the intrusion&#8221;</i> and referred all questions to the HIR (House Information Resources), while at the same time telling the press the default password theory. Its completely unclear why Representative Bachus, who appeared to be the only one publicly calling for a review of the logs by someone with forensics expertise, was denied being able to do this.</p>

<p>The risk of a breach and defacement is born fully by him, as the web site is in his name, and thus the request for a proper investigation by a computer forensics expert the correct instinct in this scenario. By not conducting a proper review of the attack in August, and conducting a web application vulnerability assessment following that, there was little hope of preventing future defacements such as the one today.</p>

<h3>So How did they get in?</h3>

<blockquote>
  <p>&#8220;Over the last year the House has continued aggressively fortifying its security systems.&#8221;<br />Jeff Ventura, CAO spokesman, August 7th, 2009</p>
</blockquote>

<p>Unfortunately, we won&#8217;t know that until someone who manages house.gov provides some details. Server access seems unlikely, because while the sites we checked are hosted on dcserver1.house.gov, not every site hosted on that server is defaced (example congressman Joe Sestak&#8217;s web site was fine). The sites are not redirecting anywhere.</p>

<p>Congress members seem to be able to use different content management systems for updating their web sites. For example, Michelle Bachmann&#8217;s site uses a tool called <a href="http://www.fireside21.com">Fireside</a>, a content management system targeted towards members of Congress. That site returns firesideweb.house.gov as the server, whereas the defaced sites we checked return dcserver1.house.gov. All of the defaced sites we saw have one commonality, and that is that they are run on the <a href="http://www.joomla.org/">Joomla content management system</a>.</p>

<p>But not all of the Joomla CMS web sites are affected. For example a comment tag indicates that sites http://ellison.house.gov and http://kirkpatrick.house.gov are using Joomla, but they were not defaced. This might indicate that it is a Joomla component that is to blame, however that is just speculation.</p>

<p>Joomla has had its share of security vulnerabilities in the past (as <a href="http://osvdb.org/vendor/4358-joomla/1">shown in the OSVDB</a>). Don&#8217;t waste time discussing historical vulnerabilities in Joomla or its extensions however, like all popular complex web content platforms configuration by the web site operators is important and it is their responsibility to ensure a patched installation with a secure configuration (like no default passwords). Only when an installation is fully updated and a zero day or improperly reported vulnerability is introduced based on a careless mistake, can the platform come into serious question.</p>

<p>Regardless, only the person who has access to the server the sites are running on and performs the forensic analysis will be able to tell exactly what happened. Hopefully they will release some sort of statement.</p>

<h3 id="updates">Updates &#8211; 1/28/09</h3>

<p>Representatives John Boehner and Nancy Pelosi want to know what happened, as detailed in a letter sent to the House CAO today:</p>

<pre><code>January 28, 2010

The Honorable Daniel P. Beard
Chief Administrative Officer
U.S. House of Representatives
Washington, DC 20515

Dear Mr. Beard:

We request that you initiate an immediate and comprehensive assessment of how hackers were able to 
deface the websites of nearly fifty House Members and Committees last night.

In the past, we jointly requested that your office review and tighten cybersecurity protections designed 
to ensure that congressional offices and committees are safeguarded from unauthorized intrusions. We 
appreciate the efforts you and your cybersecurity team have taken to tighten firewalls, as well as more 
recent efforts to ensure that official mobile communications devices are secure from hacking and other 
intrusions.

However, last night's actions indicate that further review of security procedures are needed. From initial 
reports, these intrusions appear to be related to one website vendor which has had previous security 
failures. While many Members have expressed satisfaction with the vendor in question, this is the second 
time in a year websites hosted and supported by this vendor have been compromised. We therefore request 
that your office work with the Committee on House Administration to review the security standards for House 
vendors and to assess whether this vendor, and others, have adhered to those standards. We also request 
that you take immediate action to protect against breaches of the House firewalls and to ensure website 
security of all House offices.

Thank you for your attention to this matter.

Sincerely,


NANCY PELOSI                      JOHN BOEHNER
Speaker                               Republican Leader

Cc: The Honorable Robert A. Brady
Chairman, Committee on House Administration

The Honorable Dan Lungren
Ranking Member, Committee on House Administration
</code></pre>

<p>SOURCE <a href="http://www.speaker.gov/newsroom/pressreleases?id=1523">Office of the Speaker of the House</a></p>

<hr />

<p>Some outlets are reporting that this was &#8220;an attack on the site&#8217;s of Democrats&#8221;. Note that one of the first sites we saw was defaced was that of Republican Congressman Joe Wilson from South Carolina. &#8220;You lie!&#8221;-nope, its true.</p>

<hr />

<p>SC Magazine <a href="http://www.scmagazineus.com/hackers-deface-49-us-house-websites/article/162576/">got a reaction</a> from Jeff Ventura, spokesman for the Office of the Chief Administrative Officer (CAO) in the U.S. House: <i>“None of the sites we host and manage internally at the House are impacted, it was through no action of ours that this breach occurred.”</i>.</p>

<p>The server appears to be the same as many of the other representative&#8217;s sites, so a full abdication of responsibility to the vendor, especially at this early stage without a statement from a qualified computer forensics resource, would seem to be inappropriate.  Further the question for the CAO as well as the affected members of Congress is why they stuck with the same vendor after the August breach and the subsequent refusal to provide a detailed analysis or logs that could be reviewed by a computer security expert. Finally the organization with the overall responsibility for information technology must regularly vet vendors they use.</p>

<hr />

<p>Then the associated press reported this:</p>

<p><i>Ventura says the vendor was performing an update and for a brief moment let its guard down. That was long enough to allow the hacker to penetrate the sites.</i></p>

<p>Without further information this makes little sense. It is a classic response to elevate the cracker by saying that they caught you in a moment of &#8216;letting your guard down&#8217;, further the &#8220;we were upgrading systems&#8221; response is always thought better than the &#8220;a vulnerability was out there for x amount of time&#8221; response. What maintenance allowed a cracker to get in and how did they happen to get to you in that short window? It does happen sometimes, but its unusual and usually still based on an IT error, even in sites that are under constant external probing by bad actors.</p>

<p>Further evidence would have to be provided for this to be an acceptably plausible theory of what happened, especially in light of the scant details and somewhat problematic explanation of the August attack.</p>

<hr />

<p>Ventura stated <a href="http://www.politico.com/news/stories/0110/32145.html">to Politico</a>:</p>

<p><i>&#8220;I think what you’re going to see going forward is an insistence to the adherence of policy, as opposed to just the suggestion that the policy standard has to be a certain level.”</i></p>

<p>This is actually somewhat similar to what was stated the last time around. If I&#8217;m a member of Congress whose reputation is being affected, at this point I&#8217;m calling for a computer forensics team from a reputable company to come in for an evaluation and tell me a reasonable theory of how this breach happened. Then I&#8217;m releasing a statement, identifying the expert firm I called in to do the evaluation, so that people understand that a serious investigation took place.  Further I&#8217;m getting a web vulnerability assessment done on the house.gov web properties. These two actions don&#8217;t offer any guarantee of perfect forward security, but they make a big difference.</p>

<p>At the same time Govtrends is being painted as stonewalling: <i>&#8220;GovTrends employees did not return multiple phone or email messages seeking comment.&#8221;</i> And Ventura states “We’re discussing our options,”.</p>

<hr />

<p>RedEye also defaced three Brazilian government web sites last night (addresses below) with the following message:</p>

<pre><code>Red Eye Crew! Owned by HADES &amp;&amp; m4V3R1ck
</code></pre>

<pre><code>www.cedasc.ba.gov.br 
www.cti.gov.br 
itapiranga.cti.gov.br 
</code></pre>

<hr />

<p>Finally in a piece of completely unrelated but somewhat coincidental circumstance, Joomla.org, the project homepage of the Joomla CMS used by the Congressional sites, was itself defaced by the same Red Eye Crew back in August of 2008.</p>

<pre><code>H A C K E D !

joomla.org owned!


Red Eye CREW

owned joomla.org =)

m4V3RiCk - W4n73d - _dDoS_

by m4v3rick

"That´s all Folks!!"
</code></pre>

<h3>Appendix A &#8211; Full list of Affected Sites</h3>

<pre><code>altmire.house.gov
arcuri.house.gov
bachus.house.gov
baird.house.gov
barrow.house.gov
bilirakis.house.gov
boccieri.house.gov
bright.house.gov
campbell.house.gov
carnahan.house.gov
carson.house.gov
charliewilson.house.gov
childers.house.gov
coffman.house.gov
dahlkemper.house.gov
davis.house.gov
doggett.house.gov
driehaus.house.gov
energycommerce.house.gov
gonzalez.house.gov
gop.cha.house.gov
hersethsandlin.house.gov
honda.house.gov
hunter.house.gov
joewilson.house.gov
kirk.house.gov
kosmas.house.gov
larson.house.gov
lipinski.house.gov
lofgren.house.gov
lujan.house.gov
mccollum.house.gov
mcnerney.house.gov
mikepence.house.gov
mitchell.house.gov
mollohan.house.gov
murphy.house.gov
murtha.house.gov
olver.house.gov
quigley.house.gov
republicans.financialservices.house.gov
republicans.oversight.house.gov
resourcescommittee.house.gov
roe.house.gov
schakowsky.house.gov
shea-porter.house.gov
teague.house.gov
tierney.house.gov
welch.house.gov 
</code></pre>

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/06/newsweek-reports-zombie-invasion/">Newsweek Reports Zombie Invasion</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/06/going-after-bp/">Going After BP</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/umm-techcrunch-defacement-two-in-24-hours/">Umm&#8230;TechCrunch? Defacement Two in 24 Hours</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/techcrunched-techcrunch-the-victim-of-a-defacement/">TechCrunched &#8211; TechCrunch the Victim of a Defacement</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/baidu-com-the-latest-victim-of-iranian-cyberarmy/">Baidu.com the Latest Victim of Iranian CyberArmy</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2010/01/congressional-web-site-defacements-follow-the-state-of-the-union/feed/</wfw:commentRss>
		<slash:comments>29</slash:comments>
		</item>
		<item>
		<title>Umm&#8230;TechCrunch? Defacement Two in 24 Hours</title>
		<link>http://praetorianprefect.com/archives/2010/01/umm-techcrunch-defacement-two-in-24-hours/</link>
		<comments>http://praetorianprefect.com/archives/2010/01/umm-techcrunch-defacement-two-in-24-hours/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 08:19:56 +0000</pubDate>
		<dc:creator>Prefect</dc:creator>
				<category><![CDATA[Web Site Defacement]]></category>
		<category><![CDATA[techcrunch]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=3211</guid>
		<description><![CDATA[Less than 24 hours <a href="http://praetorianprefect.com/archives/2010/01/techcrunched-techcrunch-the-victim-of-a-defacement/">from the last web site defacement</a>, TechCrunch has been defaced again early this morning by the same cracker(s) responsible for yesterday's attack. Whatever preventative measures were taken yesterday (WordPress upgrade, HTTP authentication for wp-admin) have not blocked the attacker's access to modify TechCrunch's content, as this morning the attacker left a profane message on top of the homepage for Michael Arrington as well as a few media outlets like Yahoo and the BBC. At this point TechCrunch should perhaps be ensuring that there is no uploaded shell on the server the site is hosted on.]]></description>
			<content:encoded><![CDATA[<p><a href="http://praetorianprefect.com/wp-content/uploads/2010/01/logo1.png"><img src="http://praetorianprefect.com/wp-content/uploads/2010/01/logo1.png" alt="logo" title="logo" width="150" height="150" class="alignleft size-full wp-image-3212" /></a></p>

<p>Less than 24 hours <a href="http://praetorianprefect.com/archives/2010/01/techcrunched-techcrunch-the-victim-of-a-defacement/">from the last web site defacement</a>, TechCrunch has been defaced again early this morning by the same cracker(s) responsible for yesterday&#8217;s attack. Whatever preventative measures were taken yesterday (WordPress upgrade, HTTP authentication for wp-admin) have not blocked the attacker&#8217;s access to modify TechCrunch&#8217;s content, as this morning the attacker left a profane message on top of the homepage for Michael Arrington as well as a few media outlets like Yahoo and the BBC. At this point TechCrunch should perhaps be ensuring that there is no uploaded shell on the server the site is hosted on.
<br /><br /><br /></p>

<p><div id="attachment_3215" class="wp-caption alignnone" style="width: 760px"><a href="http://praetorianprefect.com/wp-content/uploads/2010/01/techcrunch_defaced2_2.png"><img src="http://praetorianprefect.com/wp-content/uploads/2010/01/techcrunch_defaced2_2.png" alt="The message greeting visitors to TechCrunch this morning." title="techcrunch_defaced2_2" width="750" height="450" class="size-full wp-image-3215" /></a><p class="wp-caption-text">The message greeting visitors to TechCrunch this morning.</p></div>
<br /></p>

<h3>The Message</h3>

<p>The message on the homepage above the content reads as follows:</p>

<pre><code>“So Arrington, how much did all the media coverage yesterday brought you in trough the welcome.html ad 
you forced people to? What a fucking retarded move was that you twat. You should be thanking me and 
sucking on my fucking ballsack for not deleting everyone on the box and publishing the mysql, if that’s
what you want O.K, I can do that. Also, you fucking dickwads from sites like Yahoo!, BBC and plenty 
more, where the FUCK do you see adult content on http://dupedb.com/ ???????? 
I mean honestly, are you fucktards also in just for the money?!?!?!”
</code></pre>

<p>The message is an apparent protest of TechCrunch&#8217;s decision to have the site lead in with a web advertisement before showing the homepage and an objection to the characterization of the DupeDB.com web site as being an adult content web site. The second objection is not totally without merit, the site is clearly a warez site with software, music, movies, and pornography, not a pornographic web site which brings up other connotations. That&#8217;s not to suggest one is any better or worse than the other, just that &#8220;warez site&#8221; (underground distribution of pirated content) is a more apt description.</p>

<p>Links to DupeDB.com(91.121.221.39) are referenced again, which is hosted in Roubaix, France by ISP Ovh Systems.</p>

<p><div id="attachment_3216" class="wp-caption alignnone" style="width: 310px"><a href="http://praetorianprefect.com/wp-content/uploads/2010/01/dupedb1.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2010/01/dupedb1-300x214.jpg" alt="DupeDB.com" title="dupedb" width="300" height="214" class="size-medium wp-image-3216" /></a><p class="wp-caption-text">DupeDB.com</p></div>
<br /></p>

<h3>The Same Attackers?</h3>

<p>Its just a reasonable guess, but the fact that the defacement now clearly references the first attack and also questions why the coverage of the attack references DupeDB.com as an adult content web site, would indicate now that the purveyor of this site hosted in France is taking responsibility for the defacements.</p>

<h3>SQL Injection?</h3>

<p>There is a rumor based on details of an attack on another site around the same time as TechCrunch, shoemoney.com, where HTML was injected (a meta redirect tag) that caused the site to redirect visitors to &#8220;a torrent web site&#8221; which has not been specified. In that case a problem occurred with the xmlrpc.php on the WordPress installation (a function allowing for remote publishing). This file has been the subject of other security issues (unauthorized access, SQL injection) in the past.</p>

<p>But there is a key difference. Back in September, a privilege escalation bug was found using the xmlrpc.php file, but it required that a user register with the WordPress installation first. This is possible on shoemoney.com, but TechCrunch has user registrations in WordPress disabled. It could still be a totally new defect with xmlrpc.php, but the most recent defect we saw that&#8217;s out there (September time frame) would likely not have worked on TechCrunch.</p>

<h3>Shell?</h3>

<p>A mechanism some attackers use when they have gained access to a web site&#8217;s administrative console, or access to a server, is to drop a web shell or backdoor so that they can gain access at a future date. Its a somewhat common method to deface a web site by uploading a shell, for example a php shell (although there are many types), that then allows you to modify files, execute commands on the server, grab the database, and so forth.</p>

<p>While it is not a perfect example (and you probably want to kill the sound if you don&#8217;t speak Spanish), the video below from YouTube demonstrates an attacker having gained access to the WordPress administrative console (an older version, but the point holds), proceeding to the Appearance-Editor screen, and replacing an existing page in the site with the N3tShell (a larger screenshot of the shell is shown after the video). Once this php shell is installed, the attacker can browse the file system on the server, execute commands, and so forth through the shell depending on the file permissions.</p>

<p><object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/8Ljdm0vOEbk&#038;hl=en_US&#038;fs=1&#038;rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/8Ljdm0vOEbk&#038;hl=en_US&#038;fs=1&#038;rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object>
<br />
<i>Credit darkfuneral89, this is not a Praetorian video</i></p>

<p><div id="attachment_3220" class="wp-caption alignnone" style="width: 310px"><a href="http://praetorianprefect.com/wp-content/uploads/2010/01/28042008135626defacedwetm7.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2010/01/28042008135626defacedwetm7-300x240.jpg" alt="N3T Shell, just an example as used in the YouTube video. Click to view a larger image." title="28042008135626defacedwetm7" width="300" height="240" class="size-medium wp-image-3220" /></a><p class="wp-caption-text">N3T Shell, just an example as used in the YouTube video. Click to view a larger image.</p></div>
<br /></p>

<p>It is important to note here that we are not saying that this is what happened, only that taking into account the attacker&#8217;s repeat access, that this is a favored method for defacement, and that the attacker states he has access to the MySQL database, that this or something similar is a possibility. Other possibilities include the attacker having only WordPress access and lying about any further access, that he has access to the server at RackSpace, and so forth. We won&#8217;t know much more until TechCrunch is more forthcoming with details about the two attacks.</p>

<h3>Finally</h3>

<p>Obviously updating the WordPress version of TechCrunch.com and implementing web server authentication on the wp-admin page did not do the trick of keeping this cracker out. Actually, while its providing a HTTP authentication login dialog, login attempts to the TechCrunch WordPress login screen are still possible after canceling through the web server authentication dialogue (login box).</p>

<p>At this point if TechCrunch did the responsible thing yesterday and changed all the passwords of the user accounts on the box hosted by RackSpace as well as the WordPress application login credentials, they should potentially be looking for some sort of uploaded shell, because clearly the attacker is able to gain access at will. If they haven&#8217;t changed the access credentials, that might be a good first step. Another good first step would be looking for an admin account that doesn&#8217;t quite belong in WordPress.</p>

<p>Of note is that the attacker threatens to &#8220;delete everyone on the box&#8221; and publish the backend MySQL database, perhaps giving us a clue into his level of access into TechCrunch. Yesterday we speculated that it was the WordPress platform that was somehow compromised because of the application&#8217;s history of security problems and the quick WordPress upgrade TechCrunch appeared to perform (visible by viewing the version numbers shown on the <a href="http://www.techcrunch.com/readme.html">Readme.html file</a> that TechCrunch should be deleting after the install). This may still be the case but the attacker seems to be stating he has gained access beyond the WordPress application by talking about the database. This access could still have gone through WordPress of course, via uploading a shell of some sort. If true, and its reasonably plausible given his continued access to TechCrunch, this rules out his having simply accessed the WordPress administrative portal and only modifying content.</p>

<p>We look forward to reading TechCrunch&#8217;s full analysis of what&#8217;s happening to their blog.</p>

<h3>Other Coverage Worth Reading</h3>

<ul>
<li><a href="http://www.sophos.com/blogs/gc/g/2010/01/27/techcrunch-hacked-intruders-pottymouthed">http://www.sophos.com/blogs/gc/g/2010/01/27/techcrunch-hacked-intruders-pottymouthed</a></li>
</ul>

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/06/newsweek-reports-zombie-invasion/">Newsweek Reports Zombie Invasion</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/06/going-after-bp/">Going After BP</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/congressional-web-site-defacements-follow-the-state-of-the-union/">Congressional Web Site Defacements Follow the State of the Union</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/techcrunched-techcrunch-the-victim-of-a-defacement/">TechCrunched &#8211; TechCrunch the Victim of a Defacement</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/baidu-com-the-latest-victim-of-iranian-cyberarmy/">Baidu.com the Latest Victim of Iranian CyberArmy</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2010/01/umm-techcrunch-defacement-two-in-24-hours/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>TechCrunched &#8211; TechCrunch the Victim of a Defacement</title>
		<link>http://praetorianprefect.com/archives/2010/01/techcrunched-techcrunch-the-victim-of-a-defacement/</link>
		<comments>http://praetorianprefect.com/archives/2010/01/techcrunched-techcrunch-the-victim-of-a-defacement/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 09:36:43 +0000</pubDate>
		<dc:creator>Prefect</dc:creator>
				<category><![CDATA[Web Site Defacement]]></category>
		<category><![CDATA[defacement]]></category>
		<category><![CDATA[techcrunch]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=3178</guid>
		<description><![CDATA[<a href="http://www.techcrunch.com">TechCrunch</a>, the popular blog founded by Michael Arrington in 2005 that profiles technology start ups with posts about their products and company news was the victim of a website defacement that has effectively taken the site down for a period of three hours at time of writing. The site initially went down a little after 1 AM EST with a message of "Hi" on the homepage, and for a while seesawed between coming back up, being newly defaced, and showing a "We'll be back shortly" message.]]></description>
			<content:encoded><![CDATA[<p><a href="http://praetorianprefect.com/wp-content/uploads/2010/01/logo.png"><img src="http://praetorianprefect.com/wp-content/uploads/2010/01/logo.png" alt="logo" title="logo" width="150" height="150" class="alignleft size-full wp-image-3179" /></a></p>

<p><a href="http://www.techcrunch.com">TechCrunch</a>, the popular blog founded by Michael Arrington in 2005 that profiles technology start ups with posts about their products and company news, was the victim of a website defacement that has effectively taken the site down for a period of three hours at time of writing. The site initially went down a little after 1 am EST with a message of &#8220;Hi&#8221; on the homepage, and for a while seesawed between coming back up, being newly defaced, and showing a &#8220;We&#8217;ll be back shortly&#8221; message.</p>

<p>There is no word yet of how the attack took place, however, all appearances suggest that access was gained to the TechCrunch content itself as opposed to being a DNS redirect, or something similar, as happened to <a href="http://praetorianprefect.com/archives/2009/12/we-shall-strike-if-the-leader-orders-twitter-struck-by-iranian-cyber-army/">Twitter</a> and <a href="http://praetorianprefect.com/archives/2010/01/baidu-com-the-latest-victim-of-iranian-cyberarmy/">Baidu</a> recently. The fact that TechCrunch uses the WordPress blog application has led to speculation that the problem may be an exploit in the popular blogging platform.</p>

<p>At 1:20 am EST TechCrunch was down with the message &#8220;Hi&#8221; on the homepage.</p>

<p><div id="attachment_3181" class="wp-caption alignnone" style="width: 310px"><a href="http://praetorianprefect.com/wp-content/uploads/2010/01/techcrunch-hacked-1.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2010/01/techcrunch-hacked-1-300x45.jpg" alt="The first message showing up on TechCrunch." title="techcrunch-hacked-1" width="300" height="45" class="size-medium wp-image-3181" /></a><p class="wp-caption-text">The first message showing up on TechCrunch.</p></div>
<br /></p>

<p>It then showed this link:</p>

<p><div id="attachment_3182" class="wp-caption alignnone" style="width: 310px"><a href="http://praetorianprefect.com/wp-content/uploads/2010/01/techcrunch_hacked.png"><img src="http://praetorianprefect.com/wp-content/uploads/2010/01/techcrunch_hacked-300x133.png" alt="The first link to Dupedb.com as &#039;rapidshare downloads&#039;." title="techcrunch_hacked" width="300" height="133" class="size-medium wp-image-3182" /></a><p class="wp-caption-text">The first link to DupeDB.com as 'rapidshare downloads'.</p></div>
<br /></p>

<p>From there the site came back up briefly and went back to the &#8220;We&#8217;ll be back shortly&#8221; message.</p>

<p><div id="attachment_3183" class="wp-caption alignnone" style="width: 292px"><a href="http://praetorianprefect.com/wp-content/uploads/2010/01/backsoon.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2010/01/backsoon.jpg" alt="We&#039;ll be back soon." title="backsoon" width="282" height="164" class="size-full wp-image-3183" /></a><p class="wp-caption-text">We'll be back soon.</p></div>
<br /></p>

<p>It was taken over again as shown below, then returned to the &#8220;We&#8217;ll be back shortly&#8221; message.</p>

<p><div id="attachment_3184" class="wp-caption alignnone" style="width: 310px"><a href="http://praetorianprefect.com/wp-content/uploads/2010/01/techcrunch.png"><img src="http://praetorianprefect.com/wp-content/uploads/2010/01/techcrunch-300x116.png" alt="Taken over again, this time with another link to dupedb.com." title="techcrunch" width="300" height="116" class="size-medium wp-image-3184" /></a><p class="wp-caption-text">Taken over again, this time with another link to dupedb.com.</p></div>
<br /></p>

<p>The site finally seem to become stable after 3am EST with a final message from TechCrunch on the homepage:</p>

<pre><code>Earlier tonight techcrunch.com was compromised by a security exploit.

We're working to identify the exploit and will bring the site back online shortly. 
</code></pre>

<h3>DupeDB.com</h3>

<p>The site (91.121.221.39) that the homepage was linked to appears to be a warez site hosted in Roubaix, France, hosted by ISP Ovh Systems. TechCrunch is of course hosted by Rackspace.com, which was recently in the news because of the role their servers played in the <a href="http://praetorianprefect.com/archives/2010/01/the-aurora-ie-exploit-in-action/">&#8216;Aurora&#8217; attack on Google</a>.</p>

<p>The word warez is a self referential term in communities that deal with the underground distribution of pirated content (software, music, movies, etc.). The dupeDB site appears to be a torrent and rapidshare download site containing links to movies, music, cracked software, and so forth.</p>

<p><div id="attachment_3187" class="wp-caption alignnone" style="width: 310px"><a href="http://praetorianprefect.com/wp-content/uploads/2010/01/dupedb.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2010/01/dupedb-300x214.jpg" alt="Dupedb.com site." title="dupedb" width="300" height="214" class="size-medium wp-image-3187" /></a><p class="wp-caption-text">DupeDB.com site.</p></div>
<br /></p>

<p>DupeDB has its own <a href="http://twitter.com/dupedbt">Twitter account</a> and <a href="http://forums.dupedb.com/">online forum</a> as well.</p>

<h3>Other Attacks with DupeDB.com</h3>

<p>The attack directs to the same web site as a brief takeover of forums of the <a href="http://www.neowin.net">Neowin.net</a> technology news website on December 27th of last year. In that case, a Meta redirect was injected sending users from neowin.net to dupedb.com. The same issue also afflicted the <a href="http://www.flyertalk.com/forum/technical-issues/1032491-hijacked-dupedb-com.html">Flyertalk forum</a> on December 27th, and the <a href="http://www.sprintusers.com/forum/showthread.php?t=200022">Sprint Users forum</a> on December 15th.</p>

<p>The Meta tag redirect injected into Neowin.net&#8217;s forums:</p>

<pre><code>&lt;meta content="0; URL=http://dupedb.com/" http-equiv="Refresh"/&gt;
</code></pre>

<h3>Finally</h3>

<p>No details have emerged on exactly how TechCrunch was taken over, the evidence does not suggest a DNS redirect from what we were able to see. That said TechCrunch uses WordPress (just like us), which a security professional once jokingly referred to as a dropper because of the number of security problems the platform has had. That&#8217;s hardly unique to WordPress, the platform is very much a victim of its own popularity, its inherent complexity as a publishing platform, and the fact that plugin integration is community driven thus soemtimes introducing security problems. These three things are all positives, but do introduce security considerations.</p>

<p>Pursuing the theory of a possible WordPress issue, <a href="http://www.cunchgear.com">CrunchGear</a>, a site in the TechCrunch Network, has its <a href="http://www.crunchgear.com/readme.html">readme.html file</a> available stating the WordPress version installed, and its /admin authentication page is accessible <a href="http://www.crunchgear.com/wp-login.php">here</a> for password guessing.</p>

<p>Now that TechCrunch is back up, we can see that their <a href="http://www.techcrunch.com/readme.html">readme file</a> is also available, as well as their <a href="http://www.techcrunch.com/wp-login.php">WordPress login screen</a> (which is awkwardly behind webserver authentication, but still accessible if you cancel out of the login dialogue. Its entirely possible someone brute forced the password, there are <a href="http://isc.sans.org/diary.html?storyid=7663">scripts available</a> to do this for WordPress.</p>

<p>Another question comes up as to whether TechCrunch just updated their WordPress install. In speaking to security pro Dan Tentler, the WordPress version on the readme.html file was 2.8.4 earlier tonight. Now it reads 2.9.1, the current version of WordPress.</p>

<p>There&#8217;s no evidence that anyone involved with DupeDB is actually responsible for the attack, however there is no real attribution in the defacement, and this would drive traffic to the warez web site.</p>

<p>Either way, we expect TechCrunch, who has provided extensive coverage of other site compromises, to be just as up front in analyzing how their own site was cracked.</p>

<p>We&#8217;ll provide updates as they become available.</p>

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/06/newsweek-reports-zombie-invasion/">Newsweek Reports Zombie Invasion</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/06/going-after-bp/">Going After BP</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/congressional-web-site-defacements-follow-the-state-of-the-union/">Congressional Web Site Defacements Follow the State of the Union</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/umm-techcrunch-defacement-two-in-24-hours/">Umm&#8230;TechCrunch? Defacement Two in 24 Hours</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/baidu-com-the-latest-victim-of-iranian-cyberarmy/">Baidu.com the Latest Victim of Iranian CyberArmy</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2010/01/techcrunched-techcrunch-the-victim-of-a-defacement/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Baidu.com the Latest Victim of Iranian CyberArmy</title>
		<link>http://praetorianprefect.com/archives/2010/01/baidu-com-the-latest-victim-of-iranian-cyberarmy/</link>
		<comments>http://praetorianprefect.com/archives/2010/01/baidu-com-the-latest-victim-of-iranian-cyberarmy/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 03:11:23 +0000</pubDate>
		<dc:creator>Prefect</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Web Site Defacement]]></category>
		<category><![CDATA[defacement]]></category>
		<category><![CDATA[hacktivism]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=2920</guid>
		<description><![CDATA[A group called the Iranian Cyber Army has, fresh off the heels of their <a href="http://praetorianprefect.com/archives/2009/12/we-shall-strike-if-the-leader-orders-twitter-struck-by-iranian-cyber-army/">DNS attack on Twitter</a> last month, hijacked the domain of Chinese search engine Baidu.com. Baidu is one of the most popular web sites in the world, a NASDAQ 100 multimedia company headquartered in Beijing that serves up over 740 million web pages along with music and video. The company employs over 6,000 people, has a 77% market share for search in China, and has annual revenue of about $200mm. For about three hours they were an advertising platform for a hacktivist group supporting the fundamentalist Islamic regime in Iran.]]></description>
			<content:encoded><![CDATA[<p><a href="http://praetorianprefect.com/wp-content/uploads/2010/01/iraniancyberarmy.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2010/01/iraniancyberarmy-150x150.jpg" alt="iraniancyberarmy" title="iraniancyberarmy" width="150" height="150" class="alignleft size-thumbnail wp-image-2921" /></a></p>

<p>A group called the Iranian Cyber Army has, fresh off the heels of their <a href="http://praetorianprefect.com/archives/2009/12/we-shall-strike-if-the-leader-orders-twitter-struck-by-iranian-cyber-army/">DNS attack on Twitter</a> last month, hijacked the domain of Chinese search engine Baidu.com. Baidu is one of the most popular web sites in the world, a NASDAQ 100 multimedia company headquartered in Beijing that indexes over 740 million web pages for search and provides music and video content. The company employs over 6,000 people, has a 77% market share for search in China, and has annual revenue of about $200mm. For about three hours they were an advertising platform for a hacktivist group supporting the fundamentalist Islamic regime in Iran.</p>

<p>Such digital attacks for political purposes are sometimes referred to as hacktivism, usually defined as “the nonviolent use of illegal or legally ambiguous digital tools in pursuit of political ends”.</p>

<p>The IP address baidu.com pointed to temporarily routed to 174.121.0.7 in Houston Texas when we pinged it, to a site hosted via ISP <a href="http://www.theplanet.com/">ThePlanet.com</a>. The site normally shows hosts in Beijing, China, hosted by China Unicom (example: 202.108.22.5 is back up now). It appeared last night that the defacement site was hosted at a couple of different places.</p>

<p>The site as it appeared for about three hours today:</p>

<p><div id="attachment_2925" class="wp-caption alignnone" style="width: 654px"><a href="http://praetorianprefect.com/wp-content/uploads/2010/01/baidu_hacked.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2010/01/baidu_hacked.jpg" alt="The site served up at baidu.com earlier." title="baidu_hacked" width="644" height="745" class="size-full wp-image-2925" /></a><p class="wp-caption-text">The site served up at baidu.com earlier.</p></div>
<br /></p>

<p>Baidu.com as it normally appears:</p>

<p><div id="attachment_2926" class="wp-caption alignnone" style="width: 302px"><a href="http://praetorianprefect.com/wp-content/uploads/2010/01/Baidu-July-2008.png"><img src="http://praetorianprefect.com/wp-content/uploads/2010/01/Baidu-July-2008.png" alt="Baidu.com, normally." title="Baidu-July-2008" width="292" height="205" class="size-full wp-image-2926" /></a><p class="wp-caption-text">Baidu.com, normally.</p></div>
<br /></p>

<p>Two other domain names are referenced on the page: cyberarmyofiran.com and ircarmy.com. The first, IP 70.35.29.162, shows hosting by Netfirms in Markham Ontario in Canada. The second, ircarmy.com, is at IP 69.147.83.188, showing hosting by Yahoo in Sunnyvalue, California.</p>

<p>This is the same group responsible for <a href="http://praetorianprefect.com/archives/2009/12/we-shall-strike-if-the-leader-orders-twitter-struck-by-iranian-cyber-army/">the attacks on Twitter and mowjcamp.org</a> last month, Twitter having gone down for a while the evening of December 17th. During the attack on Twitter a bad actor used an id and password assigned to Twitter to log in to the administrative portal of managed DNS service provider Dyn.</p>

<h3>DNS Services</h3>

<p>At the time that Baidu.com was being redirected, we were seeing different SOA and NS results for the Baidu.com domain name. A simple script was used to look at this data:</p>

<pre><code>$ sh dnsbaidu.com
[baidu.com]----------------------
---[resolver.qwest.net]---
---[SOA]---
dns.baidu.com. sa.baidu.com. 2010011101 300 300 2592000 7200
---[NS]---
ns3.baidu.com.
ns2.baidu.com.
dns.baidu.com.
ns4.baidu.com.


---[4.2.2.2]---
---[SOA]---
---[NS]---


---[4.2.2.3]---
---[SOA]---
dns204.a.register.com. root.register.com. 2010011108 28800 7200 604800 14400
---[NS]---
dns050.c.register.com.
dns204.a.register.com.
dns010.d.register.com.
dns190.b.register.com.


---[8.8.8.8]---
---[SOA]---
dns.baidu.com. sa.baidu.com. 2010011101 300 300 2592000 7200
---[NS]---
dns.baidu.com.
ns2.baidu.com.
ns3.baidu.com.
ns4.baidu.com.


---[8.8.4.4]---
---[SOA]---
dns.baidu.com. sa.baidu.com. 2010011101 300 300 2592000 7200
---[NS]---
dns.baidu.com.
ns2.baidu.com.
ns3.baidu.com.
ns4.baidu.com.


---[208.67.222.222]---
---[SOA]---
ns1.coolhandle.com. server.pronethosting.net. 2010011101 86400 7200 3600000 86400
---[NS]---
ns2.coolhandle.com.
ns1.coolhandle.com.
</code></pre>

<p>We were seeing even more interesting results when using a DNS tool called <a href="http://www.squish.net/dnscheck/">Squishywishywoo</a>.  The results are below and I have attached the full output in: <a href="http://praetorianprefect.com/wp-content/uploads/2010/01/baidu-dnscheck.pdf" title="baidu-dnscheck.pdf">baidu-dnscheck.pdf</a></p>

<pre><code><br />50.0% of queries will be returned by 174.121.0.2 (ns2303.hostgator.com)
baidu.com.  86400   IN  SOA ns2303.hostgator.com. dnsadmin.gator1152.hostgator.com. (
                    2010011202  ; Serial
                    86400   ; Refresh
                    7200    ; Retry
                    3600000 ; Expire
                    86400 ) ; Minimum TTL
50.0% of queries will be returned by 174.121.0.3 (ns2304.hostgator.com)
baidu.com.  86400   IN  SOA ns2303.hostgator.com. dnsadmin.gator1152.hostgator.com. (
                    2010011202  ; Serial
                    86400   ; Refresh
                    7200    ; Retry
                    3600000 ; Expire
                    86400 ) ; Minimum TTL
</code></pre>

<p>Out of all the DNS results, only Google (8.8.8.8) and Qwest (resolver.qwest.net) return correct answers for Baidu&#8217;s NS records.  The others, OpenDNS (208.67.222.222), Level 3 (4.2.2.3 &amp; 4.2.2.2), and <a href="http://www.squish.net/dnscheck/">Squishywishywoo</a> returned incorrect results.</p>

<p>We are able to check for the correct expected results by looking at the WHOIS data provided by <a href="http://register.com">register.com</a>.  Register.com is the service that the Baidu.com domain was registered with and is the definitive authority for that domain.</p>

<pre><code>definitive
Registrant: 
Domain Discreet 
ATTN: baidu.com 
Rua Dr. Brito Camara, n 20, 1 
Funchal, Madeira 9000-039 
PT 
Phone: 1-902-7495331 
Email: 036f37850a14115101201f9483195f63@domaindiscreet.com


Registrar Name....: Register.com 
Registrar Whois...: whois.register.com 
Registrar Homepage: www.register.com 

Domain Name: baidu.com 
Created on..............: 1999-10-11 
Expires on..............: 2014-10-11 

Administrative Contact: 
Domain Discreet 
ATTN: baidu.com 
Rua Dr. Brito Camara, n 20, 1 
Funchal, Madeira 9000-039 
PT 
Phone: 1-902-7495331 
Email: 036f376a0a14115100199c0316d64ebb@domaindiscreet.com


Technical Contact: 
Domain Discreet 
ATTN: baidu.com 
Rua Dr. Brito Camara, n 20, 1 
Funchal, Madeira 9000-039 
PT 
Phone: 1-902-7495331 
Email: 036f37860a14115101c8a6d69ced14a8@domaindiscreet.com


DNS Servers: 
ns3.baidu.com
ns2.baidu.com
ns4.baidu.com
dns.baidu.com
</code></pre>

<p>In directly querying the listed authoritative servers with the dig command, we are able to display the data that the rest of the world <em>should</em> be seeing.</p>

<pre><code>dig @220.181.37.10 baidu.com SOA                                                                                       (~/tmp/new)

; &lt;&lt;&gt;&gt; DiG 9.6.0-APPLE-P2 &lt;&lt;&gt;&gt; @220.181.37.10 baidu.com SOA
; (1 server found)
;; global options: +cmd
;; Got answer:
;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NOERROR, id: 26843
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 4, ADDITIONAL: 4
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;baidu.com.         IN  SOA

;; ANSWER SECTION:
baidu.com.      7200    IN  SOA dns.baidu.com. sa.baidu.com. 2010011101 300 300 2592000 7200

;; AUTHORITY SECTION:
baidu.com.      86411   IN  NS  dns.baidu.com.
baidu.com.      86411   IN  NS  ns2.baidu.com.
baidu.com.      86411   IN  NS  ns3.baidu.com.
baidu.com.      86411   IN  NS  ns4.baidu.com.

;; ADDITIONAL SECTION:
dns.baidu.com.      300 IN  A   202.108.22.220
ns2.baidu.com.      300 IN  A   61.135.165.235
ns3.baidu.com.      300 IN  A   220.181.37.10
ns4.baidu.com.      300 IN  A   220.181.38.10

;; Query time: 308 msec
;; SERVER: 220.181.37.10£53(220.181.37.10)
;; WHEN: Tue Jan 12 00:17:03 2010
;; MSG SIZE  rcvd: 202

</code></pre>

<p>The key thing to note is the SOA serial number <code>2010011101</code>.  When a recursive DNS server such as Google&#8217;s 8.8.8.8 receives a request for Baidu.com and it does not have that data in its DNS cache, it will proceed down the DNS hierarchy to find the authoritative DNS server for the domain and request the needed data.  The authoritative DNS server will return the requested data and the current serial number, which in this case is <code>2010011101</code>.  The recursive DNS server will return the cached results, but after a timeout period it will go back to the authoritative DNS server, send the serial number it has in the cache, and ask if it needs an update on the date.  The authoritative DNS server will then compare the request and internal number to see if there needs to be an update.</p>

<p>The issue with this comes into play in our data above; OpenDNS&#8217;s results show an SOA serial number of <code>2010011101</code>, which is correct, but also contain the wrong NS server entries for Baidu.com.  When OpenDNS goes and asks the authoritative DNS server if it needs to update data it will be told no due to the matching SOA records; thus, it will continue returning bad DNS data until the authoritative DNS server changes the serial number.</p>

<p>With this data in mind, we would ascertain that the changes were initially made at .com level, most likely through Register.com to point the Baidu.com domain name to DNS servers controlled by the attackers. When we dug into DNS records, Register&#8217;s were corrected, but the cached bad records out on the other DNS servers still existed. While we can&#8217;t confirm this with certainty, the data found in DNS would lead to this conclusion.</p>

<p>A recommendation to Baidu.com&#8217;s DNS administrators is to update their serial numbers to something higher than <code>2010011202</code> as that has been the highest serial number we have see on any DNS server. This will force cached servers to update their records to the proper entries.</p>

<h3>Translation of the Text</h3>

<p>The text is Persian and translates roughly to:</p>

<pre><code>"Iranian (Persian) Cyber Army, is formed (and is on the move), in protest for the meddling of the foreign and
 Zionist sites in our countries domestic affairs and broadcasting of false news and inciting of conflict."
</code></pre>

<p>The text in the middle says &#8220;Dear Hussein&#8221;, perhaps in reference to <a href="http://en.wikipedia.org/wiki/Imam_Hussein">Imam Hussein</a>.</p>

<p>A similar sentiment to the messages present in the attack on Twitter.</p>

<h3>Baidu</h3>

<p>The name Baidu comes from an 800 year old Chinese poem written during the Song Dynasty. The poem compares the search for retreating beauty amid chaotic glamor with the search for one’s dream impeded by life’s obstacles. And we have ‘Google’.</p>

<h3>Finally</h3>

<p>While pressured to intervene as a response to Iran&#8217;s nuclear ambitions, China has for the most part stayed clear of speaking out on the subject. Businesses in China have served as intermediaries for products imported from Iran that are then shipped to U.S. firms, in violation of U.S. economic sanctions against Iran.  For these reasons, it is unclear how attacking a Chinese search engine fits into the strategy of this hacktivist pro-Iranian government group. It may have just been that baidu.com was an opportunity to spread their message on a high profile web site.</p>

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/06/newsweek-reports-zombie-invasion/">Newsweek Reports Zombie Invasion</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/06/going-after-bp/">Going After BP</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/congressional-web-site-defacements-follow-the-state-of-the-union/">Congressional Web Site Defacements Follow the State of the Union</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/umm-techcrunch-defacement-two-in-24-hours/">Umm&#8230;TechCrunch? Defacement Two in 24 Hours</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/techcrunched-techcrunch-the-victim-of-a-defacement/">TechCrunched &#8211; TechCrunch the Victim of a Defacement</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2010/01/baidu-com-the-latest-victim-of-iranian-cyberarmy/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>We shall strike if the leader orders: Twitter Struck by Iranian Cyber Army</title>
		<link>http://praetorianprefect.com/archives/2009/12/we-shall-strike-if-the-leader-orders-twitter-struck-by-iranian-cyber-army/</link>
		<comments>http://praetorianprefect.com/archives/2009/12/we-shall-strike-if-the-leader-orders-twitter-struck-by-iranian-cyber-army/#comments</comments>
		<pubDate>Thu, 17 Dec 2009 16:32:07 +0000</pubDate>
		<dc:creator>Prefect</dc:creator>
				<category><![CDATA[Web Site Defacement]]></category>
		<category><![CDATA[hacktivism]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=2500</guid>
		<description><![CDATA[At some time around 10pm on Thursday, users going to Twitter.com were served the page below with a banner reading "This site has been hacked by the Iranian Cyber Army". Also, mowjcamp.org, a site for supporters of Mir-Hossein Mousavi Khameneh a candidate who ran against Mahmoud Ahmadinejad in the 2009 Iranian presidential election, has been serving a similar defacement since at least December 16th and continues to do so. The motive appears to be activism in support of Iran's current Islamic regime. The attack vector was a bad actor using an id and password assigned to Twitter to log in to the <a href="https://dyn.com/user">administrative portal</a> of managed DNS service provider <a href="http://dyn.com/">Dyn</a>.]]></description>
			<content:encoded><![CDATA[<p>Fully updated: 12/18/09</p>

<p><a href="http://praetorianprefect.com/wp-content/uploads/2009/12/iran_thumbnail.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2009/12/iran_thumbnail-150x150.jpg" alt="iran_thumbnail" title="iran_thumbnail" width="150" height="150" class="alignleft size-thumbnail wp-image-2501" /></a></p>

<p>At some time around 10pm on Thursday, users going to Twitter.com were served the page below with a banner reading &#8220;This site has been hacked by the Iranian Cyber Army&#8221;. Also, mowjcamp.org, a site for supporters of Mir-Hossein Mousavi Khameneh a candidate who ran against Mahmoud Ahmadinejad in the 2009 Iranian presidential election, has been serving a similar defacement since at least December 16th and continues to do so. The motive appears to be activism in support of Iran&#8217;s current Islamic regime. The attack vector was a bad actor using an id and password assigned to Twitter to log in to the <a href="https://dyn.com/user">administrative portal</a> of managed DNS service provider <a href="http://dyn.com/">Dyn</a>.
<br /><br /><br /><br /></p>

<div id="attachment_2502" class="wp-caption alignnone" style="width: 310px"><a href="http://praetorianprefect.com/wp-content/uploads/2009/12/Twitteriran.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2009/12/Twitteriran-300x298.jpg" alt="The page served to users visiting twitter.com as it appeared earlier." title="Twitteriran" width="300" height="298" class="size-medium wp-image-2502" /></a><p class="wp-caption-text">The page served to users visiting twitter.com as it appeared earlier.</p></div>
<br /></p>

<p>Twitter actually had <a href="http://www.nytimes.com/external/idg/2009/06/18/18idg-twitter-plays-key-role-in-dos-attacks-in-iran-33328.html">a prominent role</a> in protests following the disputed Iranian presidential elections, and was a key source for Iranian citizens to both receive and disseminate information during the country&#8217;s widespread protests. The targeting of both the opposition candidate and the Twitter platform is then somewhat suspect as being related to the time period following the election. Such digital attacks for political purposes are sometimes referred to as <a href="http://en.wikipedia.org/wiki/Hacktivism">hacktivism</a>, usually defined as &#8220;the nonviolent use of illegal or legally ambiguous digital tools in pursuit of political ends&#8221;.</p>

<p>The site description in Google which temporarily indexed Twitter with the defacement seems to confirm this motive. The text reads: “In the name of God, As an Iranian this is a reaction to Twitter’s interference sly which was U.S. authorities ordered in the internal affairs of my country…”.</p>

<p><div id="attachment_2505" class="wp-caption alignnone" style="width: 310px"><a href="http://praetorianprefect.com/wp-content/uploads/2009/12/google-twitter.png"><img src="http://praetorianprefect.com/wp-content/uploads/2009/12/google-twitter-300x170.png" alt="Google&#039;s short lived indexing of the defaced twitter.com." title="google-twitter" width="300" height="170" class="size-medium wp-image-2505" /></a><p class="wp-caption-text">Google's short lived indexing of the defaced twitter.com.</p></div>
<br /></p>

<p>The page contains an e-mail address, I guess the &#8220;Iranian Cyber Army&#8221; is accepting feedback, an image of a flag with Arabic words, and an English message at the bottom as follows:</p>

<pre><code>U.S.A. Think They Controlling And Managing Internet By Their Access, But THey Don’t, We Control And 
Manage Internet By Our Power, So Do Not Try To Stimulation Iranian Peoples To….

NOW WHICH COUNTRY IN EMBARGO LIST? IRAN? USA?
WE PUSH THEM IN EMBARGO LIST ;)
Take Care.
</code></pre>

<p>We think its nice they asked us to take care.</p>

<h3>Attack Vector</h3>

<p>Twitter uses a hosted managed DNS service by <a href="http://dyn.com/dynect">Dyn, Inc</a>, a New Hampshire firm, for their domain names.  According to <a href="http://www.who.is/domain_archive-com/twitter.com/">WHO.IS</a>, they have been using this service since February of 2009.  Dyn&#8217;s Chief Technology Officer, Tom Daly, has stated that  someone using a “set of valid Twitter credentials” made the DNS changes that affected twitter.</p>

<p>So they would have logged in here:</p>

<p><div id="attachment_2544" class="wp-caption alignnone" style="width: 310px"><a href="http://praetorianprefect.com/wp-content/uploads/2009/12/Screen-shot-2009-12-18-at-3.32.08-PM1.png"><img src="http://praetorianprefect.com/wp-content/uploads/2009/12/Screen-shot-2009-12-18-at-3.32.08-PM1-300x133.png" alt="Dyn Login Screen" title="Screen-shot-2009-12-18-at-3.32.08-PM" width="300" height="133" class="size-medium wp-image-2544" /></a><p class="wp-caption-text">Dyn Login Screen</p></div>
<br /></p>

<p>Then they would have been presented a page like this (here&#8217;s ours as an example, all public information), and could modify where the domain name points:</p>

<p><div id="attachment_2545" class="wp-caption alignnone" style="width: 310px"><a href="http://praetorianprefect.com/wp-content/uploads/2009/12/Screen-shot-2009-12-18-at-5.38.30-PM.png"><img src="http://praetorianprefect.com/wp-content/uploads/2009/12/Screen-shot-2009-12-18-at-5.38.30-PM-300x164.png" alt="Example screen where DNS records are edited." title="Screen shot 2009-12-18 at 5.38.30 PM" width="300" height="164" class="size-medium wp-image-2545" /></a><p class="wp-caption-text">Example screen where DNS records are edited.</p></div>
<br /></p>

<h3>Dyn Responds</h3>

<ul>
<li><i>&#8220;It was not a failing on our systems whatsoever.&#8221; </i>

<ul>
<li>Tom Daly, Dyn CTO</li>
</ul></li>
<li><i>&#8220;&#8221;This was not an unauthorized breach of our system.&#8221;</i> </li>
<li>On Twitter&#8217;s explanation <i>&#8220;It will fully exonerate us, that&#8217;s one thing I can say,&#8221;</i></li>
<li>On whether Twitter&#8217;s credentials were stolen by hackers: <i>&#8220;You&#8217;ll have to read between the lines,&#8221;</i>

<ul>
<li>Kyle York, Dyn VP of Marketing</li>
</ul></li>
</ul>

<p>Well those are examples of a combination of a strong statement alongside playing semantics.  Dyn hosts DNS for a number of major web properties such as Arcsight, Zappos, Subway, British Telecom and others. While many other managed DNS services do the same thing, requiring only a web form with id and password authentication is probably not a good way to protect DNS records.</p>

<p>As an example of where to go from here, the online video game World of Warcraft has $6.50 physical one time password (OTP) tokens to authenticate in order to play:</p>

<p><div id="attachment_2547" class="wp-caption alignleft" style="width: 160px"><a href="http://praetorianprefect.com/wp-content/uploads/2009/12/blizzard_authenticator-222x300.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2009/12/blizzard_authenticator-222x300-150x150.jpg" alt="OTP token to authenticate, to World of Warcraft." title="blizzard_authenticator-222x300" width="150" height="150" class="size-thumbnail wp-image-2547" /></a><p class="wp-caption-text">OTP token to authenticate, to World of Warcraft.</p></div>
<br /></p>

<p>Many of you log into your corporate virtual private networks with similar OTP tokens, issued by firms such as RSA.</p>

<p>So your company protects its internal network with dual factor authentication. Many web sites and web services such as World of Warcraft or eTrade protect the individual user with the same. Why doesn&#8217;t Twitter require their managed DNS provider to protect the primary product of their $1 billion dollar valuation company with the same.</p>

<p>We&#8217;ve also asked Dyn twice for the geoip of the attacker that used Twitter credentials to update the DNS entry without response.</p>

<h4>How did they get Twitter&#8217;s Login for the Site?</h4>

<p>I don&#8217;t know, and there&#8217;s been a lot of speculation. But looking for evidence of something that has changed? DynStatus reports on Friday that &#8220;due to increased security concerns&#8230;we have disabled access to our e-mail based password reset system, to prevent compromise of customer login credentials via e-mail systems.</p>

<p>So potentially something happened where the password reset function was subverted, either by someone having access to the e-mail account at Twitter that password reset e-mails are sent to, or a subversion of the password reset functionality on the web site.</p>

<p><div id="attachment_2548" class="wp-caption alignleft" style="width: 310px"><a href="http://praetorianprefect.com/wp-content/uploads/2009/12/dyn_status.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2009/12/dyn_status-300x169.jpg" alt="E-mail based password resets suspended, as of today, by Dyn." title="dyn_status" width="300" height="169" class="size-medium wp-image-2548" /></a><p class="wp-caption-text">E-mail based password resets suspended, as of today, by Dyn.</p></div>
<br /></p>

<p>Was e-mail access absolutely required to subvert a password reset? Of course not, as an example the site has some of the source HTML usually associated with sites built with the Drupal CMS, which has had past issues with attacks on its password reset function: <a href="http://www.securityhome.eu/exploits/exploit_pdf.php?eid=127727419649b1ab314e5984.24334605">drupal-passwdxss.txt</a>. We&#8217;re not saying that&#8217;s what this is, but we are replying that until Twitter comes forward, no one knows that a Twitter staff e-mail account has been compromised.</p>

<h3>What&#8217;s the Flag Say?</h3>

<p>Relying on the translations of others (we don&#8217;t speak Arabic or Farsi) the flag contains a message of  &#8220;<a href="http://en.wikipedia.org/wiki/Hezbollah">Hezbollah</a> is victorious&#8221; at the top, referring to the paramilitary organization in Lebanon supported by Iran which in 2006 engaged in a 34 day military conflict with Israel.</p>

<p>The next word is the name of the third Shi&#8217;i Imam, <a href="http://en.wikipedia.org/wiki/Imam_Husayn">Imam Husayn</a>.  Finally at the bottom there is a poem that reads: &#8220;We shall strike if the leader orders, we shall lose our heads if the leader wishes.&#8221;</p>

<p>Based on the material displayed, there is speculation that the cracker(s) is part of a Shiite group.</p>

<h3>Twitter.com Serving the Page from the Wrong IP</h3>

<p>At some point during last night&#8217;s defacement people started noting that the content being served for the domain twitter.com was being served by IP address: 66.147.242.88.  This IP address is tied to Bluehost and according to GeoIP is a web server in Provo, Utah. The IP is still hosting a similar defacement page at the time of writing at: <a href="http://66.147.242.88/~twitter9/index.htm">http://66.147.242.88/~twitter9/index.htm</a>.</p>

<p><div id="attachment_2503" class="wp-caption alignnone" style="width: 310px"><a href="http://praetorianprefect.com/wp-content/uploads/2009/12/twitter9.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2009/12/twitter9-300x240.jpg" alt="Page returned from http://66.147.242.88/~twitter9/index.htm." title="twitter9" width="300" height="240" class="size-medium wp-image-2503" /></a><p class="wp-caption-text">Page returned from http://66.147.242.88/~twitter9/index.htm.</p></div>
<br /></p>

<p>This version has a few sentences in Farsi at the bottom as opposed to the English message, Google translates this as:</p>

<pre><code>Name of God
As an Iranian response to this intervention sly server command in the internal affairs of my country
 and American authorities)
This site is a warning Hk
</code></pre>

<p>If any native speakers who can read this want to help us with the translation, the comments are open below.</p>

<h3>The Attack &#8211; Theories from Last Night Worth Explaining</h3>

<h4>DNS Cache Poisoning?</h4>

<p>Twitter&#8217;s Biz Stone put out an update <a href="http://blog.twitter.com/2009/12/dns-disruption.html">on their blog</a> indicating that Twitter&#8217;s DNS records &#8220;were temporarily compromised&#8221;. That led to speculation that the culprit was <a href="http://en.wikipedia.org/wiki/DNS_cache_poisoning">DNS Cache Poisoning</a>. An explanation of DNS Cache Poisoning could easily make its own blog post, so we&#8217;ll keep it brief here.</p>

<p>Essentially a domain name server translates a domain name (www.google.com) into an IP address used to find the resource requested which is hosted on the Internet. Usually name servers rely on data served from authoritative Domain Name System, basically a hierarchy of who listens to who. When a bad actor (or possibly an unintended mistake) is able to provide bad data to a caching name server, that name server is considered poisoned. That data is cached for future requests, but now may contain a record that diverts a domain name (www.google.com) to an IP address not owned by Google but rather by the bad actor.</p>

<p>A cache is a duplicate copy of original data stored elsewhere, kept to speed up duplicate requests for the same resource.  Confused? There is a decent video below explaining an attack scenario where the DNS server receives a look up request from a bad actor who then floods the DNS server with bad name resolution data. The bad resolution of the domain is saved in cache, and future users are sent to the wrong IP address. For example, it may send requests for twitter.com to an IP address in Utah serving up Iranian political propaganda.</p>

<h3>Basic Explanation of DNS Cache Poisoning</h3>

<p>Check Point put out a video last year that gives what is a very high level explanation of what happens in a DNS Cache Poisoning attack. If you&#8217;re not familiar with this type of attack, it might be useful:</p>

<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/1d1tUefYn4U&#038;hl=en_US&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/1d1tUefYn4U&#038;hl=en_US&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>

<h4>DNS Hijacking?</h4>

<p>Another site suggested the problem might be DNS Hijacking. A DNS server essentially is used to translate domain names to IP addresses, basically because domain names are easier to remember when accessing Internet connected resources. While most users depend on DNS servers hosted by their ISP and in turn downstream providers, it is possible for a bad actor to host a rogue DNS server, point the domains of legitimate web sites to IP addresses hosting a bogus web site for example, and attempt via malicious code on the PC to change the user&#8217;s DNS server assignment. When a bad actor attempts to redirect users from a legitimate web site to a bogus one, its usually referred to as pharming.</p>

<h3>mowjcamp.org</h3>

<p>Recall we mentioned earlier that Twitter is the second site we&#8217;re aware of to be defaced in the same way. The site <a href="http://mowjcamp.com/">mowjcamp.org</a>, a political rally web site supporting former Iranian opposition candidate <a href="http://en.wikipedia.org/wiki/Mir-Hossein_Mousavi#2009_Presidential_election">Mir-Hossein Mousavi Khameneh</a>, is actively at time of writing serving a defacement page similar to the one that was on Twitter with this IP address: 66.147.244.182. This IP is also associated with ISP Bluehost, and GeoIP also points back to Provo, Utah for its location.</p>

<p>The first screenshot is what mowjcamp.org is supposed to look like, and can be viewed directly at the IP address: <a href="http://174.129.25.248">http://174.129.25.248</a>.</p>

<p><div id="attachment_2507" class="wp-caption alignnone" style="width: 310px"><a href="http://praetorianprefect.com/wp-content/uploads/2009/12/mawjcamporg21.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2009/12/mawjcamporg21-300x239.jpg" alt="What mawjcamp.org is supposed to look like." title="mawjcamporg2" width="300" height="239" class="size-medium wp-image-2507" /></a><p class="wp-caption-text">What mowjcamp.org is supposed to look like.</p></div>

<div id="attachment_2508" class="wp-caption alignnone" style="width: 310px"><a href="http://praetorianprefect.com/wp-content/uploads/2009/12/mawjcamporg1.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2009/12/mawjcamporg1-300x239.jpg" alt="What mawjcamp.org looks like now." title="mawjcamporg1" width="300" height="239" class="size-medium wp-image-2508" /></a><p class="wp-caption-text">What mowjcamp.org looks like now.</p></div>

<h3>Twitter Responds</h3>

<p>So as we mentioned earlier Twitter had this to say last night:</p>

<pre><code>12/17/09 11:43 PM
As we tweeted a bit ago, Twitter's DNS records were temporarily compromised tonight but have now been fixed.
 As some noticed, Twitter.com was redirected for a while but API and platform applications were working. 
We will update with more information and details once we've investigated more fully.
</code></pre>

<p>And then today posted this update:</p>

<pre><code>12/18/09 1:33 PM
Update on Last Night's DNS Disruption
Domain Name System or DNS is an Internet protocol used to translate IP addresses into domain names so 
instead of typing in a long string of numbers we can enter urls like www.twitter.com into a browser to visit 
our favorite web sites. Last night, DNS settings for the Twitter web site were hijacked. 
From 9:46pm to 11pm PST, approximately 80% of Traffic to Twitter.com was redirected to other web sites. 
We tweeted, blogged, and updated our status page last night.

During the attack, we were in direct contact with our DNS provider, Dynect. We worked closely to reset our 
DNS as quickly as possible. The motive for this attack appears to have been focused on defacing our site, 
not aimed at users—we don't believe any accounts were compromised. If you're concerned that your 
account could have been affected in some way, feel free to contact us, accountsafe [at] twitter.com.
</code></pre>

<p>As is always the case, the updates are short on meaningful information, providing a review of what we already read elsewhere, leaving out any indication of how the bad actor or actors got the login credentials for Dyn, and not providing any indication on what might be corrected to prevent this going forward.</p>

<h3>Bluehost Responds</h3>

<p><i>Bluehost discovered that Twitter.com had been the victim of a DNS compromise and, further, that the attackers had redirected some of the Twitter traffic to an account hosted on Bluehost servers. This customer account on BlueHost was setup using a stolen identity and credit card, as determined by the Bluehost verification department. The Bluehost abuse department immediately terminated this account. Contact was made by Bluehost to law enforcement agents to assist in all ongoing investigations.</i></p>

<p>It is somewhat strange that their monitoring did not notice a web site that went from zero to millions of visits in minutes.</p>

<h3>Hysteria</h3>

<p>The coverage coming out of this incident is riotious:</p>

<p><i>Thursday night&#8217;s cyber attack against the Twitter microblogging service was no routine assault to bring down a website. It was a sophisticated online blitz –perhaps part of an online Iranian cybercampaign – that could prove costly for social media networks.</i></p>

<p><a href="http://www.csmonitor.com/Money/2009/1218/Iranian-hacker-attack-What-will-it-cost-Twitter">http://www.csmonitor.com/Money/2009/1218/Iranian-hacker-attack-What-will-it-cost-Twitter</a></p>

<p>Ah yes, the blitzkrieg online cyberwar has begun. Let me get my hat. If by sophisticated you mean &#8220;is able to use a web site&#8221; and &#8220;knows how to use &#8216;whois&#8217;&#8221; then yes, a highly sophisticated assault.</p>

<p><i>The attack last night on Twitter was clear retribution for the role that the service played during the [post-Iran election] 
demonstrations, and the role that it continues to play today. We have spoken to a number of sources overnight who have 
told us that the Iranian Cyber Army, unlike other groups with similar national monikers, is a group name that is to be taken 
literally ie. it is an Iranian government group. Little is known about how the group operates, but previous attempts to shut 
off Iranian citizens from Twitter and other web services demonstrate that Iran has the capability and will to use almost any 
means to control the flow of information on the web both within and outside of its own borders. </i></p>

<p><a href="http://www.washingtonpost.com/wp-dyn/content/article/2009/12/18/AR2009121801982.html">http://www.washingtonpost.com/wp-dyn/content/article/2009/12/18/AR2009121801982.html</a></p>

<p>Do these sources have names or credibility of any kind? Because while this could be a government sponsored group, it could be a pissed off Islamic kid, a group of guys who communicate in an Arabic hacking forum, or any number of things.</p>

<p><i>In a web war, Iran has demonstrated that almost nobody is immune, the battlefield is level and it is not afraid to fire the first big shots in full view of the entire world.</i></p>

<p><a href="http://www.techcrunch.com/2009/12/18/twitter-dns-attack-iran/">http://www.techcrunch.com/2009/12/18/twitter-dns-attack-iran/</a></p>

<p>Are we in a web war with Iran? Because no one has one iota of proof yet that this is an Iranian government sponsored group. For reference, the battlefield is not level if we are in a war, the U.S. dependence on technology is far greater than that of Iran. If they&#8217;re ready to step up beyond logging in to an accessible web portal and changing a DNS entry at a managed DNS provider, they could really cause a lot of trouble.</p>

<p><i>With a large-scale attack on a popular global web service, it is the first time that cyber attacks have been used as part of a propaganda campaign to propel the global political agenda of a foreign government.</i></p>

<p><a href="http://www.techcrunch.com/2009/12/18/twitter-dns-attack-iran/">http://www.techcrunch.com/2009/12/18/twitter-dns-attack-iran/</a></p>

<p>Really? I could have sworn I&#8217;ve seen <a href="http://www.scmagazineus.com/web-defacements-escalate-as-israel-moves-farther-into-gaza/article/123542/">web sites defaced for political propaganda purposes before</a>.</p>

<h3>The HTML</h3>

<p>Since these sites may be taken down at any point, if you want to do further research here is the HTML that was being returned from the defaced web site:</p>

<pre><code>&lt;html&gt;

&lt;head&gt;
&lt;meta http-equiv="Content-Language" content="en-us"&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=windows-1252"&gt;
&lt;title&gt;..:: This Web Site Has Been Hacked By Iranian Cyber Army ::.. &lt;/title&gt;
&lt;/head&gt;

&lt;body bgcolor="#000000"&gt;

&lt;p align="center"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p align="center"&gt;&lt;img border="0" src="index.6.gif"&gt;&lt;img border="0" src="index.2.gif"&gt;&lt;img border="0" 
src="index.7.gif"&gt;&lt;/p&gt;
&lt;p align="center"&gt;&lt;img border="0" src="index.8.gif"&gt;&lt;/p&gt;
&lt;p align="center"&gt;
&lt;a href="mailto:iranian.cyber.army@gmail.com?subject=Mowjcamp"&gt;
&lt;img border="0" src="index.5.gif"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p align="center"&gt;&lt;img border="0" src="index.3.jpg" width="43%" height="106%"&gt;&lt;/p&gt;
&lt;p align="center"&gt;&lt;font face="Tahoma" size="2"&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p align="center"&gt;&lt;b&gt;&lt;font face="Tahoma" size="2" color="#FFFFFF"&gt;nbsp;
&amp;#1576;&amp;#1606;&amp;#1575;&amp;#1605; &amp;#1582;&amp;#1583;&amp;#1575;&lt;br&gt;
&amp;#1576;&amp;#1607; &amp;#1593;&amp;#1606;&amp;#1608;&amp;#1575;&amp;#1606; &amp;#1740;&amp;#1705; 
&amp;#1575;&amp;#1740;&amp;#1585;&amp;#1575;&amp;#1606;&amp;#1740; &amp;#1583;&amp;#1585; &amp;#1662;&amp;#1575;&amp;#1587;&amp;#1582; 
&amp;#1576;&amp;#1607; &amp;#1583;&amp;#1582;&amp;#1575;&amp;#1604;&amp;#1578; &amp;#1607;&amp;#1575;&amp;#1740; 
&amp;#1588;&amp;#1740;&amp;#1591;&amp;#1606;&amp;#1578; &amp;#1570;&amp;#1605;&amp;#1740;&amp;#1586; &amp;#1575;&amp;#1740;&amp;#1606; 
&amp;#1587;&amp;#1585;&amp;#1608;&amp;#1740;&amp;#1587; &amp;#1583;&amp;#1607;&amp;#1606;&amp;#1583;&amp;#1607; &amp;#1576;&amp;#1607; 
&amp;#1583;&amp;#1587;&amp;#1578;&amp;#1608;&amp;#1585; 

&amp;#1605;&amp;#1602;&amp;#1575;&amp;#1605;&amp;#1575;&amp;#1578; 
&amp;#1570;&amp;#1605;&amp;#1585;&amp;#1740;&amp;#1705;&amp;#1575;&amp;#1740;&amp;#1740; &amp;#1583;&amp;#1585; 
&amp;#1575;&amp;#1605;&amp;#1608;&amp;#1585; &amp;#1583;&amp;#1575;&amp;#1582;&amp;#1604;&amp;#1740; 
&amp;#1705;&amp;#1588;&amp;#1608;&amp;#1585;&amp;#1605; )&amp;nbsp; &lt;br&gt;
&amp;#1575;&amp;#1740;&amp;#1606; &amp;#1587;&amp;#1575;&amp;#1740;&amp;#1578; &amp;#1576;&amp;#1607; 
&amp;#1593;&amp;#1606;&amp;#1608;&amp;#1575;&amp;#1606; &amp;#1607;&amp;#1588;&amp;#1583;&amp;#1575;&amp;#1585; &amp;#1607;&amp;#1705; 
&amp;#1605;&amp;#1740; &amp;#1588;&amp;#1608;&amp;#1583; &lt;br&gt;

&amp;nbsp;&lt;/font&gt;&lt;/b&gt;&lt;/p&gt;

&lt;/body&gt;

&lt;/html&gt;
</code></pre>

<h3>Finally</h3>

<p>Although Twitter&#8217;s security posture has been a well publicized running disaster, this particular circumstance doesn&#8217;t really fall under the same category as previous problems because this was an attack outside of the Twitter infrastructure itself. TechCrunch threw something out there about changing your passwords, always a good practice, but your password was probably not at risk during this attack.</p>

<p>Who says the crackers only motivation is money these days?</p>

<p>Critical services such as DNS, BGP Routers, and any service that can single-handedly take down your entire company should be protected by two-factor authentication.  Looking at Dyn&#8217;s login page on the website, it appears the service uses standard username and password authentication without support for two-factor authentication, something we would suggest that they change or at least offer at cost to larger clients.</p>

<p>But the real crime, as youngluck noted on TechCrunch: <i>&#8220;Actually, the sad thing here is that an “army” with enough sophistication to take down Twitter, could have a graphic design department that could suck this bad.&#8221;</i></p>

<p>We&#8217;ll update the post if Twitter uncharacteristically provides more information about what happened.</p>

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/06/newsweek-reports-zombie-invasion/">Newsweek Reports Zombie Invasion</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/06/going-after-bp/">Going After BP</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/congressional-web-site-defacements-follow-the-state-of-the-union/">Congressional Web Site Defacements Follow the State of the Union</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/umm-techcrunch-defacement-two-in-24-hours/">Umm&#8230;TechCrunch? Defacement Two in 24 Hours</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/techcrunched-techcrunch-the-victim-of-a-defacement/">TechCrunched &#8211; TechCrunch the Victim of a Defacement</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2009/12/we-shall-strike-if-the-leader-orders-twitter-struck-by-iranian-cyber-army/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>NSA.gov Site Defacement</title>
		<link>http://praetorianprefect.com/archives/2009/10/nsa-gov-site-defacement/</link>
		<comments>http://praetorianprefect.com/archives/2009/10/nsa-gov-site-defacement/#comments</comments>
		<pubDate>Tue, 13 Oct 2009 21:02:24 +0000</pubDate>
		<dc:creator>Prefect</dc:creator>
				<category><![CDATA[Cyberwar]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Web Site Defacement]]></category>
		<category><![CDATA[hacker groups]]></category>
		<category><![CDATA[hacktivism]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=926</guid>
		<description><![CDATA[It appears, according to the site defacement archive hosted at Zone-H, that on or around October 5th an NSA web site application was the victim of an SQL injection exploit resulting in a web site defacement. A web application loading a list of recruitment events at colleges was compromised on the careers section of <a href="http://www.nsa.gov/applications/careers/recruit_events/">nsa.gov</a>.]]></description>
			<content:encoded><![CDATA[<p><a href="http://praetorianprefect.com/wp-content/uploads/2009/10/nsahack_thumb.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2009/10/nsahack_thumb-150x150.jpg" alt="nsahack_thumb" title="nsahack_thumb" width="150" height="150" class="alignleft size-thumbnail wp-image-928" /></a>It appears, according to the site defacement archive hosted at Zone-H, that on or around October 5th an NSA web site application was the victim of an SQL injection exploit resulting in a web site defacement. A web application in the careers section of <a href="http://www.nsa.gov/applications/careers/recruit_events/">nsa.gov</a> loading a list of recruitment events at colleges was compromised.</p>

<h3>10/05/2009 Appearance</h3>

<div id="attachment_931" class="wp-caption alignnone" style="width: 310px"><a href="http://praetorianprefect.com/wp-content/uploads/2009/10/nsa_hack11.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2009/10/nsa_hack11-300x271.jpg" alt="Site appearance according to posting on Zone-H." title="nsa_hack1" width="300" height="271" class="size-medium wp-image-931" /></a><p class="wp-caption-text">Site appearance according to posting on Zone-H.</p></div>

<h3>Correct Appearance</h3>

<div id="attachment_927" class="wp-caption alignnone" style="width: 310px"><a href="http://praetorianprefect.com/wp-content/uploads/2009/10/nsa_hack2.jpg"><img src="http://praetorianprefect.com/wp-content/uploads/2009/10/nsa_hack2-300x239.jpg" alt="NSA Career Fair schedule, correct appearance." title="nsa_hack2" width="300" height="239" class="size-medium wp-image-927" /></a><p class="wp-caption-text">NSA Career Fair schedule, correct appearance.</p></div>

<h3>SQL_Master</h3>

<p>The attacker, using the handle SQL_Master, is attributed on Zone-H to site defacements of Google Tokelau (a territory in New Zealand) and a Microsoft web property in Korea. He has been associated with the Jurm team, a Moroccan hacker group known primarily for web site defacements of the Israeli version web sites of major companies, for example Kia, Sprite, and Fanta.</p>

<p>A Microsoft defacement attributed to SQL_Master from July of this year references &#8220;Agd_Scrop, free him&#8221;. Agd_Scorp was part of a Turkish hacker group called Peace Crew that defaced NATO and U.S. military web sites as a political reaction to Operation Cast Lead, or as its more commonly referred to the Gaza War, where Israel and Hamas forces clashed starting December of 2008. The two hacker groups are known to have partnered in defacements at the beginning of this year during the conflict in what was termed a virtual war where a few thousand Israeli web sites were defaced. Agd_Scrop appears to have been arrested by Kayseri (central Turkey) police over the summer, and faces up to 20 years in prison on various cybercrime related charges.</p>

<h3>National Security Agency</h3>

<p>The NSA or National Security Agency is the cryptologic intelligence agency of the United States. Created in 1952 under President Truman, its primary initial responsibility was the collection and analysis of foreign communications. In 2008 President George W. Bush signed a directive authorizing the NSA to monitor the computer networks of all federal agencies, giving the agency a primary role in federal efforts around cybersecurity.</p>

<p>Because of this role and other factors, including the agency&#8217;s historical role with cryptographic systems and controversial domestic wiretapping programs, NSA networks and computer systems are an attractive target for crackers. Further, because of the agency&#8217;s role in cybersecurity monitoring, defacements such as this one are embarrassingly problematic.</p>

<h3>Zone-H.org</h3>

<p><a href="http://www.zone-h.org">Zone-H.org</a>, a site hosted in France which has been around since 2002, hosts an archive of defaced web sites. In January 2007 the site itself was a victim of a pseudo defacement, when a team from Saudi Arabia gained access to the registrar&#8217;s administrative panel and redirected the zone-h.org domain name to a different IP. The site&#8217;s mission is very similar to the defacement archive that used to be maintained at <a href="http://attrition.org">attrition.org</a>. Both have been the subject of criticism over the years, the suggestion being that hosting the archive is itself an incentive for site defacements. The counter to this is that without the central archiving of the evidence of web site defacements, the problem would be less known and understood by the security community. Companies may also try to sweep such episodes under the rug. Besides, the site defacements would simply be posted in other places (forums and similar web sites).</p>

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/06/iphone-4-ordering-and-session-switching/">iPhone 4 Ordering and Session Switching</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/06/newsweek-reports-zombie-invasion/">Newsweek Reports Zombie Invasion</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/06/going-after-bp/">Going After BP</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/05/mays-patch-tuesday/">May&#8217;s Patch Tuesday</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/03/3473/">March&#8217;s Patch Tuesday</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2009/10/nsa-gov-site-defacement/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Now I will believe that there are unicorns&#8230;</title>
		<link>http://praetorianprefect.com/archives/2009/04/now-i-will-believe-that-there-are-unicorns/</link>
		<comments>http://praetorianprefect.com/archives/2009/04/now-i-will-believe-that-there-are-unicorns/#comments</comments>
		<pubDate>Tue, 28 Apr 2009 04:17:59 +0000</pubDate>
		<dc:creator>Prefect</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Web Site Defacement]]></category>
		<category><![CDATA[espn]]></category>

		<guid isPermaLink="false">http://praetorianprefect.com/?p=13</guid>
		<description><![CDATA[Anyone who looked at ESPN online today (04/27/09) may find themselves agreeing with Mr. Shakespeare. Starting a little after 4pm EST you may have noticed a spike in chatter on Twitter related to <a href="http://www.espn.com">ESPN.com</a>.  A high profile web site defacement occurred on the sports news web site where the <a href="http://www.cornify.com">Cornify script</a> was invoked by a Javascript using keystokes known as the <a href="http://en.wikipedia.org/wiki/Konami_code">Konami code</a>.]]></description>
			<content:encoded><![CDATA[<p>Anyone who looked at ESPN online today (04/27/09) may find themselves agreeing with Mr. Shakespeare. Starting a little after 4pm EST you may have noticed a spike in chatter on Twitter related to <a href="http://www.espn.com">ESPN.com</a>.  A high profile web site defacement occurred on the sports news web site where the <a href="http://www.cornify.com">Cornify script</a> by <a href="http://chri.sto.ph/">Christoph Helzle</a> was invoked by a Javascript using keystokes known as the <a href="http://en.wikipedia.org/wiki/Konami_code">Konami code</a>.</p>

<div id="attachment_16" class="wp-caption alignnone" style="width: 610px"><a href="http://praetorianprefect.com/wp-content/uploads/2009/04/espn_defacement.png"><img src="http://praetorianprefect.com/wp-content/uploads/2009/04/espn_defacement.png" alt="ESPN is cornified." title="espn_defacement" width="600" height="450" class="size-full wp-image-16" /></a><p class="wp-caption-text">ESPN is cornified.</p></div><br /></p>

<p>For those who have not played Contra in a while, the Konami code is up,up,down,down,left,right,left,right,b,a,enter (it used to be good for 30 lives among other things in popular video game titles, such as Contra or Life Force).  Cornify, as the web site implies, provides unicorns and rainbows on demand, essentially appending pictures of unicorns to div tags randomly around the web page.</p>

<p>References to the Cornify script showed up in two places on the web site.  The first, at the top of the page following the &lt;head&gt; tag was a simple href reference to the cornify web site.</p>

<p>The second part of the script, responsible for the Konami code and the call to cornify.com, is found in one of the external Javascript files: <a href="http://a.espncdn.com/prod/scripts/espn.core.min.200904211701.js">http://a.espncdn.com/prod/scripts/espn.core.min.200904211701.js</a></p>

<p>Here is the relevant snippet, you will note the variable c contains the references for the <a href="http://www.quirksmode.org/js/keys.html">keydown</a> event:</p>

<pre><code>(jQuery);
(function(b){var d=[],c="38,38,40,40,37,39,37,39,66,65";
b(document).keydown(function(f){d.push(f.keyCode);
if(d.toString().indexOf(c)&gt;=0){b(document).unbind("keydown",arguments.callee);
b.getScript("http://www.cornify.com/js/cornify.js",function(){cornify_add();
b(document).keydown(cornify_add)
</code></pre>

<p>How the script ended up on the ESPN web site is anyone’s guess at this point in time, ESPN has not yet released a statement.  Speculation abounds on web forums and in blog comments as to whether this was as a result of some third party attack or a prank by an ESPN staffer or consultant.  One comment even suggested that ESPN did this on purpose as a viral marketing ploy, however this seems unlikely.  Imagine the board meeting where someone suggests: &#8220;Gentleman I&#8217;ve got it, the secret to sports web site traffic. It&#8217;s unicorns&#8221;.</p>

<p>If you want a demonstration of what the Cornify script does, have fun clicking the image below:</p>

<p><a href="http://www.cornify.com" onclick="cornify_add();return false;"><img src="http://www.cornify.com/assets/cornify.gif" width="61" height="16" border="0" alt="Cornify" /></a><script type="text/javascript" src="http://www.cornify.com/js/cornify.js"></script><br /><br /></p>

<h3>Updates</h3>

<p>04/29/09 &#8211; Keith Lam, a developer for the ESPN web sites, confirmed that <a href="http://keithlam.com/2009/04/28/espncom-unicorns/">the script was a prank</a>, added March 31st by a developer as an April Fools joke, and largely unnoticed until the post on Kotatu.  You will note that Keith took some grief on Twitter for his role in removing the Javascript: <a href="http://search.twitter.com/search?q=&amp;ands=&amp;phrase=keithlam&amp;ors=&amp;nots=&amp;tag=&amp;lang=all&amp;from=&amp;to=&amp;ref=&amp;near=&amp;within=15&amp;units=mi&amp;since=2009-04-27&amp;until=2009-04-27&amp;rpp=45">conversation on Twitter</a>.</p>

<h3>References</h3>

<ul>
<li>The Javascript source from Cornify: <a href="http://www.cornify.com/js/cornify.js">http://www.cornify.com/js/cornify.js</a></li>
<li>Wired Magazine referenced Cornify back in February: <a href="http://www.wired.com/sterling/2009/02/proof-why-the-c.html">http://www.wired.com/sterling/2009/02/proof-why-the-c.html</a></li>
<li>Paul Irish wrote a good blog post about his integrating the Cornify javascript with the Konami code back in February: <a href="http://paulirish.com/2009/cornify-easter-egg-with-jquery/">http://paulirish.com/2009/cornify-easter-egg-with-jquery/</a></li>
<li>Kotaku broke the story early on making ESPN magical: <a href="http://kotaku.com/5230185/the-konami-code-makes-espncom-magical">http://kotaku.com/5230185/the-konami-code-makes-espncom-magical</a></li>
</ul>

<p><strong>Related Posts:</strong></p>
<ul>
<li><a href="http://praetorianprefect.com/archives/2010/06/newsweek-reports-zombie-invasion/">Newsweek Reports Zombie Invasion</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/06/going-after-bp/">Going After BP</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/congressional-web-site-defacements-follow-the-state-of-the-union/">Congressional Web Site Defacements Follow the State of the Union</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/umm-techcrunch-defacement-two-in-24-hours/">Umm&#8230;TechCrunch? Defacement Two in 24 Hours</a></li>
<li><a href="http://praetorianprefect.com/archives/2010/01/techcrunched-techcrunch-the-victim-of-a-defacement/">TechCrunched &#8211; TechCrunch the Victim of a Defacement</a></li>
</ul><br />
]]></content:encoded>
			<wfw:commentRss>http://praetorianprefect.com/archives/2009/04/now-i-will-believe-that-there-are-unicorns/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
