Waraxe IT Security Portal
Login or Register
November 21, 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: 79
Members: 0
Total: 79
Full disclosure
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
4 vulnerabilities in ibmsecurity
32 vulnerabilities in IBM Security Verify Access
xlibre Xnest security advisory & bugfix releases
APPLE-SA-10-29-2024-1 Safari 18.1
SEC Consult SA-20241030-0 :: Query Filter Injection in Ping Identity PingIDM (formerly known as ForgeRock Identity Management) (CVE-2024-23600)
SEC Consult SA-20241023-0 :: Authenticated Remote Code Execution in Multiple Xerox printers (CVE-2024-6333)
APPLE-SA-10-28-2024-8 visionOS 2.1
APPLE-SA-10-28-2024-7 tvOS 18.1
APPLE-SA-10-28-2024-6 watchOS 11.1
APPLE-SA-10-28-2024-5 macOS Ventura 13.7.1
APPLE-SA-10-28-2024-4 macOS Sonoma 14.7.1
Log in Register Forum FAQ Memberlist Search
IT Security and Insecurity Portal

www.waraxe.us Forum Index -> Sql injection -> MSSQL now uninjectable?
Post new topicReply to topic View previous topic :: View next topic
MSSQL now uninjectable?
PostPosted: Tue Jan 24, 2006 3:13 pm Reply with quote
piglet
Regular user
Regular user
Joined: Jan 17, 2006
Posts: 10




I've been messing with SQL lately & have noticed that all the MSSQL sites seem to have SQL locked down tight. They take only 1 imput field & no outpuf fields. All I can get is.

I put this in:
display.asp?category=14'


I get this back:
Microsoft VBScript runtime error '800a000d'

Type mismatch: '[string: "14'"]'

/display.asp, line 14

I've tried all the listed xp command-shell stuff, it doesn't matter what I put in. Only =1 to =14 gives me the page. Am I on a highway to nothing here, or what? The only exception is if I do something like =99999999999999999999999999 then I get:

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

Arithmetic overflow error converting numeric to data type int.

/display.asp, line 26

So, what have I learnt? Well, it converts the input string into an int. Any int value bigger than the record size gives me:

ADODB.Recordset error '800a0bcd'

Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.

/display.asp, line 84

So, it looks pretty secure from here.

My next attempt was to use fractions. I tried 14.1 to 14.5 & it just brought up the expected page. However, when I tried 14.6 it brought up the page, but with a little extra. At the top of the page, it said:

This catagory has not yet been activated (it was a graphic, not text).

Then I thought I would try =14.999999999999999999999999999999 which brought up yet another, useless error:

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

The number '14.999999999999999999999999999999' is out of the range for numeric representation (maximum precision 2Cool.

/display.asp, line 26


So, with only 1 imput possible, I think I've tested all the alternatives. Anybody out there with any further ideas?
View user's profile Send private message
PostPosted: Tue Jan 24, 2006 3:56 pm Reply with quote
piglet
Regular user
Regular user
Joined: Jan 17, 2006
Posts: 10




I'm also looking into the email addresses connected to the site. Is there any way other than brute-force to get the list of mailboxes connected to a server?
View user's profile Send private message
PostPosted: Thu Jan 26, 2006 3:15 pm Reply with quote
piglet
Regular user
Regular user
Joined: Jan 17, 2006
Posts: 10




The only place on the site I can find to inject possibly 'interesting' data is into the order-form in checkout.asp. The form POSTs order details to hidden.asp. There are quite a number of fields. Look:

First Name:
Last Name:
Street Address:
City:
ZIP / Area Code:
State:
Country:
Email Address:
Telephone:
Additional Info:
Shipping Information:
Shipping Name:
Shipping Method:
Payment Information:
Payment Method:

Now, some of these fields are characters, some are numerical, some are a mixture.

The MOST interesting bit gleaned from the HTML is this:

<INPUT TYPE="hidden" NAME="finalTotal" VALUE="24">
<INPUT TYPE="hidden" NAME="orderTotal" VALUE="0">
<input type="hidden" name="subtotal" value="">
<input type="hidden" name="shippingCost" value="$24.00">
<INPUT TYPE="hidden" NAME="printShipment" VALUE="Regular">
<input type=hidden name=discount value="None">

Note the 'discount value' field. I'm not at all familiar with ASP, but I would love to know IF I can manipulate that 'discount value' field & if so, how do I format the POST command? What I really need is something that let's me edit the form before submitting it. Surely someone knows of such a utility/Firefox add-on?
View user's profile Send private message
PostPosted: Fri Jan 27, 2006 2:49 pm Reply with quote
piglet
Regular user
Regular user
Joined: Jan 17, 2006
Posts: 10




I've found the appropriate utility to modify hidden fields with Firefox. A useful user script called 'form help' which allows one to twiddle with all the values in hidden fields. I'm wondering if anyone can suggest ways to 'break it's brain' by disabling the javascript field-checkers & entering some massive values Smile
View user's profile Send private message
PostPosted: Fri Jan 27, 2006 3:57 pm Reply with quote
piglet
Regular user
Regular user
Joined: Jan 17, 2006
Posts: 10




Well, I applied the discound and was told that I owed the grand total of $0.00. Of course, I mailed them and told them about the weakness so that's 1 less hole. Hidden fields for discounts cannot be unique, so get looking for them, people!
View user's profile Send private message
MSSQL now uninjectable?
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.044 Seconds