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: 91
Members: 0
Total: 91
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 -> ASPX Sql Injection
Post new topicReply 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 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.035 Seconds