~/talk

It's A PHP Unserialization Vulnerability Jim, But Not As We Know It

Talkat BSides Manchester 2018 · on Thursday, 2018-08-16· [php, security]
links:none on file
slides:none on file

A class of PHP unserialize issues lets serialized metadata inside a Phar archive trigger wakeup/destruct chains when accessed via the Phar stream wrapper, and hundreds—probably thousands—of apps expose this. A patched branch of PHPGGC builds Phar polyglots (tar/JPEG tricks, stub prefixing) to plant payloads; demos achieve command execution via passthru, using FTP/file wrappers, XML‑RPC uploads and WooCommerce/Typo3/TCPDF vectors. Proofs of concept work end‑to‑end and require only file upload plus stream‑wrapper access.

AI-written summary · about

  1. 0:00Introduction
  2. 1:02PHP Unserialization
  3. 1:20What is Serialization
  4. 1:47Property Oriented Programming
  5. 2:06Unsee realization
  6. 2:58Agenda
  7. 4:26Overview
  8. 4:44Reading the PHP Manual
  9. 5:05Remote Stream Wrappers
  10. 6:10PHP Stream Wrapper
  11. 7:27PHP glob
  12. 8:29stub
  13. 8:57execution
  14. 9:16manifest
  15. 9:42test program
  16. 9:52test object
  17. 10:04archive
  18. 10:19test programs
  19. 12:00file contents signature
  20. 12:23file formats
  21. 12:59serialized metadata
  22. 13:16stubs
  23. 13:38tar file format
  24. 14:20hexdump
  25. 15:07cat
  26. 16:36file
  27. 17:46local file inclusion
  28. 19:40nonet option
  29. 20:45PHP GAC
  30. 21:05The payload
  31. 21:56Case studies
  32. 22:15typo3 CMS
  33. 23:12Generate payload
  34. 29:21WordPress
  35. 31:23WordPress payload
  36. 32:21WordPress class
  37. 32:59WordPress demo
  38. 38:14TC PDF
  39. 43:23Defending Against It
  40. 44:11Takeaways
  41. 45:25CTF Challenge
  42. 46:01Question for Sam
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.