Web Security


Tool
  • Qualys
  • Cenzic
1.ClickJacking : iframe csrf.  response add X-Frame-Options header for each JSP , html, and filter.
2.DoS attack (denial of service) : set http request timeout. Tomcat update to version 6.0.39(6.X).
3.Cookie HttpOnly :  cookie and Tomcat jsessionid cookie
 
 
4. crossdomain.xml : flash cross domain setting.  ref: https://developer.mozilla.org/en-US/docs/HTTP/X-Frame-Options  

Configuring Apache

To configure Apache to send the X-Frame-Options header for all pages, add this to your site's configuration:
Header always append X-Frame-Options SAMEORIGIN

Configuring nginx

To configure nginx to send the X-Frame-Options header, add this either to your http, server or location configuration:
add_header X-Frame-Options SAMEORIGIN;

Configuring IIS

To configure IIS to send the X-Frame-Options header, add this your site's Web.config file:
<system.webServer>
  ...

  <httpProtocol>
    <customHeaders>
      <add name="X-Frame-Options" value="SAMEORIGIN" />
    </customHeaders>
  </httpProtocol>

  ...
</system.webServer>

评论

此博客中的热门博文

XML, XSL, HTML

Input in element.eleme.io

Data URI是由RFC 2397 ACE