Page 1 of 1

Wordpress TimThumb 2.8.13 WebShot Remote Code Execution

Posted: Thu Jun 26, 2014 2:46 am
by elialum
Hi,

http://seclists.org/fulldisclosure/2014/Jun/117

Is this something a modsec rule can handle ?

Eli.

Re: Wordpress TimThumb 2.8.13 WebShot Remote Code Execution

Posted: Thu Jun 26, 2014 2:12 pm
by mikeshinn
Thank for the question. Yes, a rule can stop this, and you're already protected if you use our rules. Our timthumb protection rules already stopped this, so no new rule was necessary. Our timthumb protection rules look for non-image uploads in the src arg, so this is already rejected.

Re: Wordpress TimThumb 2.8.13 WebShot Remote Code Execution

Posted: Thu Jun 26, 2014 5:53 pm
by Imaging
Mike:

On a related note, what is your take on running Wordpress as a CMS in production?

Assuming ASL is installed, is it reasonably secure? I'd assume so but was curious if you didn't recommend using it in general.

If not, do you have a preferred CMS?

Re: Wordpress TimThumb 2.8.13 WebShot Remote Code Execution

Posted: Fri Jun 27, 2014 7:00 am
by faris
WP is OK as a CMS. At least it is easy for the end user to update, add pages and stuff. It is pretty heavy though and pages tend to be massively full of code, both HTML and JavaScript.

Oddly, on my systems, only two out of ten WP installations have a timthumb.php
And please don't misread what that file says. webshots is not disabled by default. It is only disabled if not defined elsewhere, including via an argument. It is best to add a hard disable underneath the if(!defined...) line.

i.e. underneath

Code: Select all

if(! defined('WEBSHOT_ENABLED') )       define ('WEBSHOT_ENABLED', false);
add

Code: Select all

define ('WEBSHOT_ENABLED', false);
Please note that I don't know if this is the recommended/correct way. It is just the way I did it.

Re: Wordpress TimThumb 2.8.13 WebShot Remote Code Execution

Posted: Fri Jun 27, 2014 9:55 am
by mikeshinn
Assuming ASL is installed, is it reasonably secure? I'd assume so but was curious if you didn't recommend using it in general.
You are correct. With ASL installed, WordPress is reasonably secure.

Re: Wordpress TimThumb 2.8.13 WebShot Remote Code Execution

Posted: Fri Jun 27, 2014 1:09 pm
by Imaging
Great, thanks for the comments about Wordpress.