Lune

NDSS2023顶会

Towards Automatic and Precise Heap Layout Manipulation for General-Purpose Programs

Runhao Li, Bin Zhang, Jiongyi Chen, Wenfeng Lin, Chao Feng, Chaojing Tang

摘要

A critical challenge in automatic heap-based exploit generation is to find out whether an exploitable state can be constructed by manipulating the heap layout. This is usually achieved by re-arranging the objects in heap memory according to an orchestrated strategy that utilizes the program's heap operations. However, hindered by the difficulty in strategically coordinating the use of heap operations given the complexity in the program logic and heap allocation mechanisms, the goal of precise heap layout manipulation for general-purpose programs has not been accomplished. In this paper, we present BAGUA, an innovative solution towards automatically and precisely manipulating heap layouts for general-purpose programs. Specifically, BAGUA first precisely identifies the primitives of heap layout manipulation using the heap operation dependence graph and thoroughly analyzes their dependencies and capabilities. On this basis, it models the heap layout manipulation as an integer linear programming problem and solves the constraints, in order to identify the sequence of primitives that achieves a desired heap layout. By triggering the primitives in such an order, we are able to construct new proof-ofconcept inputs of target programs to achieve an exploitable heap layout. Highlights of our research include a set of new techniques that address the specific challenges of analyzing general-purpose programs, such as eliminating the side effect of heap allocators and extending the capability in manipulating heap layouts. We implemented a prototype of BAGUA and evaluated it on 27 publicly-known bugs in real-world programs. With BAGUA's strength in pinpointing primitives and handling the side effect of heap allocators, it successfully generates desired heap layouts for 23 of the bugs, which is way beyond what prior research can achieve.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 3 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • ropbot: Reimaging Code Reuse Attack Synthesis 引用了 FUZE: Towards Facilitating Exploit Generation for Kernel Use-After-Free Vulnerabilities
  • ropbot: Reimaging Code Reuse Attack Synthesis 引用了 Automatic Heap Layout Manipulation for Exploitation
  • ropbot: Reimaging Code Reuse Attack Synthesis 引用了 Gollum: Modular and Greybox Exploit Generation for Heap Overflows in Interpreters
  • ropbot: Reimaging Code Reuse Attack Synthesis 引用了 MAZE: Towards Automated Heap Feng Shui
  • SLAKE: Facilitating Slab Manipulation for Exploiting Vulnerabilities in the Linux Kernel 引用了 FUZE: Towards Facilitating Exploit Generation for Kernel Use-After-Free Vulnerabilities
  • SLAKE: Facilitating Slab Manipulation for Exploiting Vulnerabilities in the Linux Kernel 引用了 Automatic Heap Layout Manipulation for Exploitation
  • BridgeRouter: Automated Capability Upgrading of Out-Of-Bounds Write Vulnerabilities to Arbitrary Memory Write Primitives in the Linux Kernel 引用了 FUZE: Towards Facilitating Exploit Generation for Kernel Use-After-Free Vulnerabilities
  • BridgeRouter: Automated Capability Upgrading of Out-Of-Bounds Write Vulnerabilities to Arbitrary Memory Write Primitives in the Linux Kernel 引用了 Automatic Heap Layout Manipulation for Exploitation
  • BridgeRouter: Automated Capability Upgrading of Out-Of-Bounds Write Vulnerabilities to Arbitrary Memory Write Primitives in the Linux Kernel 引用了 SLAKE: Facilitating Slab Manipulation for Exploiting Vulnerabilities in the Linux Kernel
  • BridgeRouter: Automated Capability Upgrading of Out-Of-Bounds Write Vulnerabilities to Arbitrary Memory Write Primitives in the Linux Kernel 引用了 Gollum: Modular and Greybox Exploit Generation for Heap Overflows in Interpreters
  • Gollum: Modular and Greybox Exploit Generation for Heap Overflows in Interpreters 引用了 FUZE: Towards Facilitating Exploit Generation for Kernel Use-After-Free Vulnerabilities
  • Gollum: Modular and Greybox Exploit Generation for Heap Overflows in Interpreters 引用了 Automatic Heap Layout Manipulation for Exploitation
  • K-LEAK: Towards Automating the Generation of Multi-Step Infoleak Exploits against the Linux Kernel 引用了 FUZE: Towards Facilitating Exploit Generation for Kernel Use-After-Free Vulnerabilities
  • K-LEAK: Towards Automating the Generation of Multi-Step Infoleak Exploits against the Linux Kernel 引用了 Automatic Heap Layout Manipulation for Exploitation
  • K-LEAK: Towards Automating the Generation of Multi-Step Infoleak Exploits against the Linux Kernel 引用了 SLAKE: Facilitating Slab Manipulation for Exploiting Vulnerabilities in the Linux Kernel
  • K-LEAK: Towards Automating the Generation of Multi-Step Infoleak Exploits against the Linux Kernel 引用了 MAZE: Towards Automated Heap Feng Shui
  • MAZE: Towards Automated Heap Feng Shui 引用了 FUZE: Towards Facilitating Exploit Generation for Kernel Use-After-Free Vulnerabilities
  • MAZE: Towards Automated Heap Feng Shui 引用了 Automatic Heap Layout Manipulation for Exploitation
  • MAZE: Towards Automated Heap Feng Shui 引用了 SLAKE: Facilitating Slab Manipulation for Exploiting Vulnerabilities in the Linux Kernel
  • MAZE: Towards Automated Heap Feng Shui 引用了 Gollum: Modular and Greybox Exploit Generation for Heap Overflows in Interpreters
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper3

  1. ropbot: Reimaging Code Reuse Attack SynthesisKyle Zeng, Moritz Schloegel, Christopher Salls, Adam Doupé 等NDSS 2026 · 1 次引用
  2. BridgeRouter: Automated Capability Upgrading of Out-Of-Bounds Write Vulnerabilities to Arbitrary Memory Write Primitives in the Linux KernelDongchen Xie, Dongnan He, Wei You, Jianjun Huang 等S&P 2025
  3. K-LEAK: Towards Automating the Generation of Multi-Step Infoleak Exploits against the Linux KernelZhengchuan Liang, Xiaochen Zou, Chengyu Song, Zhiyun QianNDSS 2024

