Site Hacked... PDF Print E-mail
Written by Andrew Chapman   
Monday, 03 November 2008 14:00

Well we're finally back after a few days of being offline. Some random attack by a self proclamed 'Iranian Hacker' took my site down for a couple of days. Thankfully all of the resources were backed up, and we're back online despite the interruption. After a little investigation, I think the 'exploit' was little more than an attack on my Joomla install, playing on a security hole in Joomla 1.5.x. The site has been re-instated and updated to hopefully divert such maligned simpletons in the future. For those of you who are interested and run Joomla as your CMS of choice, please read on for the security bulletin release and the update from Joomla.

  • Project: Joomla!
  • SubProject: com_user
  • Severity: Critical
  • Versions: 1.5.5 and all previous 1.5 releases
  • Exploit type: Password Reset Forgery
  • Reported Date: 2008-August-12
  • Fixed Date: 2008-August-12

Description

A flaw in the reset token validation mechanism allows for non-validating tokens to be forged. This will allow an unauthenticated, unauthorized user to reset the password of the first enabled user (lowest id). Typically, this is an administrator user. Note, that changing the first users username may lessen the impact of this exploit (since the person who changed the password does not know the login associated with the new password). However, the only way to completely rectify the issue is to upgrade to 1.5.6 (or patch the /components/com_user/models/reset.php file).

Affected Installs

All 1.5.x installs prior to and including 1.5.5 are affected.

Solution

Upgrade to latest Joomla! version (1.5.6 or newer), or patch /components/com_user/models/reset.php with the code below:

After global $mainframe; on line 113 of reset.php, add:

if(strlen($token) != 32) { 	$this->setError(JText::_('INVALID_TOKEN')); 	return false; } 

Reported By

Joomla! Bug Squad Member Marijke Stuivenberg.

Long story short - UPDATE YOUR JOOMLA! don't be lazy like me!



Add this page to your favorite Social Bookmarking websites
Reddit! Del.icio.us! Mixx! Free and Open Source Software News Google! Live! Facebook! StumbleUpon! Yahoo! Free Joomla PHP extensions, software, information and tutorials.

Comments

Name *
URL
Code   
ChronoComments by Joomla Professional Solutions
Submit Comment
 
Banner

Syndicate

Tag Cloud

RocketTheme Joomla Templates