|
|
|
|
|
|
IT Security and Insecurity Portal |
|
|
Help with SQL Server 2005 injection |
|
Posted: Wed May 16, 2007 4:08 am |
|
|
BlackXORed |
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. |
|
|
|
|
|
|
|
|
Posted: Wed May 16, 2007 12:01 pm |
|
|
waraxe |
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. |
|
|
|
|
Posted: Wed May 16, 2007 3:55 pm |
|
|
BlackXORed |
Beginner |
|
|
Joined: May 16, 2007 |
Posts: 4 |
|
|
|
|
|
|
|
Well, lets say that i first whant to come out from some data from the database. |
|
|
|
|
Posted: Wed May 16, 2007 9:59 pm |
|
|
waraxe |
Site admin |
|
|
Joined: May 11, 2004 |
Posts: 2407 |
Location: Estonia, Tartu |
|
|
|
|
|
|
|
|
|
|
Posted: Thu May 17, 2007 3:43 am |
|
|
BlackXORed |
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? |
|
|
|
|
|
|
|
|
Posted: Thu May 17, 2007 12:13 pm |
|
|
waraxe |
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? |
|
|
|
|
|
|
|
|
Posted: Thu May 17, 2007 1:38 pm |
|
|
BlackXORed |
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. |
|
|
|
|
Posted: Thu May 22, 2008 9:12 am |
|
|
Tr4c3 |
Regular user |
|
|
Joined: Mar 29, 2008 |
Posts: 10 |
|
|
|
|
|
|
|
If can return error. It is easy for you to get data easy. |
|
|
|
|
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
|
|
|
|
|