Publication | Closed Access
Finding and Preventing Bugs in JavaScript Bindings
39
Citations
41
References
2017
Year
Unknown Venue
EngineeringRobustness TestingSoftware AnalysisFormal VerificationBug SeverityHardware SecurityJavascript CodeStatic CheckingRuntime VerificationComputer EngineeringLate BindingComputer ScienceStatic Program AnalysisLanguage-based SecuritySoftware SecurityMutation-based TestingProgram AnalysisSoftware TestingFormal MethodsPreventing BugsRuntime FunctionsSystem Software
JavaScript, like many high-level languages, relies on runtime systemswritten in low-level C and C++. For example, the Node.js runtime systemgives JavaScript code access to the underlying filesystem, networking, and I/O by implementing utility functions in C++. Since C++'s typesystem, memory model, and execution model differ significantly fromJavaScript's, JavaScript code must call these runtime functions viaintermediate binding layer code that translates type, state, and failure between the two languages. Unfortunately, binding code isboth hard to avoid and hard to get right. This paper describes several types of exploitable errors that bindingcode creates, and develops both a suite of easily-to-build static checkersto detect such errors and a backwards-compatible, low-overhead API toprevent them. We show that binding flaws are a serious security problem byusing our checkers to craft 81 proof-of-concept exploits forsecurity flaws in the binding layers of the Node.js and Chrome, runtimesystems that support hundreds of millions of users. As one practical measure of binding bug severity, we were awarded $6,000 in bounties for just two Chrome bug reports.
| Year | Citations | |
|---|---|---|
Page 1
Page 1