Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: Input validation

From: Peter Conrad <conrad(at)tivano.de>
Date: Mon Jun 23 2003 - 04:26:10 EDT

Hi,

On Thu, Jun 19, 2003 at 01:38:40PM -0400, Kooper, Larry wrote:
>
> When securing a web site against attacks such as SQL injection and XSS, what

Depending on the circumstances, I use 1 and 3. Never use 2, it doesn't take into account input that is bad but not known to be so. 1 can be used if the user cannot provide invalid input without some form of "hacking", like e. g. if there's a fixed SELECT list and the input doesn't match any of the available OPTIONs.

> The problem with solutions 1 and 2 is that you may miss some forms of bad

A string containing "select" is not bad input. The point is that you must properly escape and quote strings before passing them to e. g. a database.

Bye,

        Peter

-- 
Peter Conrad                        Tel: +49 6102 / 80 99 072
[ t]ivano Software GmbH             Fax: +49 6102 / 80 99 071
Bahnhofstr. 18
63263 Neu-Isenburg

Germany
Received on Mon Jun 23 09:07:15 2003
Do you need help?X

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:07:53 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library