Solved

Coldfusion security

Posted on 2010-11-25
10
324 Views
Last Modified: 2012-06-27
Hello experts.
This question is for coldfusion security.
I have to prefer  <cflocation addtoken="yes"... with setclientcookies="no" in cfapplication
for more security?
If i make this change  will i have problems?
I'm asking because i'm using now the opposed:
<cflocation addtoken="no"... with setclientcookies="yes" in cfapplication
0
Comment
Question by:Panos
  • 4
  • 4
  • 2
10 Comments
 
LVL 14

Assisted Solution

by:RickEpnet
RickEpnet earned 150 total points
Comment Utility
Well think about this for a sec. If you use addtoken="YES" ok so now you do not have to have the token in a cookie but you have stuck it out in the open in the URL.

Maybe I am missing something as to what you are doing or trying to do??
0
 
LVL 2

Author Comment

by:Panos
Comment Utility
Hi RickEpnet.
It is general question.Do or not use addtoken="YES".I read in a forum that it is safer to use YES instead of having the token in a cookie.So i want to know the opinion of the experts here.
0
 
LVL 14

Expert Comment

by:RickEpnet
Comment Utility
Can you point me to the forum so I can see the context.

So in this case you would run cookieless site right?
0
 
LVL 2

Author Comment

by:Panos
Comment Utility
Hi again.
Here the link of a ppt file:
www.cfconf.org/denvercf/talks/cf_code_security.ppt
0
 
LVL 52

Accepted Solution

by:
_agx_ earned 350 total points
Comment Utility
Going by the references to allaire and macromedia that presentation is outdated, circa 2002.

If delete/insert/update pages are refreshed, or other action pages, problems occur – hacker sees error message.
-Immediately <CFLOCATION> after one of these actions to avoid this
-Use the addtoken=“yes” parameter to keep any session changes across pages

When they talk about addToken="yes",  they're talking about an old issue with session variables and cflocation that's generally not a problem anymore.  If you read the full KB entry notice it states that using addToken="yes" is actually a security risk.

...you should be aware that passing CFID and CFToken as URL parameters can be a security risk.

These days most people recommend *not* using addToken. Also, the default CFID/CFTOKEN are more easily guessable than other options. Using the UUID or J2EE session management settings is considered more secure.


0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 2

Author Closing Comment

by:Panos
Comment Utility
Thank you very much for your help.
Here is another problem i have :http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/Cold_Fusion_Markup_Language/Q_26636239.html
Can you help me?


regards
Panos
0
 
LVL 52

Expert Comment

by:_agx_
Comment Utility
Sorry, I was just heading to sleep.  I'd have to think about that one.  When my brain's not so tired ;-)
0
 
LVL 52

Expert Comment

by:_agx_
Comment Utility
Btw: Don't know if you're in the US, but Thur/Fri are a holiday for most people.  That's probably why responses are slow.
0
 
LVL 2

Author Comment

by:Panos
Comment Utility
OK
I hope you will find some time to look at this question.
There are too many things in the net but not a complete solution that could cover everything.
i'm not in US but in EU and when i wake up you go to sleep.HAHA....
0
 
LVL 52

Expert Comment

by:_agx_
Comment Utility
There are too many things in the net but not a complete solution that could cover everything.

That's because there isn't 1 complete solution. Unfortunately, there are different types of threats, and new ones uncovered frequently. Each requires different ways to defend against them.  Security is too important. That's why I didn't rush in and say "sure. you can fix everything just by doing (something)".  Anyone that says that is either misinformed or .. just plain lying ;-)  

i'm not in US but in EU and when i wake up you go to sleep.HAHA....

Haha, I figured.  
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

The technique is by far very Simple! How we can export the ColdFusion query results to DOC file?  Well before writing this I researched a lot in Internet but did not found a good Answer anyways!  So i thought now i should share my small snippet w…
PROBLEM:  How to open a cfwindow or run a function on double click of a cfgrid row. One of my clients wanted to be able to double click on a row item to get more detailed information about a transaction and to be able to modify the line items i…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now