How do I prevent SQL injection when it comes to ColdFusion? I’m quite new to the language/framework.
Here is my example query.
<cfquery name="rsRecord" datasource="DataSource">
SELECT * FROM Table
WHERE id = #url.id#
</cfquery>
I see passing in url.id as a risk.
Use a
<cfqueryparam>tag for your id:http://www.adobe.com/livedocs/coldfusion/6.1/htmldocs/tags-b20.htm