~/talk

PHP is evil (Defensive programming)

Talkat PHP UK Conference 2013 · 2013-02-21..02-23· [security, php]
links:none on file
slides:none on file

Explains concrete failures and fixes: SQL injection keeps happening because people cast to int instead of using prepared statements, tutorials teach unsafe concatenation, and legacy Magic quotes behavior leads to double-escaping and CSV overflows. Demonstrates a live exploit path using logs + proc self fd2 to include attacker-sent PHP and drop a c99 mad shell when allow_url_include or writable caches exist. Recommends open_basedir, disabled_functions, safe server ownership, SE Linux and layered defenses plus attention to null‑byte, UTF‑7 and eval/backtick risks.

AI-written summary · about

  1. 0:00Intro
  2. 0:34Welcome!
  3. 1:46What we are going to talk about today...
  4. 2:54for example
  5. 4:18Some things to avoid...
  6. 6:13String Escaping
  7. 11:12Correct way to escape
  8. 11:46Input Cleaning
  9. 12:35Random cool IE hack...
  10. 14:03More Strings!!!!
  11. 16:49Affected Functions?
  12. 17:27Securing around PHP
  13. 20:20Case Study
  14. 20:33Target & Discovery
  15. 23:22Step 2: Exploit!
  16. 25:26Find the password!
  17. 26:14Some easy ways this could have been avoided
  18. 27:43Wrapping up...
~/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.