~/talk

Security: From basic principles to PHP specifics

Talkat phpday 2021 · 2021-06-08..06-09· [security, php]
slides:none on file

Code reviews repeatedly find the same concrete failures: missing output escaping, unsafe query composition, and permissive server configs. Recommendations include whitelisting inputs, using prepared statements (never string concatenation for values), validating uploads and mime types, regenerating session IDs with session_regenerate_id, using proven sanitizers like htmlpurifier, and slow password hashes such as Argon2 or bcrypt. Use cryptographically secure randomness via random_bytes, store secrets in Vault or CipherSweet blind indexes, set X-Frame-Options, run SAST in CI and keep the stack patched.

AI-written summary · about

  1. 0:00Introduction
  2. 2:18About me
  3. 3:40The basics
  4. 15:05SQL Injection
  5. 25:15Passwords
  6. 28:45Calculations
  7. 31:01Cracking passwords
  8. 33:15Sessions
  9. 35:20Check permissions
  10. 36:41Information leaks
  11. 37:19Password leaks
  12. 39:33Random numbers
  13. 40:48Libraries
  14. 42:33Admins support
  15. 45:23Security is a process
  16. 46:25Absolute security is not possible
  17. 47:40Stickers
  18. 49:25Never stop learning
  19. 50:11Make it expensive
  20. 50:36Reading list
  21. 51:37Questions
~/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.