~/talk

Hack Your Own Code

Talkat PyCon Italia 2023 · 2023-05-25..05-28· [security]
links:none on file
slides:none on file

Demonstrates a live exploit of a vulnerable Flask/Jinja2 template: fuzzing with gobuster and seclists finds a search endpoint, a crafted SSTI payload enumerates Python objects, discovers subprocess.popen at index 342 and executes ls, then runs an ENV dump to harvest environment secrets. Shows how a root container with privileged flag allows mounting host files to escape Docker and reach a Kubernetes node. Recommends fuzz endpoints, stop storing secrets in env vars, run containers non-root and use cloud secret managers.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 2:30Learning hacking from blog posts
  3. 7:05Four stages of hacking explained
  4. 11:40Enumeration and fuzzing demo
  5. 13:50Server-side template injection
  6. 15:15Harvesting credentials
  7. 16:16Privilege escalation in containers
  8. 18:26Security takeaways and fixes
  9. 21:58Q&A session starts
~/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.