Sphinn Home » Blogging
Different from the hidden links injection reported earlier this month, this one involves the attacker creating a new physical directory in your Wordpress installation, and populating it with HTML files that then use Javascript to redirect visitors to phishing and other sites. Over 21,000 pages on sites that have been hacked have been indexed by Google in the past week (according to their date based advanced search).
19 Comments     

Comments

from mvandemar 469 days ago #
Votes: 0 | Vote:
+ -

Btw, I just moved Smackdown last night to a new server, which is when I discovered all this (on a different blog I moved, Smackdown has not been hit as of yet). If anyone is having issues viewing the site due to DNS not propogating yet please let me know, thanks. :)

from johnandrews 468 days ago #
Votes: 0 | Vote:
+ -

It would be really helpful if people writing about "vulnerabilities" post the versions of software they are using, the hosting, the plugins, etc. because otherwise this is just scary noise. I'm not citicising this sphinn post... but the pages behind it are lacking such detail.

If you read the linked pages and the linked linked pages you still find nothing helpful... no details and some cryptic "use your brain..do your own homework.. I know but I'm not telling" comments from a so-called security person. Puhleeze.

from johnandrews 468 days ago #
Votes: 0 | Vote:
+ -

By the way it looks like this will be another situation that would have been blocked by mod_security, so if your sever is not secured yet here's another reason to run mod_security. There are numerous web pages on hardening a Wordpress install though mod_security.

from PocketSEO 468 days ago #
Votes: 0 | Vote:
+ -

WP version info is available here (but not plugins) --
http://www.google.com/search?q=inurl%3A%22wp-content%2F1%2F%22&num=100

I am running mod_security and still got hacked and penalized.  Here is a way to catch it early:
http://sphinn.com/story/35962

from NickWilsdon 468 days ago #
Votes: 1 | Vote:
+ -

It's usually more important to keep your environment updated than the specific copy of WP. For example all of osCommerce venerabilities were connected to earlier copies of PHP4x.

Everyone should be running PHP5x these days (3yrs old now) so I would check that on your host.

As John says, mod_security can help a lot but it depends on the rules you set up. As John says, there is a lot written on WP and mod_security. This is a good PDF on the subject:

http://blogsecurity.net/projects/wordpress-modsecurity-paper.pdf

HTH






from tamar 468 days ago #
Votes: 0 | Vote:
+ -

Reporting this to Sphinn is one thing, but does WordPress know about it yet?  I don't see any acknowledgement of it on WP's main site.

from DarkMatter 468 days ago #
Votes: 0 | Vote:
+ -

I got hit with this....pharma links at the bottom of every page, and it's displacing my footer. I'm using WP 2.3.3 with php5.

from mvandemar 468 days ago #
Votes: 0 | Vote:
+ -

It would be really helpful if people writing about "vulnerabilities" post the versions of software they are using, the hosting, the plugins, etc.

John, I was reporting on something that hit thousands of websites, I have no idea what they were all running. On one install I have PHP5 and just these plugins:

Akismet
Hello Dolly
http:BL WordPress Plugin 1.4
Login LockDown
SimpleTags

@tamar - It's been reported on the forums. It apparently started about a week ago.

@DarkMatter - the link injection exploit appears to actually be a different one.

from johnandrews 468 days ago # - show/hide this comment
Votes: -2 | Vote:
+ -

If you find this stuff interesting, take a look at the WP vulernability exposed last January as an example of how complex rooting out these things can be. If WP devs know about it, they need time to work through a solution before everyone else knows about it. When you call the locksmith to replace a broken lock, you don't tell the world until after the lock has been repaired.

Take a look at http://www.hardened-php.net/advisory_022007.141.html to see how the attacker gets admin access, and can then add whatever she wants to add to your blog. I don't know that this was ever accomplished, but it was said to have been addressed by WP devs. Just an example of how complicated it can get, yet still worthwhile for attackers to pursue.

from mvandemar 468 days ago #
Votes: 0 | Vote:
+ -

When you call the locksmith to replace a broken lock, you don't tell the world until after the lock has been repaired.

No, John, I'm sorry, but the "we shouldn't tell anyone" philosophy simply does not apply here. This exploit is being taken advantage of by hundreds of thousands of blog spam links being pointed at these infected pages across the web. These pages are being used as phishing attempts to gain peoples Google passwords. If I discovered an attack not already in the wild, then that would be one thing. This is not the case.

