HackerPapers

arXiv:2111.01421cs.CR

The Security Risk of Lacking Compiler Protection in WebAssembly

Quentin Stiévenart, Coen De Roover, Mohammad Ghafari

Early discovery. Linked by one identifiable commenter. This paper is outside the main ranking; a mention is not an endorsement.

Abstract

WebAssembly is increasingly used as the compilation target for cross-platform applications. In this paper, we investigate whether one can rely on the security measures enforced by existing C compilers when compiling C programs to WebAssembly. We compiled 4,469 C programs with known buffer overflow vulnerabilities to x86 code and to WebAssembly, and observed the outcome of the execution of the generated code to differ for 1,088 programs. Through manual inspection, we identified that the root cause for these is the lack of security measures such as stack canaries in the generated WebAssembly: while x86 code crashes upon a stack-based buffer overflow, the corresponding WebAssembly continues to be executed. We conclude that compiling an existing C program to WebAssembly without additional precautions may hamper its security, and we encourage more research in this direction.

arXiv comments
The 21st IEEE International Conference on Software Quality, Reliability and Security (QRS 2021)
Journal reference
DOI
Subjects
cs.CRCryptography and Security cs.PLProgramming Languages

On Hacker News

Linked by 1 identifiable commenter in 3 comments across 1 thread, from Jul 2022 to Jul 2022. Found in 2 HN submissions from Nov 2021 to Sep 2022. Open submission discussions.

Comments linking this paper, per year.

Discussed in comments1 thread

    • "Usenix Security '20-Everything Old Is New Again: Binary Security of WebAssembly" https://www.youtube.com/watch?v=glL__xjviro "The Security Risk of Lacking Compiler Protection in WebAssembly" https://arxiv.org/abs/2111.01421

      pjmlpView on HNParent context

    • Usenix Security '20-Everything Old Is New Again: Binary Security of WebAssembly" https://www.youtube.com/watch?v=glL__xjviro "The Security Risk of Lacking Compiler Protection in WebAssembly" https://arxiv.org/abs/2111.01421

      pjmlpView on HNParent context

    • Usenix Security '20-Everything Old Is New Again: Binary Security of WebAssembly" https://www.youtube.com/watch?v=glL__xjviro "The Security Risk of Lacking Compiler Protection in WebAssembly" https://arxiv.org/abs/2111.01421

      pjmlpView on HNParent context

Submitted to Hacker News

Connected through shared HN threads, not inferred similarity or a recommendation.