arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2111.01421cs.CRcs.PL
收藏

WebAssembly中缺少安全保护的安全风险

The Security Risk of Lacking Compiler Protection in WebAssembly

Quentin Stiévenart, Coen De Roover, Mohammad Ghafari

摘要:

WebAssembly越来越多地被用作跨平台应用程序的编译目标。在本文中,我们调查是否可以依靠现有的C编译器执行的安全措施时,编译C程序WebAssembly。我们将4,469个具有已知缓冲区溢出漏洞的C程序编译为x86代码和WebAssembly,并观察到1,088个程序的生成代码的执行结果不同。通过手动检查,我们发现这些问题的根本原因是生成的WebAssembly中缺乏安全措施,例如堆栈金丝雀:虽然x86代码在基于堆栈的缓冲区溢出时崩溃,但相应的WebAssembly仍在继续执行。我们的结论是,编译一个现有的C程序到WebAssembly没有额外的预防措施可能会妨碍其安全性,我们鼓励更多的研究在这个方向。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