Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 08-02-2011, 04:13 AM   #1
TheSenator
Too lazy to set a custom title
 
TheSenator's Avatar
 
Industry Role:
Join Date: Feb 2003
Location: NJ
Posts: 13,332
Zero Day Vulnerability in many WordPress Themes

If you are using a theme that re-sizes images then you are mostly likely using a version of TimThumb.php.

There is a fix....

URL: http://markmaunder.com/2011/zero-day...dpress-themes/
================
Update: Ben, the developer of timthumb has been in contact and is working on a fix. His own site was hacked Friday using the same method. I?ve submitted a tiny patch and if you?re a solid PHP hacker it?d be great if you could eyeball the code with us and submit a patch (really easy to do on Google code) if you spot any other opportunities for cleanup (there are many). Given enough eyeballs? you know the quote.

The Exec summary: An image resizing utility called timthumb.php is widely used by many WordPress themes. Google shows over 39 million results for the script name. If your WordPress theme is bundled with an unmodified timthumb.php as many commercial and free themes are, then you should immediately either remove it or edit it and set the $allowedSites array to be empty. The utility only does a partial match on hostnames allowing hackers to upload and execute arbitrary PHP code in your timthumb cache directory. I haven?t audited the rest of the code, so this may or may not fix all vulnerabilities. Also recursively grep your WordPress directory and subdirs for the base64_decode function and look out for long encoded strings to check if you?ve been compromised..............
http://markmaunder.com/2011/zero-day...dpress-themes/
__________________
ISeekGirls.com since 2005
TheSenator is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-02-2011, 06:36 AM   #2
paymeback
Confirmed User
 
paymeback's Avatar
 
Join Date: May 2005
Location: Sydney, Australia
Posts: 1,478
Bump fixed mine up, thanks
__________________
ICQ:36-43-49-11
paymeback is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-02-2011, 06:56 AM   #3
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,359
i dont use it
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-02-2011, 08:54 AM   #4
JamesGw
Confirmed User
 
JamesGw's Avatar
 
Industry Role:
Join Date: Apr 2011
Posts: 1,237
Thanks for this.
__________________
Giggles.com has a huge selection of sex toys. Need backlinks? Ask to guest post on our adult blog.
JamesGw is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-02-2011, 08:54 AM   #5
TrustCash
Confirmed User
 
TrustCash's Avatar
 
Industry Role:
Join Date: Jul 2011
Posts: 344
Thanks for the heads up, man. :-)
__________________
TrustCash is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-02-2011, 09:14 AM   #6
alias
aliasx
 
alias's Avatar
 
Join Date: Apr 2001
Posts: 19,010
Thanks, had it on a couple blogs.
__________________
https://porncorporation.com
alias is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-02-2011, 09:17 AM   #7
Brujah
Beer Money Baron
 
Brujah's Avatar
 
Industry Role:
Join Date: Jan 2001
Location: brujah / gmail
Posts: 22,157
A lot of Themeforest authors rely on TimThumb heavily instead of using WP built-in functions. Definitely check your themforest themes for timthumb.php
__________________
Brujah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-02-2011, 09:40 AM   #8
TheSenator
Too lazy to set a custom title
 
TheSenator's Avatar
 
Industry Role:
Join Date: Feb 2003
Location: NJ
Posts: 13,332
Quote:
Originally Posted by Brujah View Post
A lot of Themeforest authors rely on TimThumb heavily instead of using WP built-in functions. Definitely check your themforest themes for timthumb.php
Fuck...

Everybody pretty much uses this script or modify it a bit.

Well, at least I now know how to exploit a WordPress site using TimThumb
__________________
ISeekGirls.com since 2005
TheSenator is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-02-2011, 10:32 AM   #9
Brujah
Beer Money Baron
 
Brujah's Avatar
 
Industry Role:
Join Date: Jan 2001
Location: brujah / gmail
Posts: 22,157
Discussion on Google Code seems to be ongoing about whether the fix is good enough or not.
http://code.google.com/p/timthumb/issues/detail?id=212
__________________
Brujah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-02-2011, 10:45 AM   #10
CyberHustler
Unregistered Abuser
 
