Lune

CCS2022顶会

JIT-Picking: Differential Fuzzing of JavaScript Engines

Lukas Bernhard, Tobias Scharnowski, Moritz Schloegel, Tim Blazytko, Thorsten Holz

摘要

Modern JavaScript engines that power websites and even full applications on the Web are driven by the need for an increasingly fast and snappy user experience. These engines use several complex and potentially error-prone mechanisms to optimize their performance. Unsurprisingly, the inevitable complexity results in a huge attack surface and various types of software vulnerabilities. On the defender's side, fuzz testing has proven to be an invaluable tool for uncovering different kinds of memory safety violations. Although it is difficult to test interpreters and JIT compilers in an automated way, recent proposals for input generation based on grammars or target-specific intermediate representations helped uncovering many software faults. However, subtle logic bugs and miscomputations that arise from optimization passes in JIT engines continue to elude state-of-the-art testing methods. While such flaws might seem unremarkable at first glance, they are often still exploitable in practice. In this paper, we propose a novel technique for effectively uncovering this class of subtle bugs during fuzzing. The key idea is to take advantage of the tight coupling between a JavaScript engine's interpreter and its corresponding JIT compiler as a domain-specific and generic bug oracle, which in turn yields a highly sensitive fault detection mechanism. We have designed and implemented a prototype of the proposed approach in a tool called Jit-Picker. In an empirical evaluation, we show that our method enables us to detect subtle software faults that prior work missed. In total, we uncovered 32 bugs that were not publicly known and received a $10.000 bug bounty from Mozilla as a reward for our contributions to JIT engine security.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • Validating JIT Compilers via Compilation Space Exploration 引用了 NAUTILUS: Fishing for Deep Bugs with Grammars
  • Validating JIT Compilers via Compilation Space Exploration 引用了 CodeAlchemist: Semantics-Aware Code Generation to Find Vulnerabilities in JavaScript Engines
  • NAUTILUS: Fishing for Deep Bugs with Grammars 引用了 Coverage-based Greybox Fuzzing as Markov Chain
  • SoK: Prudent Evaluation Practices for Fuzzing 引用了 NAUTILUS: Fishing for Deep Bugs with Grammars
  • SoK: Prudent Evaluation Practices for Fuzzing 引用了 REDQUEEN: Fuzzing with Input-to-State Correspondence
  • SoK: Prudent Evaluation Practices for Fuzzing 引用了 CodeAlchemist: Semantics-Aware Code Generation to Find Vulnerabilities in JavaScript Engines
  • SoK: Prudent Evaluation Practices for Fuzzing 引用了 Coverage-based Greybox Fuzzing as Markov Chain
  • REDQUEEN: Fuzzing with Input-to-State Correspondence 引用了 Coverage-based Greybox Fuzzing as Markov Chain
  • Translation Validation for JIT Compiler in the V8 JavaScript Engine 引用了 CodeAlchemist: Semantics-Aware Code Generation to Find Vulnerabilities in JavaScript Engines
  • Towards Better Semantics Exploration for Browser Fuzzing 引用了 NAUTILUS: Fishing for Deep Bugs with Grammars
  • Towards Better Semantics Exploration for Browser Fuzzing 引用了 CodeAlchemist: Semantics-Aware Code Generation to Find Vulnerabilities in JavaScript Engines
  • SoK: Sanitizing for Security 引用了 Coverage-based Greybox Fuzzing as Markov Chain
  • Icarus: Trustworthy Just-In-Time Compilers with Symbolic Meta-Execution 引用了 CodeAlchemist: Semantics-Aware Code Generation to Find Vulnerabilities in JavaScript Engines
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper33

  1. SoK: Prudent Evaluation Practices for FuzzingMoritz Schloegel, Nils Bars, Nico Schiller, Lukas Bernhard 等S&P 2024 · 69 次引用
  2. Validating JIT Compilers via Compilation Space ExplorationCong Li, Yanyan Jiang, Chang Xu, Zhendong SuSOSP 2023 · 22 次引用
  3. Translation Validation for JIT Compiler in the V8 JavaScript EngineSeungwan Kwon, Jaeseong Kwon, Wooseok Kang, Juneyoung Lee 等ICSE 2024 · 19 次引用
  4. Icarus: Trustworthy Just-In-Time Compilers with Symbolic Meta-ExecutionNaomi Smith, Abhishek Sharma, John Renner, David Thien 等SOSP 2024 · 17 次引用
  5. Towards Better Semantics Exploration for Browser FuzzingChijin Zhou, Quan Zhang, Lihua Guo, Mingzhe Wang 等OOPSLA 2023 · 15 次引用

它引用的 Paper25

  1. Coverage-based Greybox Fuzzing as Markov ChainMarcel Böhme, Van-Thuan Pham, Abhik RoychoudhuryCCS 2016 · 1,026 次引用
  2. REDQUEEN: Fuzzing with Input-to-State CorrespondenceCornelius Aschermann, Sergej Schumilo, Tim Blazytko, Robert Gawlik 等NDSS 2019 · 413 次引用
  3. NAUTILUS: Fishing for Deep Bugs with GrammarsCornelius Aschermann, Tommaso Frassetto, Thorsten Holz, Patrick Jauernig 等NDSS 2019 · 291 次引用
  4. SoK: Sanitizing for SecurityDokyung Song, Julian Lettner, Prabhu Rajasekaran, Yeoul Na 等S&P 2019 · 196 次引用
  5. CodeAlchemist: Semantics-Aware Code Generation to Find Vulnerabilities in JavaScript EnginesHyungSeok Han, DongHyeon Oh, Sang Kil ChaNDSS 2019 · 178 次引用

相关 Paper

  1. FUZZILLI: Fuzzing for JavaScript JIT Compiler VulnerabilitiesSamuel Groß, Simon Koch, Lukas Bernhard, Thorsten Holz 等NDSS 2023
  2. FuzzJIT: Oracle-Enhanced Fuzzing for JavaScript Engine JIT CompilerJunjie Wang, Zhiyi Zhang, Shuang Liu, Xiaoning Du 等USENIX Security 2023
  3. BCFuzz: Bytecode-Driven Fuzzing for JavaScript EnginesJiming Wang, Chenggang Wu, Jikai Ren, Yuhao Hu 等ASE 2025 · 1 次引用
  4. OptFuzz: Optimization Path Guided Fuzzing for JavaScript JIT CompilersJiming Wang, Yan Kang, Chenggang Wu, Yuhao Hu 等USENIX Security 2024 · 7 次引用
  5. DUMPLING: Fine-grained Differential JavaScript Engine FuzzingLiam Wachter, Julian Gremminger, Christian Wressnegger, Mathias Payer 等NDSS 2025
黄昏的海面,两侧是细线勾勒的悬崖