Lune

ASE2021顶会

JSTAR: JavaScript Specification Type Analyzer using Refinement

Jihyeok Park, Seungmin An, Wonho Shin, Yusung Sim, Sukyoung Ryu

摘要

JavaScript is one of the mainstream programming languages for client-side programming, server-side programming, and even embedded systems. Various JavaScript engines developed and maintained in diverse fields must conform to the syntax and semantics described in ECMAScript, the standard specification of JavaScript. Since an incorrect description in ECMAScript can lead to wrong JavaScript engine implementations, checking the correctness of ECMAScript is critical and essential. However, all the specification updates are currently manually reviewed by the Ecma Technical Committee 39 (TC39) without any automated tools. Moreover, in late 2014, the committee announced the yearly release cadence and open development process of ECMAScript to quickly adapt to evolving development environments. Because of such frequent updates, checking the correctness of ECMAScript becomes more labor-intensive and error-prone.To alleviate the problem, we propose JSTAR, a JavaScript Specification Type Analyzer using Refinement. It is the first tool that performs type analysis on JavaScript specifications and detects specification bugs using a bug detector. For a given specification, JSTAR first compiles each abstract algorithm written in a structured natural language to a corresponding function in IR<inf>ES</inf>, an untyped intermediate representation for ECMAScript. Then, it performs type analysis for compiled functions with specification types defined in ECMAScript. Based on the result of type analysis, JSTAR detects specification bugs using a bug detector consisting of four checkers. To increase the precision of the type analysis, we present condition-based refinement for type analysis, which prunes out infeasible abstract states using conditions of assertions and branches. We evaluated JSTAR with all 864 versions in the official ECMAScript repository for the recent three years from 2018 to 2021. JSTAR took 137.3 seconds on average to perform type analysis for each version, and detected 157 type-related specification bugs with 59.2% precision; 93 out of 157 bugs are true bugs. Among them, 14 bugs are newly detected by JSTAR, and the committee confirmed them all.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • Automated conformance testing for JavaScript engines via deep compiler fuzzing 引用了 JISET: JavaScript IR-based Semantics Extraction Toolchain
  • Automated conformance testing for JavaScript engines via deep compiler fuzzing 引用了 JEST: N+1 -version Differential Testing of Both JavaScript Engines and Specification
  • Automatically deriving JavaScript static analyzers from specifications using Meta-level static analysis 引用了 JISET: JavaScript IR-based Semantics Extraction Toolchain
  • Automatically deriving JavaScript static analyzers from specifications using Meta-level static analysis 引用了 JEST: N+1 -version Differential Testing of Both JavaScript Engines and Specification
  • Bringing the WebAssembly Standard up to Speed with SpecTec 引用了 JISET: JavaScript IR-based Semantics Extraction Toolchain
  • Bringing the WebAssembly Standard up to Speed with SpecTec 引用了 Automatically deriving JavaScript static analyzers from specifications using Meta-level static analysis
  • Bringing the WebAssembly Standard up to Speed with SpecTec 引用了 JEST: N+1 -version Differential Testing of Both JavaScript Engines and Specification
  • Detecting Inconsistencies in Arm CCA's Formally Verified Specification 引用了 Automatically deriving JavaScript static analyzers from specifications using Meta-level static analysis
  • Detecting Inconsistencies in Arm CCA's Formally Verified Specification 引用了 JEST: N+1 -version Differential Testing of Both JavaScript Engines and Specification
  • JEST: N+1 -version Differential Testing of Both JavaScript Engines and Specification 引用了 JISET: JavaScript IR-based Semantics Extraction Toolchain
  • Feature-Sensitive Coverage for Conformance Testing of Programming Language Implementations 引用了 Automated conformance testing for JavaScript engines via deep compiler fuzzing
  • Feature-Sensitive Coverage for Conformance Testing of Programming Language Implementations 引用了 JISET: JavaScript IR-based Semantics Extraction Toolchain
  • Feature-Sensitive Coverage for Conformance Testing of Programming Language Implementations 引用了 Automatically deriving JavaScript static analyzers from specifications using Meta-level static analysis
  • Feature-Sensitive Coverage for Conformance Testing of Programming Language Implementations 引用了 JEST: N+1 -version Differential Testing of Both JavaScript Engines and Specification
  • P4-SpecTec: Integrating a Language Mechanization Framework into the Real-World P4 Specification 引用了 JISET: JavaScript IR-based Semantics Extraction Toolchain
  • P4-SpecTec: Integrating a Language Mechanization Framework into the Real-World P4 Specification 引用了 Automatically deriving JavaScript static analyzers from specifications using Meta-level static analysis
  • P4-SpecTec: Integrating a Language Mechanization Framework into the Real-World P4 Specification 引用了 JEST: N+1 -version Differential Testing of Both JavaScript Engines and Specification
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper5

  1. Bringing the WebAssembly Standard up to Speed with SpecTecDongjun Youn, Wonho Shin, Jaehyun Lee, Sukyoung Ryu 等PLDI 2024 · 30 次引用
  2. Automatically deriving JavaScript static analyzers from specifications using Meta-level static analysisJihyeok Park, Seungmin An, Sukyoung RyuFSE 2022 · 10 次引用
  3. Feature-Sensitive Coverage for Conformance Testing of Programming Language ImplementationsJihyeok Park, Dongjun Youn, Kanguk Lee, Sukyoung RyuPLDI 2023 · 3 次引用
  4. Detecting Inconsistencies in Arm CCA's Formally Verified SpecificationChangho Choi, Xiang Cheng, Bokdeuk Jeong, Taesoo KimASPLOS 2026
  5. P4-SpecTec: Integrating a Language Mechanization Framework into the Real-World P4 SpecificationJaehyun Lee, Seokhun Jeong, Sehyuk Ahn, Haechan Kwon 等OOPSLA 2026

它引用的 Paper4

  1. Automated conformance testing for JavaScript engines via deep compiler fuzzingGuixin Ye, Zhanyong Tang, Shin Hwei Tan, Songfang Huang 等PLDI 2021 · 75 次引用
  2. JEST: N+1 -version Differential Testing of Both JavaScript Engines and SpecificationJihyeok Park, Seungmin An, Dongjun Youn, Gyeongwon Kim 等ICSE 2021 · 24 次引用
  3. JISET: JavaScript IR-based Semantics Extraction ToolchainJihyeok Park, Jihee Park, Seungmin An, Sukyoung RyuASE 2020 · 20 次引用
  4. BaseSpec: Comparative Analysis of Baseband Software and Cellular Specifications for L3 ProtocolsEunsoo Kim, Dongkwan Kim, CheolJun Park, Insu Yun 等NDSS 2021

相关 Paper

  1. CodeAlchemist: Semantics-Aware Code Generation to Find Vulnerabilities in JavaScript EnginesHyungSeok Han, DongHyeon Oh, Sang Kil ChaNDSS 2019 · 178 次引用
  2. IRIDIUM: A Framework for Statically Optimizing JavaScript ProgramsMeetesh Kalpesh Mehta, Anirudh Garg, Aneeket Yadav, Manas ThakurOOPSLA 2026
  3. No Strings Attached: An Empirical Study of String-related Software BugsAryaz Eghbali, Michael PradelASE 2020 · 17 次引用
  4. FUZZILLI: Fuzzing for JavaScript JIT Compiler VulnerabilitiesSamuel Groß, Simon Koch, Lukas Bernhard, Thorsten Holz 等NDSS 2023
  5. SoFi: Reflection-Augmented Fuzzing for JavaScript EnginesXiaoyu He, Xiaofei Xie, Yuekang Li, Jianwen Sun 等CCS 2021 · 34 次引用
黄昏的海面,两侧是细线勾勒的悬崖