CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.security Tags:
Item Type: NewsGroup Date Entered: 3/15/2004 2:08:09 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 4 Views: 20 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
5 Items, 1 Pages 1 |< << Go >> >|
cesark
Asp.Net User
I have to protect-filter Stored Procedures Parameters?3/15/2004 2:08:09 PM

0/0

Is it needed to filter and ensure the parameters passed by the Web Application to the Stored Procedures for security reasons?

If it is yes, which are the main kind of parameters to protect and the main potentially dangers?

Thank you,
Cesar
C?sar
pkr
Asp.Net User
Re: I have to protect-filter Stored Procedures Parameters?3/16/2004 9:36:10 AM

0/0

If you're question is talking about SQL Injection attacks then providing you create the parameters as parameters, rather than appending to some SQL string, you shouldn't have to worry. Oh and this is providing you don't use sp_execute or something in you stored procedure.

cesark
Asp.Net User
Re: I have to protect-filter Stored Procedures Parameters?3/16/2004 2:39:10 PM

0/0

So, I haven' t to worry if I use stored proc (into database) with db parameters, user input in the web form provided for that parameters are not a danger, I understand... This no means that i don' t try to filter and proctect all the input fields, but there are fields which is very difficult and I want to be sure that using SP parameters all is secure and protected.

For instance this SP:

Sub insertData(sender As Object, e As EventArgs)

Dim CmdInsertar As New SqlCommand("new_user", strConnection)
Cmd1.CommandType = CommandType.StoredProcedure


Cmd1.Parameters.Add(New SqlParameter("@e_mail", SqlDbType.varchar, 50, "e_mail"))
Cmd1.Parameters("@e_mail").Value = mail.text

Cmd1.Parameters.Add(New SqlParameter("@Password", SqlDbType.varchar, 8, "Password"))
Cmd1.Parameters("@Password").Value = password.text
....


strConnection.open()
Cmd1.ExecuteNonQuery
strConnection.close()

End Sub


Oh and this is providing you don't use sp_execute or something in you stored procedure.

I don' t understand your commentary. I usually use this structure to execute de SP:

strConnection.open()
Cmd1.ExecuteNonQuery
strConnection.close()

C?sar
pkr
Asp.Net User
Re: I have to protect-filter Stored Procedures Parameters?3/16/2004 2:53:50 PM

0/0

Basically, if you use Params you're fine cause SQL will only treat them as params, e.g if won't try to carry out any commands contained in the params. However, there are commands, like sp_execute, that will treat the text within a param as a set of commands. So you can do something like

Cmd1.Parameters("@e_mail").Value = "Delete from Data"
.....
sp_execute @e_mail
....
thus allowing SQL Injection by the back door!

But if you don't use such dangerous statements in you procs you'll be fine.


cesark
Asp.Net User
Re: I have to protect-filter Stored Procedures Parameters?3/16/2004 3:31:04 PM

0/0

