http - The web application does not utilize HTTPonly cookies -


how avoid cross-site scripting attack not allowing cookies httponly attribute accessed via client-side scripts. using asp.net 3.5, iis 8 , ie9 browser. (it should provide security web browser).

after surfing many sites, found solution question:

this new security feature introduced microsoft in ie 6 sp1 mitigate possibility of successful cross-site scripting attack not allowing cookies httponly attribute accessed via client-side scripts.

recommendations include adopting development policy includes utilization of http cookies, , performing other actions such ensuring proper filtration of user-supplied data, utilizing client-side validation of user supplied data, , encoding user supplied data prevent inserted scripts being sent end users in format can executed.

regarding secure cookies add below line under web.config file

 <system.web>     <httpcookies httponlycookies="true"  requiressl="false" />  <system.web> 
  • requiressl="true" if using https http keep false.

find more details here.


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -