Skip to main content
Challenges Use-after-free: fake free-list pointer
PWN Hard Heap / UAF Solves: 6

Use-after-free: fake free-list pointer

Author: CyberSamSU
Points
90

Heap allocators (for example glibc's tcache/fastbin) store freed (free()'d) chunks in a single linked list (free-list): each free chunk stores at its beginning in a field called fd — the address of the next free chunk as a pointer.

Use-after-free (UAF) — occurs when the program still has the ability to write to freed memory (after free()) via an old pointer. If you can change the fd field of the free chunk through this, the next malloc() call will return your fake fd value — THAT IS, ANY ADDRESS — as a "new chunk" (this is called "tcache poisoning").

You have a free chunk, its address is 0x00613F99, and you have the ability to change its fd field via UAF. Target: the program's foydalanuvchi structure (which has a is_admin field) is located at the address 0x0060CF01.

Each chunk has a header starting 8 bytes BEFORE the user pointer returned by the allocator (this header stores the chunk size and other metadata). So, if the next malloc() needs to return a pointer directly to 0x0060CF01, what value should you write to the fd field?

Formula: fd = maqsad_manzil - sarlavha_hajmi. Submit the answer in the format BAYROQ{PWN_UAF_<fd qiymati, 0x'siz katta hex>}.

Theory: learn the topic
Hints 3
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −9 pts Log in
Hint 2 −18 pts Log in
Hint 3 −27 pts Log in
To submit a flag, log in.

First solvers

1. W.o.X 11.09.2026
2. testrejim 09.10.2026
3. Odam 04.11.2026
4. arcanum 11.11.2026
5. Furqat Turayev 11.11.2026
6. Mirjaxon Qaxxarov 25.11.2026