Industry Role:
Join Date: Feb 2006
Posts: 25,659
Sucks for you guys...
CyberHustler is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-02-2011, 11:21 AM   #11
cooldude7
Confirmed User
 
cooldude7's Avatar
 
Industry Role:
Join Date: Nov 2009
Location: Heaven
Posts: 4,306
when the day wil come, when wp wont need updates....?
cooldude7 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-02-2011, 11:28 AM   #12
Brujah
Beer Money Baron
 
Brujah's Avatar
 
Industry Role:
Join Date: Jan 2001
Location: brujah / gmail
Posts: 22,157
Quote:
Originally Posted by cooldude7 View Post
when the day wil come, when wp wont need updates....?
It's important to note that this is not WordPress. It's something separate that several theme authors and plugin authors have used to make the creation of images of various sizes easier.
__________________
Brujah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-02-2011, 12:09 PM   #13
harvey
Confirmed User
 
harvey's Avatar
 
Industry Role:
Join Date: Jul 2001
Location: 127.0.0.1
Posts: 9,266
Quote:
Originally Posted by cooldude7 View Post
when the day wil come, when wp wont need updates....?
when you have something that is 4 or 5 years ahead of the standard you may find that things may need correction here and there. The good news is that they are actually corrected. Think about this: is absolutely impossible for any program, piece of software, code snippet, whatever to be as advanced as a collaborative environment with tens of thousands programmers behind it

Quote:
Originally Posted by Brujah View Post
It's important to note that this is not WordPress.
this.


either way, personally, I couldn't care less, I don't use timthumbs since like 4 years ago. It was nice and OK if you didn't mind the look of your site, but it gets very random results. WP built in image features might not be as complete, but they're 100 times better
__________________
This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth
harvey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-02-2011, 12:19 PM   #14
sicone
Retired
 
sicone's Avatar
 
Industry Role:
Join Date: Jan 2004
Location: Sac
Posts: 18,453
Dumb question here... but is there a quick way to search my WP installs for this file? I know it's not one I have installed as a plugin but as said many themes and plugins use it that I may not be aware of.
__________________
sicone is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-02-2011, 01:01 PM   #15
TheSenator
Too lazy to set a custom title
 
TheSenator's Avatar
 
Industry Role:
Join Date: Feb 2003
Location: NJ
Posts: 13,332
Quote:
Originally Posted by sicone View Post
Dumb question here... but is there a quick way to search my WP installs for this file? I know it's not one I have installed as a plugin but as said many themes and plugins use it that I may not be aware of.
Look in the /wp-content/themes/"theme folder you are using*/timthumb.php or thumb.php
__________________
ISeekGirls.com since 2005
TheSenator is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-02-2011, 01:12 PM   #16
Highest Def
In the Cave of Gold
 
Highest Def's Avatar
 
Industry Role:
Join Date: Jun 2010
Location: ONLINE
Posts: 660
Quote:
Originally Posted by sicone View Post
Dumb question here... but is there a quick way to search my WP installs for this file? I know it's not one I have installed as a plugin but as said many themes and plugins use it that I may not be aware of.
It should be listed in the admin under the editor, where you edit all the theme files including CSS. It's usually listed near the bottom and the 'allowedsites' array will be pretty close to the top of the file. *not all themes that use it will have it listed here but odds are that it is.
__________________
Highest Def is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-02-2011, 07:28 PM   #17
Barry-xlovecam
It's 42
 
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
Quote:
Originally Posted by sicone View Post
Dumb question here... but is there a quick way to search my WP installs for this file? I know it's not one I have installed as a plugin but as said many themes and plugins use it that I may not be aware of.
Code:
ssh;

user@server$ locate timthumb.php

user@server$ locate thumb.php
Barry-xlovecam is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-02-2011, 09:03 PM   #18
V_RocKs
Damn Right I Kiss Ass!
 
