Waraxe IT Security Portal  
  Login or Register
::  Home  ::  Search  ::  Your Account  ::  Forums  ::   Waraxe Advisories  ::  Tools  ::
May 18, 2024
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: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9145

People Online:
Visitors: 471
Members: 0
Total: 471
PacketStorm News
·301 Moved Permanently

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

www.waraxe.us Forum Index -> Sql injection -> Help with SQL Server 2005 injection
Post new topic  Reply to topic View previous topic :: View next topic 
Help with SQL Server 2005 injection
PostPosted: Wed May 16, 2007 4:08 am Reply with quote
BlackXORed
Beginner
Beginner
 
Joined: May 16, 2007
Posts: 4




Hi, i'm new at the forum, so hello. My problem is i've identified (and when i said identified you'll deduce the application isn't mine) an sql-injection issue is some product. The backend is Sql Server, and although this is the most easy to exploit, i haven't figured out a way. I've discovered some relevant parts of the db struct, but i haven't made any progress. even i've found some automation tools like SQLPowerInjector and FGInjector without contundent resutls. I hope you help me and thx for your time.
View user's profile Send private message
PostPosted: Wed May 16, 2007 12:01 pm Reply with quote
waraxe
Site admin
Site admin
 
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




What do you want to do accomplish? If you want to get some data from database, then in case of MS SQL 2005 it can be easy. Or maybe you want to compromise underlying opsystem - this can be tricky, because MS SQL 2005 is much more secure than MS SQL 2000 and if you don't have db admin permissions, then there is not much to exploit.
So - please give out some more info and I will try to share some knowledge.
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Wed May 16, 2007 3:55 pm Reply with quote
BlackXORed
Beginner
Beginner
 
Joined: May 16, 2007
Posts: 4




Well, lets say that i first whant to come out from some data from the database.
View user's profile Send private message
PostPosted: Wed May 16, 2007 9:59 pm Reply with quote
waraxe
Site admin
Site admin
 
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




BlackXORed wrote:
Well, lets say that i first whant to come out from some data from the database.


First you must use MSSQL 2005 system tables for searching interesting target tables and columns.

http://www.databasejournal.com/features/mssql/article.php/3508881
http://msdn2.microsoft.com/en-us/library/ms190324.aspx
http://msdn2.microsoft.com/en-us/library/ms178534.aspx
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Thu May 17, 2007 3:43 am Reply with quote
BlackXORed
Beginner
Beginner
 
Joined: May 16, 2007
Posts: 4




well, i actually said i have all the structure of the database, so what i'm trying to do is to get all data in an easy way. I've tried Priamos (but it locks down), i also downloaded BobCat (i couldn't set it up) as automated tools, to get the data by me. FGInjector only gets fields and not data. So tell me what to do?
View user's profile Send private message
PostPosted: Thu May 17, 2007 12:13 pm Reply with quote
waraxe
Site admin
Site admin
 
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




Personally I prefer manual methods or handcrafted tools and scripts.
First of all - it depends on specific sql injection exploitability.
If it is with visual feedback and supports multiple rows, then you can get lots of data with one query. If it is retrieving only one row at time, then you need more queries. If it is halfblind sql injection, then you need some scripts or tools for process automation, but it can be fast and reliable. And last case is blind sql injection - in this case you need good scripts or tools, it will take lots of time to get out some data and overall reliability is low.
So - what type of sql injection you are trying to exploit? Can you use UNION? Subselects? Is it multirow?
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Thu May 17, 2007 1:38 pm Reply with quote
BlackXORed
Beginner
Beginner
 
Joined: May 16, 2007
Posts: 4




well, i said that the server was returning error messages. I can't use union, maybe because i get an error after union select name,1,1,1,1 saying that image is not compatible with in. I said database was working with ole objects. Its a normal sq-injection scenario.
View user's profile Send private message
PostPosted: Thu May 22, 2008 9:12 am Reply with quote
Tr4c3
Regular user
Regular user
 
Joined: Mar 29, 2008
Posts: 10




If can return error. It is easy for you to get data easy.
View user's profile Send private message
Help with SQL Server 2005 injection
  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






Space Raider game for Android, free download - Space Raider gameplay video - Zone Raider mobile games
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-2020 Janek Vind "waraxe"
Page Generation: 0.153 Seconds