~/talk

Frog and Toad Learn About Django Security

Talkat DjangoCon US 2016 · 2016-07-17..07-22· [security, django]
slides:none on file

Django escapes template output by default using a simple decade‑old escape function (Simon Willison’s) and variable nodes call conditional_escape; CSRF uses middleware that compares a token in the cookie with POST data (cookie is not HttpOnly), and views can opt out with csrf_exempt; the ORM separates code and data so SQLi is avoided unless using extra()/raw(); X‑Frame and Allowed Hosts middleware protect framing and host header attacks; passwords auto‑rehash on login; recommends HTTPS, CSP, ponycheckup and auditing mark_safe and |safe usage.

AI-written summary · about

  1. 0:00Introduction
  2. 1:04Is Django Secure
  3. 4:27CSRF
  4. 7:03HTTP only cookies
  5. 9:19Data barrier
  6. 12:17Passwords
  7. 13:52Be Vigilant
  8. 15:06HTTPS
  9. 15:51Content Security Policy
  10. 17:04Django Encryption
  11. 18:15Django Secure
  12. 18:40Other Resources
  13. 19:29Philip James
  14. 21:12Recommendations
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.