← cd ..

CTF · 2026-10-02

CTF Writeup: Heap Notes (pwn, 400 pts)

A use-after-free in a note-taking binary, tcache poisoning, and a clean path to __free_hook.

The binary let you create, edit and delete notes — but deleting didn't clear the pointer.

Freeing twice and editing the stale chunk let me poison the tcache list and point an allocation at __free_hook.

Overwriting it with system and freeing a note containing /bin/sh gave the flag.