Bilingual Problems: Studying the Security Risks Incurred by Native Extensions in Scripting Languages
Cristian-Alexandru Staicu, Sazzadur Rahaman, \'Agnes Kiss, Michael, Backes

TL;DR
This paper analyzes security risks posed by native extensions in scripting languages, revealing vulnerabilities in npm packages and web apps, and introduces a methodology for studying such misuse.
Contribution
It provides a comparative analysis of native extension risks, proposes a new study methodology, and demonstrates real vulnerabilities in npm and web applications.
Findings
33 npm packages vulnerable to memory exploits
6 web applications susceptible to remote exploits
7 security advisories issued, mostly high severity
Abstract
Scripting languages are continuously gaining popularity due to their ease of use and the flourishing software ecosystems that surround them. These languages offer crash and memory safety by design, thus, developers do not need to understand and prevent low-level security issues like the ones plaguing the C code. However, scripting languages often allow native extensions, which are a way for custom C/C++ code to be invoked directly from the high-level language. While this feature promises several benefits such as increased performance or the reuse of legacy code, it can also break the language's guarantees, e.g., crash-safety. In this work, we first provide a comparative analysis of the security risks of native extension APIs in three popular scripting languages. Additionally, we discuss a novel methodology for studying the misuse of the native extension API. We then perform an in-depth…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSecurity and Verification in Computing · Web Application Security Vulnerabilities · Advanced Malware Detection Techniques
