Exponent CMS Beta 2.1 Security Release
Tuesday, May 3, 2011Exponent 2.0 Beta 2.1 was released today in response to the report of a security vulnerability discovered by a community member. The majority of Exponent 2.0 sites are affected by this vulnerability, and all Exponent CMS users are highly advised to update their code.
The issue can be corrected in one of 3 ways:
1) Manually - Simply open up /framework/datatypes/user.php, and look for the save() method:
public function save($overrideUsername = false) {
global $db;
// if someone is trying to make this user an admin, lets make sure they have permission to do so.
if(isset($params['is_admin']) || isset($params['is_acting_admin'])) $this->checkAdminFlags();
// if the site is configured to use the email addy as the username we need to force the
// the email address into the username field.
if (USER_REGISTRATION_USE_EMAIL == 1 && !empty($this->email) && $overrideUsername == false) $this->username = $this->email;
parent::save();
}
The line in question is:
if(isset($params['is_admin']) || isset($params['is_acting_admin'])) $this->checkAdminFlags();
Change this to:
$this->checkAdminFlags();
and that's the fix.
2) Upgrade your site to Beta 2.1 - All previous releases have been removed from the Github Download page, except for Beta 2.1 where the issue has been corrected.
3) Apply the patch - The Team has posted a patch on the download page which can be installed via Exponent's "Upload Extension" feature. This method may cause issues in older versions of Exponent 2.0, but anything past Beta 1 will be fine.
Community member Ron Miller has written a python script that will correct this issue in batch on multiple sites. It's extremely useful for servers running many Exponent 2.0 websites.
Please post any questions or comments about this issue in our Security Forum.
Recent Tweets
- on 12/23/2011 via Twitter for Mac, exponentcms wrote:
- Nothing is sweeter than a little Holiday Honey. Check out Exponent's latest release: http://t.co/c85MjuBv
- on 11/17/2011 via TweetDeck (
OICWebDev), EcommWebBlog wrote: - Ecommerce Benefits of @ExponentCMS: http://t.co/vlP9yEkO #Ecommerce #Business #SEO #SmallBiz #SMB #Marketing #Sell
- on 11/14/2011 via TweetDeck (
OICWebDev), IncreaseRank wrote: - Creating & Optimizing a Google+ Business Profile: http://t.co/M7OZAtoR #GooglePlus #Google #Marketing #SmallBiz #Busin ...
Forum Activity
- Feb 22, 2012 @ 12:41 PM by dleffler ExponentCMS.org | Re: v2.0.4 has been released
- Feb 22, 2012 @ 12:41 PM by dleffler Developing for Exponent | Re: v2.0.4 has been released
- Feb 22, 2012 @ 12:41 PM by dleffler Installation | Re: v2.0.4 has been released
- Feb 22, 2012 @ 12:41 PM by dleffler General Support | Re: v2.0.4 has been released
- Feb 22, 2012 @ 12:41 PM by dleffler Github and Git | Re: v2.0.4 has been released
- Feb 22, 2012 @ 12:41 PM by dleffler Security | Re: v2.0.4 has been released
File a Bug Report
Help Improve ExponentWho Did This?
Exponent CMS is written and maintained by Online Innovative Creations (a.k.a. OIC Group, Inc.), a Peoria web design and development company
Content Management, Simple.