它引用的 Paper7

  1. FUZE: Towards Facilitating Exploit Generation for Kernel Use-After-Free VulnerabilitiesWei Wu, Yueqi Chen, Jun Xu, Xinyu Xing 等USENIX Security 2018 · 124 次引用
  2. SLAKE: Facilitating Slab Manipulation for Exploiting Vulnerabilities in the Linux KernelYueqi Chen, Xinyu XingCCS 2019 · 76 次引用
  3. Automatic Heap Layout Manipulation for ExploitationSean Heelan, Tom Melham, Daniel KroeningUSENIX Security 2018 · 62 次引用
  4. Gollum: Modular and Greybox Exploit Generation for Heap Overflows in InterpretersSean Heelan, Tom Melham, Daniel KroeningCCS 2019 · 50 次引用
  5. MAZE: Towards Automated Heap Feng ShuiYan Wang, Chao Zhang, Zixuan Zhao, Bolun Zhang 等USENIX Security 2021 · 25 次引用

相关 Paper

  1. Automated Exploitable Heap Layout Generation for Heap Overflows Through Manipulation Distance-Guided FuzzingBin Zhang, Jiongyi Chen, Runhao Li, Chao Feng 等USENIX Security 2023
  2. HEAP LOCALIZATION: Cache Side-Channel Based Linux Kernel Heap Exploit TechniquesYoochan Lee, Sihyun Roh, Hyuk Kwon, Byoungyoung Lee 等S&P 2026
  3. Revery: From Proof-of-Concept to ExploitableYan Wang, Chao Zhang, Xiaobo Xiang, Zixuan Zhao 等CCS 2018 · 85 次引用
  4. Playing for K(H)eaps: Understanding and Improving Linux Kernel Exploit ReliabilityKyle Zeng, Yueqi Chen, Haehyun Cho, Xinyu Xing 等USENIX Security 2022
  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
黄昏的海面,两侧是细线勾勒的悬崖