The Security Risk of Lacking Compiler Protection in WebAssembly

Onderzoeksoutput: Conference paper

57 Downloads (Pure)

Samenvatting

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.
Originele taal-2English
TitelProceedings of the 21st IEEE International Conference on Software Quality, Reliability, and Security (QRS 2021)
UitgeverijIEEE
Pagina's132-139
ISBN van elektronische versie978-1-6654-5813-9
DOI's
StatusPublished - 2021
Evenement21st IEEE International Conference on Software Quality, Reliability, and Security -
Duur: 6 dec 202110 dec 2021
Congresnummer: 2021
https://qrs21.techconf.org/

Publicatie series

Naam2021 IEEE 21ST INTERNATIONAL CONFERENCE ON SOFTWARE QUALITY, RELIABILITY AND SECURITY (QRS 2021)
ISSN van geprinte versie2693-9185

Conference

Conference21st IEEE International Conference on Software Quality, Reliability, and Security
Verkorte titelQRS
Periode6/12/2110/12/21
Internet adres

Bibliografische nota

Publisher Copyright:
© 2021 IEEE.

Copyright:
Copyright 2023 Elsevier B.V., All rights reserved.

Vingerafdruk

Duik in de onderzoeksthema's van 'The Security Risk of Lacking Compiler Protection in WebAssembly'. Samen vormen ze een unieke vingerafdruk.

Citeer dit