>gabriel l smallman wrote:
>>
>>>>Realistically, coldfusion automatically escapes any single quotes
>>
>>  But if im not mistaken(easily could be) someone might not need to be able to
>>  stuff in single quotes to tamper? I think they need the semi colon and
>>  parens to insert a sub query to blow something up
>>
>>  ;(drop table users) or something of the sort?
>
>If your query doesn't already have the single quotes... that's an issue,
>like this:
>
><cfquery ..>
>       select * from emp where emp_id=#url.emp_id#
></cfquery>
>
>That would certainly be bad...

I use val()

select * from emp where emp_id=#val(url.emp_id)#

Anything not numeric will be dropped. A totally non-numeric value 
will return 0.

For dates I use ODBCDateFormat.
-- 

Bud Schneehagen - Tropical Web Creations, Inc.

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
Web Based Solutions / eCommerce Development & Hosting
http://www.twcreations.com/ - http://www.cf-ezcart.com/
Toll Free: 877.207.6397 - Local & Int'l Phone/Fax: 386.789.0968

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:192559
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to