Ok, thank you pkr !
C?sar
5 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Wescanex '91: The IEEE Western Canada Conference on Computer, Power, and Communications Systems in a Rural Environment, Regina, Saskatchewan, Canada, May 29-30, 1991, Delta Regina Hotel : Conference Proceedings. Authors: IEEE, Canada, Region 7 Staff, Institute of Electrical and Electronics Engineers, York) IEEE (New, Institute of Electrical and Electronics Engineers, William O. Kennedy, environment Western Canada conference on com, Saskatchewan Saskatchewan Economic Diversification and Trade. Science and Technology Division, Institute of Electrical and Electronics Engineers South Saskatchewan Section, Pages: 325, Published: 1991
WSUD Engineering Procedures: Stormwater Authors: Melbourne Water, Robin Allison, Matt Francey, Pages: 224, Published: 2005
Soil mechanics for unsaturated soils Authors: Delwyn G. Fredlund, Harianto Rahardjo, Pages: 0, Published: -1
Hacking Exposed Windows Server 2003: Windows Server 2003 Authors: Joel Scambray, Stuart McClure, Pages: 541, Published: 2003
Berry & Kohn's Operating Room Technique: Berry& Kohn Authors: Nancymarie Fortunato Phillips, Edna Cornelia Berry, Mary Louise Kohn, Pages: 978, Published: 2003
The 1996 IEEE International Conference on Acoustics, Speech, and Signal Processing: Conference Proceedings, May 7-10, 1996, Marriott Marquis Hotel, Atlanta, Georgia, USA Authors: Speech International Conference on Acoustics, IEEE Signal Processing Society, IEEE., IEEE Signal Processing Society, Pages: 3800, Published: 1996
Sampling and Calibration for Atmospheric Measurements: A Symposium Sponsored by ASTM Committee D-22 on Sampling and Analysis of Atmospheres, Boulder, CO, 12-16 Aug., 1985 ; John K. Taylor, Editor Authors: John Keenan Taylor, ASTM Committee D-22 on Sampling and Analysis of Atmospheres, Pages: 225, Published: 1987
How to Break Web Software: Functional and Security Testing of Web Applications and Web Services Authors: Mike Andrews, James A. Whittaker, Pages: 219, Published: 2006
Environmental Sampling and Analysis Lab Manual: Lab Manual Authors: Maria Csuros, Pages: 373, Published: 1997
Expert SQL Server 2005 Development Authors: Adam Machanic, Hugo Kornelis, Lara Rubbelke, Pages: 449, Published: 2007

Web:
Using Dynamic Filters in Queries In practice, filtering requirements for stored procedures that implement dynamic ... column = @Parameter OR @parameter IS NULL. All input arguments have a ...
Using Stored Procedure Or View (Scenario descriobed in the Message ... The logic in the stored procedure will filter the records based upon the Connection with the Database. (Each Tenant will have separate ...
SecuriTeamâ„¢ - Extended Stored Procedure Parameter Parsing ... Extended Stored Procedures (XPs) are DLLs that can be installed by a SQL .... Cross-Site Scripting Filter Evasion in Various Frameworks / Applications ...
Using Stored Procedure as a Table - ITtoolbox Groups Dec 20, 2005 ... I have about 28 reports coming on my way that share the same 15 parameters ( filters). So, what I did was to write a Stored Procedure that ...
Executing Oracle Stored Procedures from Reports module - Reports ... Net" Data Source, you can execute Oracle Stored Procedures, you just need to enter the connection string manually. ...
Stored Procedure Software - Stored Procedure Proxy Generator ... Write Extended Stored Procedures for Microsoft SQL Server with ease: Supported control over input/output procedure parameters. ...
Filters - Report Builder - SQL Server - I have an SSRS 2005 server report based on a stored procedure dataset, which accepts a single parameter. The parameter value originates from a session ...
How do I find a stored procedure containing ? Sep 12, 2005 ... How do I build a query with optional parameters? How do I calculate the median in a table? ... How do I protect my stored procedure code? ...
Protect UDM with Dimension Data Security, Part 2 Or, you might have no other choice but to obtain the allowed set from an external security service at runtime. SSAS stored procedures can help in these ...
The Myth of Stored Procedures Preference - Developer Pills the only benefit I've ever seen for using stored procedures instead of dynamic .... procedures dynamic too, stored procedures have parameters for a reason ...




Search This Site:










free web host

set home page without changing the configuration of iis?

panel generating too many <p></p>'s

are there any school (k-8) modules available?

how to get response time?

problem in master pages

asp hit counter problem

error: could not access 'cdo.message' object.

changepassword in authentication module problem

cannot implicitly convert type color

fixed a small bug for "edit categories"

gaining access to user data? is it possible?

get the page portion of a url

adding custom fields to createuserwisard in membership

webservice schemalocation - can it be?

setting the title on content pages?

find in files, file types/filter

is xsl limited to transforming xml?

problem with reading data from excel using ado.net

dnn structure question

html newsletter

how to add sigmapro in to dnn as a module.

vbsdk versus vbvs

how can i bind a method from table adapter, to a button event?

inserting bulleted text

security exception in buildmanager.gettype()

custom visualizer

export event logs of multiple computers

forcing vs2005 to produce assemblies

do i need to use dnn jungle downloads to ve my own settings

 
All Times Are GMT