from johnandrews 468 days ago # - show/hide this comment
Votes: -2 | Vote:
+ -

@mvandemar if you know a better way to efficiently manage the Wordpress community of millions of publishers (who don't pay anything), feel free to contribute that to the Wordpress forums. In the mean time, the best way to handle an exploit is to fix it, which requires understanding.

You may call this attack "in the wild" but it's nothing compared to what would take place if someone laid out exactly how to abuse it. We're probably not talking about a simple coding error, but something that takes some thought to fix as well as exploit.

By the way I never advocated "we shouldn't tell anyone" and have never advocated security through obscurity. Thanks for not giving that impression any more. But if you think Wordpress should tell everyone "there are reports of an exploit, but we don't know what it is yet, and haven't confirmed it, but just wanted you to know" then every software publisher in the world probably fails to meet your standards.

from DianeV 468 days ago #
Votes: 0 | Vote:
+ -

johnandrews, thanks for the link. From that link:

With the reconstructed password hash it is possible to create a
WordPress login cookie that can be used to become admin.

Of course, that page was posted last year. But it's helpful to password-protect the wp-admin directory, so that even though they may have gotten the password, it's not just a straight walk into the admin panel.

Of course, if you do so, then you won't know that someone's gotten your admin password. So it's a good idea to change it regularly.

from tamar 467 days ago #
Votes: 1 | Vote:
+ -

Thanks Michael.  I guess the WP guys are too busy to come out with a patch. :(

from mvandemar 467 days ago #
Votes: 0 | Vote:
+ -

By the way I never advocated "we shouldn't tell anyone" and have never advocated security through obscurity. Thanks for not giving that impression any more.

John, please don't be an ass. Not telling people about it to keep it from spreading is "security through obscurity". What the hell else would you call it?

This is not a case of exposing more websites to the attack... since I know nothing about how it was carried out there really isn't that much chance of that happening, now is there?

These websites aren't defaced, and they aren't just carrying spammy links... they are serving as gateways for malicious behavior. There IS a temporary solution, and that is to delete the directory if you happen to see it. But no one can do that if they don't even know to look.

from smallbiztrends 467 days ago #
Votes: 0 | Vote:
+ -

Similar activity has been going on with earlier versions of WP dating back to at least the summer of 2007. The hackers may use different directories, such as the tmp directory. 

But this is the first I've seen of similar activity with 2.3.3. 

Another way to spot this activity (after the fact) is through Technorati.  Often the hackers create splog rings, i.e, spam blogs for the purpose of pointing to the illicit HTML files on your site  You could end up with 200 spam HTML files created on your blog, and then 10 made-for-hacking spam blogs each linking to every single one of the illicit URLs on your blog.  The result: 2000 (10 x 200) new Technorati links overnight.

from luca 463 days ago #
Votes: 0 | Vote:
+ -

i saw your post and thought i'd give this issue some importance, because i also use wordpress and a friend told me he got hacked.
so i wrote this article about the issue
http://websecurity.ro/blog/2008/03/28/wordpress-233-probably-a-0day-exploit/

from johnandrews 450 days ago # - show/hide this comment
Votes: -1 | Vote:
+ -



@mvandemeer if you have trouble with reading comprehension, skip my comments and read the others. I never said "we shouldn't tell anyone" and I don't advocate security through obscurity. I did say "If WP devs know about it, they need time to work through a solution before everyone else knows about it. When you call the locksmith to replace a broken lock, you don't tell the world until after the lock has been repaired." That is a very operational statement.

Read into it all you like, but I suggest keep your judgements to yourself unless they are backed by facts.


Admin Note: This comment has been edited. The comments by mvandemar are valid and do not constitute trolling.

from mvandemar 443 days ago # - show/hide this comment
Votes: -1 | Vote:
+ -

Admin Note: Comment removed. John Andrew's accusations were not justified, although nor was this reply.

from BrentCsutoras 443 days ago #
Votes: 0 | Vote:
+ -

@mvandemar

Keep it civil and intelligent.


Log in to comment or register here.

Sphinn Sponsors

Be a Sphinn Sponsor - Click Here

Search Marketing Expo

Save the date for:
SMX Singapore - July 2-3, 2009
SMX São Paulo - August 4-5
SMX East - October 5-7, 2009
SMX Stockholm - 12-13 October, 2009
SMX Mexico - November 11, 2009

Search Marketing Now

Learn more about search marketing through free online webcasts and webinars from our sister site Search Marketing Now.

Upcoming Webcasts: