Lune

S&P2020Top-tier venue

Fuzzing JavaScript Engines with Aspect-preserving Mutation

Soyeon Park, Wen Xu, Insu Yun, Daehee Jang, Taesoo Kim

Abstract

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

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.

63 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

  • EnFuzz: Ensemble Fuzzing with Seed Synchronization among Diverse Fuzzers cites Skyfire: Data-Driven Seed Generation for Fuzzing
  • EnFuzz: Ensemble Fuzzing with Seed Synchronization among Diverse Fuzzers cites Evaluating Fuzz Testing
  • NAUTILUS: Fishing for Deep Bugs with Grammars cites Skyfire: Data-Driven Seed Generation for Fuzzing
  • SoK: Prudent Evaluation Practices for Fuzzing cites EnFuzz: Ensemble Fuzzing with Seed Synchronization among Diverse Fuzzers
  • SoK: Prudent Evaluation Practices for Fuzzing cites NAUTILUS: Fishing for Deep Bugs with Grammars
  • SoK: Prudent Evaluation Practices for Fuzzing cites Nyx: Greybox Hypervisor Fuzzing using Fast Snapshots and Affine Types
  • SoK: Prudent Evaluation Practices for Fuzzing cites CodeAlchemist: Semantics-Aware Code Generation to Find Vulnerabilities in JavaScript Engines
  • SoK: Prudent Evaluation Practices for Fuzzing cites Evaluating Fuzz Testing
  • Automated conformance testing for JavaScript engines via deep compiler fuzzing cites CodeAlchemist: Semantics-Aware Code Generation to Find Vulnerabilities in JavaScript Engines
  • Automated conformance testing for JavaScript engines via deep compiler fuzzing cites Evaluating Fuzz Testing
  • Nyx: Greybox Hypervisor Fuzzing using Fast Snapshots and Affine Types cites NAUTILUS: Fishing for Deep Bugs with Grammars
  • Nyx: Greybox Hypervisor Fuzzing using Fast Snapshots and Affine Types cites CodeAlchemist: Semantics-Aware Code Generation to Find Vulnerabilities in JavaScript Engines
  • Nyx: Greybox Hypervisor Fuzzing using Fast Snapshots and Affine Types cites Evaluating Fuzz Testing
  • One Engine to Fuzz 'em All: Generic Language Processor Testing with Semantic Validation cites NAUTILUS: Fishing for Deep Bugs with Grammars
  • One Engine to Fuzz 'em All: Generic Language Processor Testing with Semantic Validation cites Skyfire: Data-Driven Seed Generation for Fuzzing
  • One Engine to Fuzz 'em All: Generic Language Processor Testing with Semantic Validation cites CodeAlchemist: Semantics-Aware Code Generation to Find Vulnerabilities in JavaScript Engines
  • One Engine to Fuzz 'em All: Generic Language Processor Testing with Semantic Validation cites Evaluating Fuzz Testing
  • CodeAlchemist: Semantics-Aware Code Generation to Find Vulnerabilities in JavaScript Engines cites Skyfire: Data-Driven Seed Generation for Fuzzing
  • Gramatron: effective grammar-aware fuzzing cites NAUTILUS: Fishing for Deep Bugs with Grammars
  • Gramatron: effective grammar-aware fuzzing cites Skyfire: Data-Driven Seed Generation for Fuzzing
  • Gramatron: effective grammar-aware fuzzing cites CodeAlchemist: Semantics-Aware Code Generation to Find Vulnerabilities in JavaScript Engines
  • Gramatron: effective grammar-aware fuzzing cites Evaluating Fuzz Testing
  • Evaluating Fuzz Testing cites Skyfire: Data-Driven Seed Generation for Fuzzing
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers63

  1. Nyx: Greybox Hypervisor Fuzzing using Fast Snapshots and Affine TypesSergej Schumilo, Cornelius Aschermann, Ali Abbasi, Simon Wörner et al.USENIX Security 2021 · 102 citations
  2. Automated conformance testing for JavaScript engines via deep compiler fuzzingGuixin Ye, Zhanyong Tang, Shin Hwei Tan, Songfang Huang et al.PLDI 2021 · 75 citations
  3. One Engine to Fuzz 'em All: Generic Language Processor Testing with Semantic ValidationYongheng Chen, Rui Zhong, Hong Hu, Hangfan Zhang et al.S&P 2021 · 70 citations
  4. SoK: Prudent Evaluation Practices for FuzzingMoritz Schloegel, Nils Bars, Nico Schiller, Lukas Bernhard et al.S&P 2024 · 69 citations
  5. Gramatron: effective grammar-aware fuzzingPrashast Srivastava, Mathias PayerISSTA 2021 · 51 citations

Builds on5

  1. Evaluating Fuzz TestingGeorge Klees, Andrew Ruef, Benji Cooper, Shiyi Wei et al.CCS 2018 · 753 citations
  2. Skyfire: Data-Driven Seed Generation for FuzzingJunjie Wang, Bihuan Chen, Lei Wei, Yang LiuS&P 2017 · 382 citations
  3. NAUTILUS: Fishing for Deep Bugs with GrammarsCornelius Aschermann, Tommaso Frassetto, Thorsten Holz, Patrick Jauernig et al.NDSS 2019 · 291 citations
  4. CodeAlchemist: Semantics-Aware Code Generation to Find Vulnerabilities in JavaScript EnginesHyungSeok Han, DongHyeon Oh, Sang Kil ChaNDSS 2019 · 178 citations
  5. EnFuzz: Ensemble Fuzzing with Seed Synchronization among Diverse FuzzersYuanliang Chen, Yu Jiang, Fuchen Ma, Jie Liang et al.USENIX Security 2019 · 139 citations

Related papers

  1. BCFuzz: Bytecode-Driven Fuzzing for JavaScript EnginesJiming Wang, Chenggang Wu, Jikai Ren, Yuhao Hu et al.ASE 2025 · 1 citation
  2. SoFi: Reflection-Augmented Fuzzing for JavaScript EnginesXiaoyu He, Xiaofei Xie, Yuekang Li, Jianwen Sun et al.CCS 2021 · 34 citations
  3. FuzzJIT: Oracle-Enhanced Fuzzing for JavaScript Engine JIT CompilerJunjie Wang, Zhiyi Zhang, Shuang Liu, Xiaoning Du et al.USENIX Security 2023
  4. Extraction and Mutation at a High Level: Template-Based Fuzzing for JavaScript EnginesWai Kin Wong, Dongwei Xiao, Anthony Cheuk Tung Lai, Yiteng Peng et al.OOPSLA 2025 · 4 citations
  5. Token-Level FuzzingChristopher Salls, Chani Jindal, Jake Corina, Christopher Kruegel et al.USENIX Security 2021
Dusk over the sea between two cliffs drawn in fine vertical lines