Bringing Binary Exploitation at Port 80: Understanding C Vulnerabilities in WebAssembly

Emmanuele Massidda;Lorenzo Pisu;Davide Maiorca;Giorgio Giacinto
2024-01-01

Abstract

WebAssembly (Wasm) has emerged as a novel approach for integrating binaries into web applications starting from various programming languages such as C, Rust and Python. Despite the numerous claims about its memory safety, issues such as buffer overflow, format strings, use after free, and integer overflow have resurfaced within Wasm. These vulnerabilities can be used to impact web application security, potentially leading to critical issues like Cross-Site Scripting (XSS) and Remote Code Execution (RCE). Our work aims to demonstrate how memory-related vulnerabilities in C codes, when compiled into Wasm, can be exploited for XSS and RCE. Our methodology proposes proof of concepts related to exploiting important stack- and heap-based vulnerabilities. In particular, we demonstrate for the first time that specific vulnerabilities (such as format string) can be effectively employed to achieve arbitrary read and write in Wasm contexts. Our results pose serious concerns about the reliability of Wasm in terms of memory safety, which we believe should be addressed in the next releases.
2024
Inglese
Proceedings of the 21st International Conference on Security and Cryptography - Volume 1: SECRYPT
978-989-758-709-2
Sabrina De Capitani Di Vimercati, Pierangela Samarati
552
559
8
21st International Conference on Security and Cryptography - SECRYPT 2024
Esperti anonimi
08-10 Luglio 2024
Dijon, Francia
internazionale
scientifica
Web Assembly; Wasm; Software Security; Web Security
no
4 Contributo in Atti di Convegno (Proceeding)::4.1 Contributo in Atti di convegno
Massidda, Emmanuele; Pisu, Lorenzo; Maiorca, Davide; Giacinto, Giorgio
273
4
4.1 Contributo in Atti di convegno
open
info:eu-repo/semantics/conferencePaper
Files in This Item:
File Size Format  
128524.pdf

open access

Type: versione editoriale
Size 469.29 kB
Format Adobe PDF
469.29 kB Adobe PDF View/Open

Items in DSpace are protected by copyright, with all rights reserved, unless otherwise indicated.

Questionnaire and social

Share on:
Impostazioni cookie