Wrox Programmer Forums
|
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 15th, 2007, 01:25 PM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 143
Thanks: 0
Thanked 1 Time in 1 Post
Default

Simply put, SQL Injection prevents malicious SQL statements form being possible to enter.

In the good old days, if you had a textbox accepting a name (or any other value), and there was no checking of what the user entered, it would be possible to comment out the running command (or to make it always run (SELECT * FROM Users WHERE UserName = 'ViagraFalls' OR 1=1 -- spits out all users, while SELECT * FROM Users WHERE UserName = 'a';DROP TABLE Users -- drops the table).

By requiring all parameters to SQL Stored Procedures to be added by using the cmd.Parameters.Add command, the user input is actually translated into a literal text-string, rather than potentially being harmless...

http://entropia-online.blogspot.com/
 
Old October 15th, 2007, 01:38 PM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 488
Thanks: 2
Thanked 11 Times in 10 Posts
Default

Quote:
quote:Originally posted by ViagraFalls
 Simply put, SQL Injection prevents malicious SQL statements form being possible to enter.

In the good old days, if you had a textbox accepting a name (or any other value), and there was no checking of what the user entered, it would be possible to comment out the running command (or to make it always run (SELECT * FROM Users WHERE UserName = 'ViagraFalls' OR 1=1 -- spits out all users, while SELECT * FROM Users WHERE UserName = 'a';DROP TABLE Users -- drops the table).

By requiring all parameters to SQL Stored Procedures to be added by using the cmd.Parameters.Add command, the user input is actually translated into a literal text-string, rather than potentially being harmless...

http://entropia-online.blogspot.com/
snap :)

jimi

http://www.originaltalent.com
 
Old October 15th, 2007, 09:17 PM
Authorized User
 
Join Date: Jul 2007
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok guys I think I've got it now: If you use the Parameters collection when building the parameters for a stored procedure the database will store all columns as literal text. I checked out my article body and sure enough the <p> tags are around the article I created.

I guess what I was expecting was the tags actually being encoded in the database (Server.HtmlEncode).
 
Old December 14th, 2007, 04:01 AM
Authorized User
 
Join Date: Jul 2006
Posts: 40
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by ViagraFalls
 I had the UnieralKey error, too. If I remember correctly you have to edit the fckconfig.js file (in the FCKEditor folder).

At the very bottom, there's the FCKConfig.ToolbarSets["TheBeerHouse"] bits where two toolbars were defined. Just remove the UniversalKey entries in both of them and you're all set again.

Incidently, while we're discussing the FCKEditor. Has anybody tried adding some functionality? Specifically, I signed up for websnapr, and I'd love to get my links to include previews of the webpages. I've been trying to add the functionality to the FCKLink file, but so far without succes.

http://entropia-online.blogspot.com/
Hi,

I have removed the universal key: ,'UniversalKey'

But the error continue to appear.I have setting the FCKeditor as described in the book.But I found that the default toolbar set doesn't contain any UniversalKey entry.So I deleted it only in the Toolbar set which I copied from the TheBeerHouse toolbarset.So is there any thinf else I should do?:(






Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 5 - AddEditArticles ViagraFalls BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 7 September 16th, 2007 10:51 AM
A couple of questions: czambran BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 4 March 23rd, 2005 03:13 PM
a couple of problems... please help! Spaceman Spiff Access 6 March 24th, 2004 12:23 PM
done, but with errors on page bubblez Classic ASP Databases 4 September 11th, 2003 03:35 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.