|
|
|
|
Menu |
|
|
Home |
| |
|
Discussions |
| |
|
Tools |
| |
|
Affiliates |
| |
|
Content |
| |
|
Info |
| | |
|
|
|
|
|
User Info |
|
Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144
People Online:
Visitors: 67
Members: 0
Total: 67
|
|
|
|
|
|
Full disclosure |
|
|
|
|
|
|
|
|
|
IT Security and Insecurity Portal |
|
|
Edit Admin pass in SQL injection |
|
Posted: Wed Jan 23, 2008 11:29 am |
|
|
nox |
Advanced user |
|
|
Joined: Dec 29, 2007 |
Posts: 100 |
Location: c://windows/system32 |
|
|
|
|
|
|
Hello , tell me how i can Edit Admin pass by SQL injection |
|
_________________ ..::::[ Waraxe.us is the BEST and the TOP ]::::.. |
|
|
|
Posted: Wed Jan 23, 2008 12:22 pm |
|
|
nox |
Advanced user |
|
|
Joined: Dec 29, 2007 |
Posts: 100 |
Location: c://windows/system32 |
|
|
|
|
|
|
and how i can Read /etc/passwd |
|
_________________ ..::::[ Waraxe.us is the BEST and the TOP ]::::.. |
|
|
|
|
Re: Edit Admin pass in SQL injection |
|
Posted: Wed Jan 23, 2008 3:54 pm |
|
|
waraxe |
Site admin |
|
|
Joined: May 11, 2004 |
Posts: 2407 |
Location: Estonia, Tartu |
|
|
|
|
|
|
nox wrote: | Hello , tell me how i can Edit Admin pass by SQL injection |
If sql injection is in UPDATE query, then it MAY be possible, it depends.
But in most cases you must first steal pasword, then log in as admin and then edit password from admin interface. |
|
|
|
|
Posted: Wed Jan 23, 2008 4:01 pm |
|
|
waraxe |
Site admin |
|
|
Joined: May 11, 2004 |
Posts: 2407 |
Location: Estonia, Tartu |
|
|
|
|
|
|
nox wrote: | and how i can Read /etc/passwd |
http://ferruh.mavituna.com/makale/sql-injection-cheatsheet/
If current mysql user has FILE privileges, then:
Code: |
SELECT LOAD_FILE(filename with full path here)
|
Code: |
query.php?user=1+union+select+load_file(0x63...),1,1,1
|
As you can see, file path is hex encoded.
Code: |
load data infile 'c:/boot.ini' into table foo;
|
Still, in most real-world attack scenarios you can't read local file through mysql, because FILE privileges are usually not given to low-privileged users. |
|
|
|
|
www.waraxe.us Forum Index -> Sql injection
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
|
|
|
|
|
|
|