2017 · 39 citations · 43 references
ComputingComputer ScienceComputer SystemsProgramming LanguagesSecure Software DevelopmentSystems ProgrammingApi SecurityError HandlingStatic Vulnerability AnalysisExecution ModelFilesystem SecurityImplementation BugsJavascriptJavascript SecurityLow-level C ProgrammingRuntime Error CheckingRuntime Error Detection
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.
43
Zakir Durumeric, Frank Li, James Kasten et al. · 2014 · 657 citations · Full text
Native Client: A Sandbox for Portable, Untrusted x86 Native Code
Bennet Yee, David Sehr, Gregory Dardyk et al. · 2009 · 553 citations
Santosh Nagarakatte, Milo M. K. Martin, Steve Zdancewic · 2009 · 529 citations