Writing Secure CFML
Presented By Pete Freitag Principal Consultant, Foundeo Inc.
New York City ColdFusion User Group - Nov 10, 2009
foundeo
1
foundeo 1 Who am I? 10+ Years using ColdFusion My Company - - PowerPoint PPT Presentation
Writing Secure CFML Presented By Pete Freitag Principal Consultant, Foundeo Inc. New York City ColdFusion User Group - Nov 10, 2009 foundeo 1 Who am I? 10+ Years using ColdFusion My Company Foundeo Inc. ColdFusion Consulting
Presented By Pete Freitag Principal Consultant, Foundeo Inc.
New York City ColdFusion User Group - Nov 10, 2009
1
Years using ColdFusion
2
Unchecked Input
File Uploads
XSS - Cross Site Scripting
SQL Injection
Cross Site Request Forgery
CRLF Injection
3
0% 8% 16% 24% 32% 40% 2001 2002 2003 2004 2005 2006
Web (XSS + SQL Injections) Buffer Overflows
Source: http://cwe.mitre.org/documents/vuln-trends.html#table1
4
5
Usability Security
6
7
Validation
8
9
10
11
files.
app will do.
12
13
14
15
client side script.
16
17
18
feature.
security.xml
19
<tags>.
single quotes.
Your Own Function (best)
20
21
22
<cfquery datasource=”db” name=”news”> SELECT title, story FROM news WHERE id = #url.id# </cfquery> /news.cfm?id=8;DELETE+FROM+news
23
<cfquery datasource=”db” name=”news”> SELECT title, story FROM news WHERE id = <cfqueryparam value=”#url.id#” cfsqltype=”cf_sql_integer”> </cfquery>
24
25
friends in less than 20 hours.
26
script would add himself as a friend on their profile.
for “maintenance”.
27
behalf.
28
Cross Site Request Forgery (CSRF).
requests can be executed behind the scenes with AJAX.
a malicious web site.
29
30
authenticated user’s credentials.
31
<cfheader name=”Content-Type” value=”#url.type#”>
32
(CFTOKEN & CFID) they can impersonate the user.
33
addtoken=”false”
attacks.
34
35
36
lowering success rates on some attacks.
37
38
Foundeo’s Web Application Firewall for Coldfusion
Version 2.0
Viewer GUI
39
www.petefreitag.com www.foundeo.com
40