Bekijk Volledige Versie : e107 website system Vulnerability
Artoor Petrovich
31/07/03, 13:59
Informations :
Advisory Name: e107 website system Vulnerability
Author: hiruvim <artoor@exfloyt.com>
Discover by: hiruvim <artoor@exfloyt.com>
Website vendor : http://e107.org
Affected System(s): All versions
Severity: High
Platform(s): Windows and Unix
Issue: Security holes enable attackers to get MySQL dump file with
users and passwords.
==================================================
Details:
In file /admin/db.php
........................
require_once("../class2.php");
if(IsSet($_POST['dump_sql'])){
getsql($mySQLdefaultdb);
exit;
}
[....]
require_once("auth.php");
........................
We can do dump_sql without authorization.
Exploit:
<form action="http://victim.org/admin/db.php">
<input type=submit name="dump_sql">
</form>
When pressed submit query button we will get MySQL dump file.
In dump file we will find username and passwd MD5 hash.
With admin password we can get full site control and access to
FileManager.
Vendor: Not contacted yet.
Patch:
in /admin/db.php
Before doing anything you will need tomove "require_once("auth.php");"
to the top of the file.
Sorry for my poor english:)
==============================
hiruvim <artoor@exfloyt.com>
Original document can be fount at http://0x90.ipsec.ru/e107.txt
Artoor,
First off, I ask as a concerned party as I use this software quite a bit
and for the fact that the vendor wasn't contacted before a 'High'
severity issue was release to the wild.
I'm currently unable to reproduce this at all. When I try the exploit
code as provided against e107 (version v0.551beta, not even the latest
version) it takes me to the admin's login page, which doesn't appear to
be a problem to me. This report says all versions of e107, however as
can be seen that is not the case. The latest version (v0.555beta) does
not have this vuln either (as I just upgraded my site to make sure it
wasn't still present). Did you by chance have 'Auto-Login' set for your
admin user on the PC you were testing from, or were you authenticated to
an e107 site as admin already without hitting 'Logout'?
As I said, more info on this would be great since as far as I can tell
this is a not an issue at all or I am just too dense to make the exploit
work as described.
Thanks,
Tim.
On Thu, 2003-07-24 at 11:49, Artoor Petrovich wrote:
> Informations :
>
>
> Advisory Name: e107 website system Vulnerability
>
> Author: hiruvim <artoor@exfloyt.com>
>
> Discover by: hiruvim <artoor@exfloyt.com>
>
> Website vendor : http://e107.org
>
> Affected System(s): All versions
>
> Severity: High
>
> Platform(s): Windows and Unix
>
> Issue: Security holes enable attackers to get MySQL dump file with
> users and passwords.
>
> ==================================================
> Details:
>
> In file /admin/db.php
> .......................
> require_once("../class2.php");
>
> if(IsSet($_POST['dump_sql'])){
> getsql($mySQLdefaultdb);
> exit;
> }
>
> [....]
> require_once("auth.php");
>
> .......................
>
> We can do dump_sql without authorization.
>
> Exploit:
>
> <form action="http://victim.org/admin/db.php">
> <input type=submit name="dump_sql">
> </form>
>
> When pressed submit query button we will get MySQL dump file.
>
> In dump file we will find username and passwd MD5 hash.
>
> With admin password we can get full site control and access to
> FileManager.
>
>
>
> Vendor: Not contacted yet.
>
> Patch:
>
> in /admin/db.php
>
> Before doing anything you will need tomove "require_once("auth.php");"
> to the top of the file.
>
> Sorry for my poor english:)
>
> ==============================
> hiruvim <artoor@exfloyt.com>
> Original document can be fount at http://0x90.ipsec.ru/e107.txt
>
Heh, I every site that i've come across running the e107 portal seems to ask
for admin login before you could use this exploit...Are you sure all
versions are vulnerable? Doesn't even work on my own system without asking
for login.
-----------------------------------------------------------------
>From: Artoor Petrovich Reply-To: Artoor Petrovich To:
>bugtraq@securityfocus.com Subject: e107 website system Vulnerability Date:
>Thu, 24 Jul 2003 19:49:47 +0400
>
>Informations :
>
>
>Advisory Name: e107 website system Vulnerability
>
>Author: hiruvim
>
>Discover by: hiruvim
>
>Website vendor : http://e107.org
>
>Affected System(s): All versions
>
>Severity: High
>
>Platform(s): Windows and Unix
>
>Issue: Security holes enable attackers to get MySQL dump file with users
>and passwords.
>
>================================================== Details:
>
>In file /admin/db.php .......................
>require_once("../class2.php");
>
>if(IsSet($_POST['dump_sql'])){ getsql($mySQLdefaultdb); exit; }
>
>[....] require_once("auth.php");
>
>.......................
>
>We can do dump_sql without authorization.
>
>Exploit:
>
>
>
>
>
>When pressed submit query button we will get MySQL dump file.
>
>In dump file we will find username and passwd MD5 hash.
>
>With admin password we can get full site control and access to FileManager.
>
>
>
>Vendor: Not contacted yet.
>
>Patch:
>
>in /admin/db.php
>
>Before doing anything you will need tomove "require_once("auth.php");" to
>the top of the file.
>
>Sorry for my poor english:)
>
>============================== hiruvim Original document can be fount at
>http://0x90.ipsec.ru/e107.txt
>
-----------------------
"You can stop me, but you can't stop us all...After all, we're all alike..."
- The Mentor
-----------------------
__________________________________________________ _______________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
Tjebbe de Winter
31/07/03, 14:00
On Thu, Jul 24, 2003 at 03:30:43PM -0500, nokio x0 wrote:
> Heh, I every site that i've come across running the e107 portal seems to ask
> for admin login before you could use this exploit...Are you sure all
> versions are vulnerable? Doesn't even work on my own system without asking
> for login.
See: http://e107.org/news.php
If you post the dump_sql variable with method POST, it'll work.
Regards,
---
Tjebbe...
-------------------------------------------------------------------------------
Tjebbe de Winter | Cysonet Managed Hosting | tjebbe @ cysonet.com
tel. +31 20 4703339 | Managing the buzzwords. | http://cyso.nl
-------------------------------------------------------------------------------
Steve Dunstan
31/07/03, 14:00
In-Reply-To: <1059078080.10973.171.camel@tyohn.sys.alabanza.com>
The db_dump code is protected against non-logged in users as are all
admin functions. If a registered member with full admin permissions (not
any admin, it -has- to be the main site admin who installed e107 in the
first place) is not seen then the login page is displayed. This has
always been the case, however if anyone is worried about this in any way
delete the db.php file in your /admin directory and use phpMyAdmin or
similar to perform database backups.
Steve Dunstan
[ jalist ]
[ jalist@e107.org ]
>Artoor,
>
>First off, I ask as a concerned party as I use this software quite a bit
>and for the fact that the vendor wasn't contacted before a 'High'
>severity issue was release to the wild.
>
>I'm currently unable to reproduce this at all. When I try the exploit
>code as provided against e107 (version v0.551beta, not even the latest
>version) it takes me to the admin's login page, which doesn't appear to
>be a problem to me. This report says all versions of e107, however as
>can be seen that is not the case. The latest version (v0.555beta) does
>not have this vuln either (as I just upgraded my site to make sure it
>wasn't still present). Did you by chance have 'Auto-Login' set for your
>admin user on the PC you were testing from, or were you authenticated to
>an e107 site as admin already without hitting 'Logout'?
>
>As I said, more info on this would be great since as far as I can tell
>this is a not an issue at all or I am just too dense to make the exploit
>work as described.
>
>Thanks,
>Tim.
>
>On Thu, 2003-07-24 at 11:49, Artoor Petrovich wrote:
>> Informations :
>>
>>
>> Advisory Name: e107 website system Vulnerability
>>
>> Author: hiruvim <artoor@exfloyt.com>
>>
>> Discover by: hiruvim <artoor@exfloyt.com>
>>
>> Website vendor : http://e107.org
>>
>> Affected System(s): All versions
>>
>> Severity: High
>>
>> Platform(s): Windows and Unix
>>
>> Issue: Security holes enable attackers to get MySQL dump file with
>> users and passwords.
>>
>> ==================================================
>> Details:
>>
>> In file /admin/db.php
>> .......................
>> require_once("../class2.php");
>>
>> if(IsSet($_POST['dump_sql'])){
>> getsql($mySQLdefaultdb);
>> exit;
>> }
>>
>> [....]
>> require_once("auth.php");
>>
>> .......................
>>
>> We can do dump_sql without authorization.
>>
>> Exploit:
>>
>> <form action="http://victim.org/admin/db.php">
>> <input type=submit name="dump_sql">
>> </form>
>>
>> When pressed submit query button we will get MySQL dump file.
>>
>> In dump file we will find username and passwd MD5 hash.
>>
>> With admin password we can get full site control and access to
>> FileManager.
>>
>>
>>
>> Vendor: Not contacted yet.
>>
>> Patch:
>>
>> in /admin/db.php
>>
>> Before doing anything you will need tomove "require_once("auth.php");"
>> to the top of the file.
>>
>> Sorry for my poor english:)
>>
>> ==============================
>> hiruvim <artoor@exfloyt.com>
>> Original document can be fount at http://0x90.ipsec.ru/e107.txt
>>
>
>