~/talk

Virtual Table Security: Basic Exploitation and Protection with CTF Example

Talkat Core C++ 2025 · on Sunday, 2025-10-19· [security, c-and-cpp]
links:none on file
slides:none on file

Walks through a CTF where a use-after-free plus allocator reuse gives two primitives: reclaim a freed object’s chunk and then overwrite its first eight bytes (the vptr). A concrete exploit adds 8 to the vptr so an introduce call resolves to give_shell, yielding remote code execution on the demo server. Shows GDB for vtable discovery, uses fsanitize/CFI to make the program crash, and explains how ASLR and CFI prevent this primitive chain.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 1:08Virtual tables and polymorphism basics
  3. 4:21CTF challenge overview
  4. 5:46Memory allocator reuse explained
  5. 9:23First primitive: use-after-free
  6. 10:28Second primitive: virtual pointer hijack
  7. 12:54Defenses: ASLR and CFI
  8. 17:11CFI enforcement details
  9. 19:59Recap and takeaways
  10. 21:01Q&A session
~/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.