Linux under Fastbin use summary--FD overwrite with arbitrary address free

Source: Internet
Author: User

The Fastbin under Linux is the key point of the PWN problem in CTF. Last year (2015), XCTF two stations are using Fastbin as the pwn400 of the use of the axis of the problem to appear, which is also my first contact with the use of Fastbin, referring to the K0sh1 master wrote on the freebuf of an article. I wrote a few demos to illustrate the problem.

Directory

1. About Fastbin

2. Overlay FD Pointer Implementation utilization

3. Free use of any address (house of Spirit)

1. About Fastbin

The heap we are generally familiar with is the chunk of a doubly linked list, but for a heap block of size (bytes~ Bytes) It is managed using Fastbin.

The heap block structure of the fastbin is exactly the same as the conventional chunk, except that the single-linked list is used.

As is the structure of a fastbin block in use

This is the use of Fastbin

Linux under Fastbin use summary--FD overwrite with arbitrary address free

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.