Use-after-free: fake free-list pointer
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>}.