Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Quick Wins for Better Website Security by Dan C...

Avatar for PyCon 2014 PyCon 2014
April 12, 2014
600

Quick Wins for Better Website Security by Dan Callahan

Learn quick, easy, and lesser-known techniques to improve your website's security, protect against session hijacking, and defend against XSS and data injection attacks.

Presented at PyCon 2014. More info at https://us.pycon.org/2014/schedule/presentation/225/

Avatar for PyCon 2014

PyCon 2014

April 12, 2014
Tweet

More Decks by PyCon 2014

Transcript

  1. Content-Security-Policy: default-src 'self'; img-src 'self' data:; script-src: 'self' https://api.example.com !

    Content-Security-Policy-Report-Only: default-src 'self'; img-src 'self' data:; script-src: 'self' https://api.example.com
  2. TRANSMIT RENDER STORE ! SSL ! Secure Cookies ! Strict

    Transport Security ! HttpOnly Cookies ! Content Security Policy
  3. TRANSMIT RENDER STORE ! SSL ! Secure Cookies ! Strict

    Transport Security ! HttpOnly Cookies ! Content Security Policy
  4. TRANSMIT RENDER STORE ! SSL ! Secure Cookies ! Strict

    Transport Security ! HttpOnly Cookies ! Content Security Policy ! Frame Options ! XSS Protection ! MIME-Type Sniffing
  5. TRANSMIT RENDER STORE ! SSL ! Secure Cookies ! Strict

    Transport Security ! HttpOnly Cookies ! Content Security Policy ! Frame Options ! XSS Protection ! MIME-Type Sniffing ! User Content Domain ! ! Don’t Store Passwords