Waraxe IT Security Portal  
  Login or Register
::  Home  ::  Search  ::  Your Account  ::  Forums  ::   Waraxe Advisories  ::  Tools  ::
March 28, 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: 623
Members: 0
Total: 623
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 -> ASPX Sql Injection
Post new topic  Reply to topic View previous topic :: View next topic 
ASPX Sql Injection
PostPosted: Wed Oct 12, 2011 9:22 am Reply with quote
latinhack
Beginner
Beginner
 
Joined: Oct 12, 2011
Posts: 4




Hello,

I'am trying to learn more about SQL INJECTION by a ASPX (ASP NET) websites.

I already know how to hack/test a PHP site with Sql-Injection.

I tried to do some sql-injection by this URL:

http://www.example.com/app/article.aspx?id=1

When I set ?id=1' The website display a error like this :

Code:
Server Error in '/' Application.

Input string was not in a correct format.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.FormatException: Input string was not in a correct format.

Source Error:

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

  <%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
   <system.web>
       <compilation debug="true"/>
   </system.web>
</configuration>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.

Stack Trace:


[FormatException: Input string was not in a correct format.]
   Microsoft.VisualBasic.CompilerServices.DoubleType.Parse(String Value, NumberFormatInfo NumberFormat) +195
   Microsoft.VisualBasic.CompilerServices.IntegerType.FromString(String Value) +97

[InvalidCastException: Cast from string "1'" to type 'Integer' is not valid.]
   Microsoft.VisualBasic.CompilerServices.IntegerType.FromString(String Value) +212
   ASP.article_aspx.__Render__control1(HtmlTextWriter __output, Control parameterContainer) +78
   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +27
   System.Web.UI.Control.Render(HtmlTextWriter writer) +7
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243
   System.Web.UI.Page.ProcessRequestMain() +1926

Version Information: Microsoft .NET Framework Version:1.1.4322.2407; ASP.NET Version:1.1.4322.2407


After I do that, I set this in the URL ?id=1 order by 1000-- But the website keep display me the same error as above.

Can someone explain to me if this website is vulnerable? and how do I process a sql-injection to this website (to a aspx website).

Thank you ! 8)
View user's profile Send private message
PostPosted: Wed Oct 12, 2011 5:15 pm Reply with quote
latinhack
Beginner
Beginner
 
Joined: Oct 12, 2011
Posts: 4




someone?
View user's profile Send private message
PostPosted: Thu Oct 13, 2011 8:42 pm Reply with quote
mainhood
Regular user
Regular user
 
Joined: Sep 02, 2011
Posts: 21




fixxed?
View user's profile Send private message
PostPosted: Sat Oct 15, 2011 9:45 am Reply with quote
latinhack
Beginner
Beginner
 
Joined: Oct 12, 2011
Posts: 4




No men! Ill let you know. Cool
View user's profile Send private message
PostPosted: Sat Oct 15, 2011 11:19 am Reply with quote
waraxe
Site admin
Site admin
 
Joined: May 11, 2004
Posts: 2407
Location: Estonia, Tartu




There is no SQL Injection here. Script is trying to convert your attack string to integer and fails. Look for other places - for example search functionality.
View user's profile Send private message Send e-mail Visit poster's website
PostPosted: Sat Oct 15, 2011 11:21 am Reply with quote
latinhack
Beginner
Beginner
 
Joined: Oct 12, 2011
Posts: 4




Oke, thank you men!
View user's profile Send private message
ASPX Sql 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.168 Seconds