Welcome, Guest. Please login or register.
Did you miss your activation email?
14 Mar 2010, 16:43

Login with username, password and session length
Home Chat Help Search Calendar Login Register
Pages: [1]
Print
Author Topic: FYI - Found possible new CMSMS Vulnerability  (Read 6230 times)
0 Members and 1 Guest are viewing this topic.
johnbmcdonald
Forum Members
**

Karma: 0
Offline Offline

Posts: 60

Location: Edmond, OK, USA



WWW
« on: 02 Jan 2008, 10:15 »

http://secwatch.org/advisories/1019900/

Bugtraq ID:     BID#27074

 

Description:

An input validation vulnerability in the TinyMCE module for CMS Made Simple has been reported, which can be exploited by remote users to conduct SQL injection attacks.

User-supplied input passed to the "templateid" parameter in the modules/TinyMCE/content_css.php script is not correctly sanitised before being used in a SQL query.  This can be exploited by a specially crafted parameter value to execute arbitrary SQL commands on the underlying database.

 

Affected:

CMS Made Simple version 1.2.2. Other versions may also be affected.

 

Proof of Concept:

SQL Injection:
http://[target]/modules/TinyMCE/content_css.php?templateid=[SQL]

 

Solution:

There was no vendor-supplied solution at the time of entry.

Edit source code manually to ensure user-supplied input is correctly sanitised.

Filter malicious characters and character sequences via a HTTP proxy or firewall with URL filtering capabilities.

Credits:

EgiX

 
Logged
tsw
Administrator
Power Poster
*****

Karma: 49
Offline Offline

Posts: 1417

Location: Finland


« Reply #1 on: 02 Jan 2008, 10:27 »

wendor supplied hotfix available now


 http://cmsmadesimple.org/pastebin/1440


or uninstall tinymce and remove its files
Logged
Pierre M.
Support Team member
Support Guru
Power Poster
****

Karma: 32
Offline Offline

Posts: 3736

Location: Paris

Please keep it simple


« Reply #2 on: 02 Jan 2008, 12:03 »

Hello,

thank you for reporting and thanks devs for the hot fix.

Filter malicious characters and character sequences via (...) URL filtering capabilities.
...as described in CMSms documentation about URL filtering :
http://wiki.cmsmadesimple.org/index.php/User_Handbook/Installation/Optional_Settings

Pierre M.
Logged

-- Pierre, support team member. comodrateur du forum francophone.
Please read "how to submit installation/support requests" before posting. Don't send private messages to ask for support.
Want to contribute to CMSms ? Improve the wiki with your forum account.
johnbmcdonald
Forum Members
**

Karma: 0
Offline Offline

Posts: 60

Location: Edmond, OK, USA



WWW
« Reply #3 on: 02 Jan 2008, 12:44 »

Your welcome. I am glad to help where I can.

BTW: I juist ran across another page that was modified.

http://www.cmsmadesimple.org/features

John

Logged
Duketown
Power Poster
***

Karma: 7
Offline Offline

Posts: 595

Location: 's-Hertogenbosch, Netherlands



WWW
« Reply #4 on: 02 Jan 2008, 14:47 »

That is a pitty, some more work to do:
the development\roadmap has been changed as well.
 Embarrassed
Logged

Buy your copy of how to build a site using CMSMS at the Duketown Shop!
Our modules:
Cart Made Simple, Shop Made Simple, Service Desk and Team Sport Scores
Pierre M.
Support Team member
Support Guru
Power Poster
****

Karma: 32
Offline Offline

Posts: 3736

Location: Paris

Please keep it simple


« Reply #5 on: 02 Jan 2008, 14:53 »

BTW: I juist ran across another page that was modified.
http://www.cmsmadesimple.org/features

Yes, I have seen.
And I have tried http://www.cmsmadesimple.org/features?sometextthanSHOULDbefiltered=junk/http://bad.site.tld
and it is fixed in between (but not filtered). Funny
Logged

-- Pierre, support team member. comodrateur du forum francophone.
Please read "how to submit installation/support requests" before posting. Don't send private messages to ask for support.
Want to contribute to CMSms ? Improve the wiki with your forum account.
hprofet
Peanut Gallery


Karma: 0
Offline Offline

Posts: 3


« Reply #6 on: 02 Jan 2008, 14:55 »

I think the template itself was changed not individual pages...
Logged
LC350
Peanut Gallery


Karma: 0
Offline Offline

Posts: 8


« Reply #7 on: 04 Jan 2008, 15:43 »

Hello,

I just came across cmsms today and downloaded 1.2.3 (after trying many others)

Then I came across this thread.

Can anyone tell me if 1.2.3 is now clear as far as the SQL injection, or do I still need to disable or remove tiny mce?

I really feel for the dev team, because I am so impressed by the package when compared with drupal/joomla.

Thank you for any advice.
Logged
calguy1000
CMS GURU - 2nd Tier Support.
Dev Team Member
Power Poster
*****

Karma: 154
Offline Offline

Posts: 4728

Location: Formerly in Calgary, Canada

Gravatar

Second Tier support


WWW
« Reply #8 on: 04 Jan 2008, 15:44 »

1.2.3 is the 'fixed version'.  it takes care of the afore mentiond SQL injection vulnerability. 

Go ahead, install, play around.
Logged

Questions relating to my modules are answered to paying customers, or when I have the time and motivation to.
----------------
Don't make me angry..... you won't like me when I'm angry....
Follow me on twitter
LC350
Peanut Gallery


Karma: 0
Offline Offline

Posts: 8


« Reply #9 on: 04 Jan 2008, 15:51 »

Thanks very much for the quick reply. Much appreciated.

So is it ok to enable/use the tinymce editor with 1.2.3
?

Thanks again.
Logged
calguy1000
CMS GURU - 2nd Tier Support.
Dev Team Member
Power Poster
*****

Karma: 154
Offline Offline

Posts: 4728

Location: Formerly in Calgary, Canada

Gravatar

Second Tier support


WWW
« Reply #10 on: 04 Jan 2008, 16:11 »

Yes, 1.2.3 fixed the vulnerability in Tiny.
Logged

Questions relating to my modules are answered to paying customers, or when I have the time and motivation to.
----------------
Don't make me angry..... you won't like me when I'm angry....
Follow me on twitter
LC350
Peanut Gallery


Karma: 0
Offline Offline

Posts: 8


« Reply #11 on: 04 Jan 2008, 16:17 »

Thank you very much for clarifying that.

Looking forward to becoming familiar with cmsms, maybe asking a few questions, and then hopefully giving a bit back to the community.

Cheers.
Logged
Pages: [1]
Print
Jump to: