~/talk

Extract: A PHP Foot-Gun Case Study

links:none on file
links:none on file
slides:none on file

Claims that extract routinely enables attackers to overwrite important variables, backed by a static-analysis pass over a code property graph and manual review of flagged cases. The study scans 28,325 projects, finds ~5,000 extract calls (1,300 projects using extract), narrows to 303 repos with user input and 146 risky calls, and reports 154 injection vulnerabilities, 86 control-flow hijacks including 60 privilege escalations. The authors build and validate the scanner and propose mitigations (prevent global overwrites, whitelist keys); removal is impractical due to PHP compatibility.

AI-written summary · about

  1. 0:00Extract function in PHP
  2. 1:14How extract transforms arrays
  3. 3:23Extract vulnerabilities CTF demo
  4. 4:05User input in PHP apps
  5. 6:17Finding extract in codebases
  6. 8:25Static analysis results 28k repos
  7. 10:13SQL injection via extract
  8. 12:44Exploiting _SERVER and _SESSION
  9. 14:52Privilege escalation via sessions
  10. 17:21PHP app vulnerabilities
  11. 18:25Extract popularity in PHP
  12. 19:06Mitigations for extract misuse
  13. 21:13Conclusion and takeaways
  14. 21:56Q&A
~/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.