Lune

USENIX Security2021Top-tier venue

MAZE: Towards Automated Heap Feng Shui

Yan Wang, Chao Zhang, Zixuan Zhao, Bolun Zhang, Xiaorui Gong, Wei Zou

Abstract

A large number of memory corruption vulnerabilities, e.g., heap overflow and use after free (UAF), could only be exploited in specific heap layouts via techniques like heap feng shui. To pave the way for automated exploit generation (AEG), automated heap layout manipulation is demanded. In this paper, we present a novel solution MAZE to manipulate proof-of-concept (POC) samples' heap layouts. It first identifies heap layout primitives (i.e., input fragments or code snippets) available for users to manipulate the heap. Then, it applies a novel Dig & Fill algorithm, which models the problem as a Linear Diophantine Equation and solves it deterministically, to infer a primitive operation sequence that is able to generate target heap layout. We implemented a prototype of MAZE based on the analysis engine S2E, and evaluated it on the PHP, Python and Perl interpreters and a set of CTF (capture the flag) programs, as well as a large micro-benchmark. Results showed that MAZE could generate expected heap layouts for over 90% of them.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

23 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Evocatio: Conjuring Bug Capabilities from a Single PoC cites FUZE: Towards Facilitating Exploit Generation for Kernel Use-After-Free Vulnerabilities
  • Evocatio: Conjuring Bug Capabilities from a Single PoC cites SLAKE: Facilitating Slab Manipulation for Exploiting Vulnerabilities in the Linux Kernel
  • Evocatio: Conjuring Bug Capabilities from a Single PoC cites Revery: From Proof-of-Concept to Exploitable
  • EPF: Evil Packet Filter cites FUZE: Towards Facilitating Exploit Generation for Kernel Use-After-Free Vulnerabilities
  • HEAPSTER: Analyzing the Security of Dynamic Allocators for Monolithic Firmware Images cites FUZE: Towards Facilitating Exploit Generation for Kernel Use-After-Free Vulnerabilities
  • HEAPSTER: Analyzing the Security of Dynamic Allocators for Monolithic Firmware Images cites SLAKE: Facilitating Slab Manipulation for Exploiting Vulnerabilities in the Linux Kernel
  • SLAKE: Facilitating Slab Manipulation for Exploiting Vulnerabilities in the Linux Kernel cites FUZE: Towards Facilitating Exploit Generation for Kernel Use-After-Free Vulnerabilities
  • SLAKE: Facilitating Slab Manipulation for Exploiting Vulnerabilities in the Linux Kernel cites Block Oriented Programming: Automating Data-Only Attacks
  • SLAKE: Facilitating Slab Manipulation for Exploiting Vulnerabilities in the Linux Kernel cites Revery: From Proof-of-Concept to Exploitable
  • Test mimicry to assess the exploitability of library vulnerabilities cites FUZE: Towards Facilitating Exploit Generation for Kernel Use-After-Free Vulnerabilities
  • Revery: From Proof-of-Concept to Exploitable cites FUZE: Towards Facilitating Exploit Generation for Kernel Use-After-Free Vulnerabilities
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers23

  1. HEAPSTER: Analyzing the Security of Dynamic Allocators for Monolithic Firmware ImagesFabio Gritti, Fabio Pagani, Ilya Grishchenko, Lukas Dresel et al.S&P 2022 · 31 citations
  2. Test mimicry to assess the exploitability of library vulnerabilitiesHong Jin Kang, Truong Giang Nguyen, Bach Le, Corina S. Pasareanu et al.ISSTA 2022 · 22 citations
  3. Evocatio: Conjuring Bug Capabilities from a Single PoCZhiyuan Jiang, Shuitao Gan, Adrian Herrera, Flavio Toffalini et al.CCS 2022 · 17 citations
  4. EPF: Evil Packet FilterDi Jin, Vaggelis Atlidakis, Vasileios P. KemerlisUSENIX ATC 2023 · 14 citations
  5. CAMP: Compiler and Allocator-based Heap Memory ProtectionZhenpeng Lin, Zheng Yu, Ziyi Guo, Simone Campanoni et al.USENIX Security 2024 · 14 citations

Builds on9

  1. teEther: Gnawing at Ethereum to Automatically Exploit Smart ContractsJohannes Krupp, Christian RossowUSENIX Security 2018 · 345 citations
  2. Block Oriented Programming: Automating Data-Only AttacksKyriakos K. Ispoglou, Bader AlBassam, Trent Jaeger, Mathias PayerCCS 2018 · 143 citations
  3. FUZE: Towards Facilitating Exploit Generation for Kernel Use-After-Free VulnerabilitiesWei Wu, Yueqi Chen, Jun Xu, Xinyu Xing et al.USENIX Security 2018 · 124 citations
  4. Revery: From Proof-of-Concept to ExploitableYan Wang, Chao Zhang, Xiaobo Xiang, Zixuan Zhao et al.CCS 2018 · 85 citations
  5. SLAKE: Facilitating Slab Manipulation for Exploiting Vulnerabilities in the Linux KernelYueqi Chen, Xinyu XingCCS 2019 · 76 citations

Related papers

  1. Automatic Heap Layout Manipulation for ExploitationSean Heelan, Tom Melham, Daniel KroeningUSENIX Security 2018 · 62 citations
  2. Towards Automatic and Precise Heap Layout Manipulation for General-Purpose ProgramsRunhao Li, Bin Zhang, Jiongyi Chen, Wenfeng Lin et al.NDSS 2023
  3. Gollum: Modular and Greybox Exploit Generation for Heap Overflows in InterpretersSean Heelan, Tom Melham, Daniel KroeningCCS 2019 · 50 citations
  4. Automated Exploitable Heap Layout Generation for Heap Overflows Through Manipulation Distance-Guided FuzzingBin Zhang, Jiongyi Chen, Runhao Li, Chao Feng et al.USENIX Security 2023
  5. Nothing is Unreachable: Automated Synthesis of Robust Code-Reuse Gadget Chains for Arbitrary Exploitation PrimitivesNicolas Bailluet, Emmanuel Fleury, Isabelle Puaut, Erven RohouUSENIX Security 2025
Dusk over the sea between two cliffs drawn in fine vertical lines