Industry Role:
Join Date: Dec 2003
Location: Cowtown, USA
Posts: 32,406
find ./ -name timthumb.php
V_RocKs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-03-2011, 08:46 AM   #19
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,359
Quote:
Originally Posted by Barry-xlovecam View Post
Code:
ssh;

user@server$ locate timthumb.php

user@server$ locate thumb.php
find would be better, locate only works if the locate db is up to date.
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-03-2011, 08:56 AM   #20
cooldude7
Confirmed User
 
cooldude7's Avatar
 
Industry Role:
Join Date: Nov 2009
Location: Heaven
Posts: 4,306
luckily, i dont have timthumb.php on my server.
cooldude7 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-03-2011, 09:11 AM   #21
V_RocKs
Damn Right I Kiss Ass!
 
Industry Role:
Join Date: Dec 2003
Location: Cowtown, USA
Posts: 32,406
Quote:
Originally Posted by cooldude7 View Post
luckily, i dont have timthumb.php on my server.
No luck about it Cool Dude. It's called skill!
V_RocKs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-03-2011, 12:22 PM   #22
cooldude7
Confirmed User
 
cooldude7's Avatar
 
Industry Role:
Join Date: Nov 2009
Location: Heaven
Posts: 4,306
Quote:
Originally Posted by V_RocKs View Post
No luck about it Cool Dude. It's called skill!
damn, just noticed , the theme i am working on for current project is using older version of timthumb, so 1st i upgraded that file to
http://code.google.com/p/timthumb/so...k/timthumb.php

and then secured it by

http://markmaunder.com/2011/zero-day...dpress-themes/


thanks guys....
cooldude7 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-03-2011, 01:05 PM   #23
Barry-xlovecam
It's 42
 
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
Quote:
Originally Posted by fris View Post
find would be better, locate only works if the locate db is up to date.
Code:
stat /var/lib/mlocate/mlocate.db
  File: `/var/lib/mlocate/mlocate.db'
  Size: 19579819  	Blocks: 38248      IO Block: 4096   regular file
Device: 801h/2049d	Inode: 657262      Links: 1
Access: (0640/-rw-r-----)  Uid: (    0/    root)   Gid: (  108/ mlocate)
Access: 2011-08-03 16:02:09.454826368 -0400
Modify: 2011-08-03 07:48:35.783993745 -0400
Change: 2011-08-03 07:48:35.783993745 -0400
Yeah, mine is 8 hours + old ...
Barry-xlovecam is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-03-2011, 02:04 PM   #24
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,359
Quote:
Originally Posted by Barry-xlovecam View Post
Code:
stat /var/lib/mlocate/mlocate.db
  File: `/var/lib/mlocate/mlocate.db'
  Size: 19579819  	Blocks: 38248      IO Block: 4096   regular file
Device: 801h/2049d	Inode: 657262      Links: 1
Access: (0640/-rw-r-----)  Uid: (    0/    root)   Gid: (  108/ mlocate)
Access: 2011-08-03 16:02:09.454826368 -0400
Modify: 2011-08-03 07:48:35.783993745 -0400
Change: 2011-08-03 07:48:35.783993745 -0400
Yeah, mine is 8 hours + old ...
plus thats freebsd isnt it?
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


WP Stuff
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-03-2011, 02:31 PM   #25
Barry-xlovecam
It's 42
 
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
Quote:
Originally Posted by fris View Post
plus thats freebsd isnt it?

No, a LINUX ...
Barry-xlovecam is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 08-18-2011, 10:41 AM   #26
tonyparra
Confirmed User
 
tonyparra's Avatar
 
Industry Role:
Join Date: Jul 2008
Location: In your back seat with duck tape
Posts: 4,568
i have dozens that may use timthumb not going to be a fun weekend
__________________

High Performance Vps $10 Linode
Manage your Digital Ocean, Linode, or Favorite Cloud Server. Simple, fast, and secure Server Pilot
tonyparra is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.