~/talk

Unarchiving vulnerabilities and avoiding tar-pits

Talkat PyCon AU 2025 · 2025-09-12..09-16· [security, open-source]
links:none on file
slides:none on file

Finds three vulnerabilities in Python's tarfile library including an arbitrary write path traversal that lets a crafted tar overwrite files anywhere it has permission, demonstrated by a tar that replaces authorized_keys and succeeds in the live demo. Exploit chains realpath behavior (tarfile.realpath strict=False), lstat/readlink handling and a PATH_MAX symlink overflow to bypass destination checks. Notes PEP703 filters and that the secure default lands in Python 3.14, and cites ~42% downloads on vulnerable versions.

AI-written summary · about

  1. 0:00Archive vulnerabilities
  2. 2:07Tar file exploits
  3. 7:22Retrofitting security challenges
  4. 10:13Python tar vulnerability
  5. 16:42Leaky abstractions in security
  6. 19:50Path traversal exploit
  7. 21:55Software security incentives
  8. 23:40Exploit demonstration
  9. 25:48Key takeaways
~/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.