Fuzzing JavaScript Engines with Aspect-preserving Mutation
Soyeon Park, Wen Xu, Insu Yun, Daehee Jang, Taesoo Kim
摘要
Fuzzing is a practical, widely-deployed technique to find bugs in complex, real-world programs like JavaScript engines. We observed, however, that existing fuzzing approaches, either generative or mutational, fall short in fully harvesting high-quality input corpora such as known proof of concept (PoC) exploits or unit tests. Existing fuzzers tend to destruct subtle semantics or conditions encoded in the input corpus in order to generate new test cases because this approach helps in discovering new code paths of the program. Nevertheless, for JavaScript-like complex programs, such a conventional design leads to test cases that tackle only shallow parts of the complex codebase and fails to reach deep bugs effectively due to the huge input space.In this paper, we advocate a new technique, called an aspect-preserving mutation, that stochastically preserves the desirable properties, called aspects, that we prefer to be maintained across mutation. We demonstrate the aspect preservation with two mutation strategies, namely, structure and type preservation, in our fully-fledged JavaScript fuzzer, called Die. Our evaluation shows that Die’s aspect-preserving mutation is more effective in discovering new bugs (5.7× more unique crashes) and producing valid test cases (2.4× fewer runtime errors) than the state-of-the-art JavaScript fuzzers. Die newly discovered 48 high-impact bugs in ChakraCore, JavaScriptCore, and V8 (38 fixed with 12 CVEs assigned as of today). The source code of Die is publicly available as an open-source project.1
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 63 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- EnFuzz: Ensemble Fuzzing with Seed Synchronization among Diverse Fuzzers 引用了 Skyfire: Data-Driven Seed Generation for Fuzzing
- EnFuzz: Ensemble Fuzzing with Seed Synchronization among Diverse Fuzzers 引用了 Evaluating Fuzz Testing
- NAUTILUS: Fishing for Deep Bugs with Grammars 引用了 Skyfire: Data-Driven Seed Generation for Fuzzing
- SoK: Prudent Evaluation Practices for Fuzzing 引用了 EnFuzz: Ensemble Fuzzing with Seed Synchronization among Diverse Fuzzers
- SoK: Prudent Evaluation Practices for Fuzzing 引用了 NAUTILUS: Fishing for Deep Bugs with Grammars
- SoK: Prudent Evaluation Practices for Fuzzing 引用了 Nyx: Greybox Hypervisor Fuzzing using Fast Snapshots and Affine Types
- SoK: Prudent Evaluation Practices for Fuzzing 引用了 CodeAlchemist: Semantics-Aware Code Generation to Find Vulnerabilities in JavaScript Engines
- SoK: Prudent Evaluation Practices for Fuzzing 引用了 Evaluating Fuzz Testing
- Automated conformance testing for JavaScript engines via deep compiler fuzzing 引用了 CodeAlchemist: Semantics-Aware Code Generation to Find Vulnerabilities in JavaScript Engines
- Automated conformance testing for JavaScript engines via deep compiler fuzzing 引用了 Evaluating Fuzz Testing
- Nyx: Greybox Hypervisor Fuzzing using Fast Snapshots and Affine Types 引用了 NAUTILUS: Fishing for Deep Bugs with Grammars
- Nyx: Greybox Hypervisor Fuzzing using Fast Snapshots and Affine Types 引用了 CodeAlchemist: Semantics-Aware Code Generation to Find Vulnerabilities in JavaScript Engines
- Nyx: Greybox Hypervisor Fuzzing using Fast Snapshots and Affine Types 引用了 Evaluating Fuzz Testing
- One Engine to Fuzz 'em All: Generic Language Processor Testing with Semantic Validation 引用了 NAUTILUS: Fishing for Deep Bugs with Grammars
- One Engine to Fuzz 'em All: Generic Language Processor Testing with Semantic Validation 引用了 Skyfire: Data-Driven Seed Generation for Fuzzing
- One Engine to Fuzz 'em All: Generic Language Processor Testing with Semantic Validation 引用了 CodeAlchemist: Semantics-Aware Code Generation to Find Vulnerabilities in JavaScript Engines
- One Engine to Fuzz 'em All: Generic Language Processor Testing with Semantic Validation 引用了 Evaluating Fuzz Testing
- CodeAlchemist: Semantics-Aware Code Generation to Find Vulnerabilities in JavaScript Engines 引用了 Skyfire: Data-Driven Seed Generation for Fuzzing
- Gramatron: effective grammar-aware fuzzing 引用了 NAUTILUS: Fishing for Deep Bugs with Grammars
- Gramatron: effective grammar-aware fuzzing 引用了 Skyfire: Data-Driven Seed Generation for Fuzzing
- Gramatron: effective grammar-aware fuzzing 引用了 CodeAlchemist: Semantics-Aware Code Generation to Find Vulnerabilities in JavaScript Engines
- Gramatron: effective grammar-aware fuzzing 引用了 Evaluating Fuzz Testing
- Evaluating Fuzz Testing 引用了 Skyfire: Data-Driven Seed Generation for Fuzzing
引用它的顶会 Paper63
- Nyx: Greybox Hypervisor Fuzzing using Fast Snapshots and Affine TypesSergej Schumilo, Cornelius Aschermann, Ali Abbasi, Simon Wörner 等USENIX Security 2021 · 102 次引用
- Automated conformance testing for JavaScript engines via deep compiler fuzzingGuixin Ye, Zhanyong Tang, Shin Hwei Tan, Songfang Huang 等PLDI 2021 · 75 次引用
- One Engine to Fuzz 'em All: Generic Language Processor Testing with Semantic ValidationYongheng Chen, Rui Zhong, Hong Hu, Hangfan Zhang 等S&P 2021 · 70 次引用
- SoK: Prudent Evaluation Practices for FuzzingMoritz Schloegel, Nils Bars, Nico Schiller, Lukas Bernhard 等S&P 2024 · 69 次引用
- Gramatron: effective grammar-aware fuzzingPrashast Srivastava, Mathias PayerISSTA 2021 · 51 次引用
它引用的 Paper5
- Evaluating Fuzz TestingGeorge Klees, Andrew Ruef, Benji Cooper, Shiyi Wei 等CCS 2018 · 753 次引用
- Skyfire: Data-Driven Seed Generation for FuzzingJunjie Wang, Bihuan Chen, Lei Wei, Yang LiuS&P 2017 · 382 次引用
- NAUTILUS: Fishing for Deep Bugs with GrammarsCornelius Aschermann, Tommaso Frassetto, Thorsten Holz, Patrick Jauernig 等NDSS 2019 · 291 次引用
- CodeAlchemist: Semantics-Aware Code Generation to Find Vulnerabilities in JavaScript EnginesHyungSeok Han, DongHyeon Oh, Sang Kil ChaNDSS 2019 · 178 次引用
- EnFuzz: Ensemble Fuzzing with Seed Synchronization among Diverse FuzzersYuanliang Chen, Yu Jiang, Fuchen Ma, Jie Liang 等USENIX Security 2019 · 139 次引用
相关 Paper
- BCFuzz: Bytecode-Driven Fuzzing for JavaScript EnginesJiming Wang, Chenggang Wu, Jikai Ren, Yuhao Hu 等ASE 2025 · 1 次引用
- SoFi: Reflection-Augmented Fuzzing for JavaScript EnginesXiaoyu He, Xiaofei Xie, Yuekang Li, Jianwen Sun 等CCS 2021 · 34 次引用
- FuzzJIT: Oracle-Enhanced Fuzzing for JavaScript Engine JIT CompilerJunjie Wang, Zhiyi Zhang, Shuang Liu, Xiaoning Du 等USENIX Security 2023
- Extraction and Mutation at a High Level: Template-Based Fuzzing for JavaScript EnginesWai Kin Wong, Dongwei Xiao, Anthony Cheuk Tung Lai, Yiteng Peng 等OOPSLA 2025 · 4 次引用
- Token-Level FuzzingChristopher Salls, Chani Jindal, Jake Corina, Christopher Kruegel 等USENIX Security 2021
