EUVIMEDEUVIMED entdecken
Open Access · CC BY 4.0

Wemby’s Web: Hunting for Memory Corruption in WebAssembly

Oussama Draissi, Tobias Cloosters, David Klein, Michael Rodler, Marius Musch, Martin Johns, Lucas Davi

Proceedings of the ACM on Software Engineering · 22.06.2025 · 2 (ISSTA) · 1326-1349

DOI: 10.1145/3728937 ↗

Kurz gefasst

Fachartikel in der Zeitschrift Proceedings of the ACM on Software Engineering, online erschienen am 22.06.2025. Verfasst von Oussama Draissi und 6 weiteren Autor:innen. Die Arbeit wurde bisher 5-mal zitiert (Crossref) und nennt 96 Literaturangaben. Der Volltext ist frei zugänglich (Open Access, CC BY 4.0).

AbstractBibliografische AngabenZitierenVerwandte Studien

Abstract (Originalsprache)

WebAssembly enables fast execution of performance-critical in web applications utilizing native code. However, recent research has demonstrated the potential for memory corruption errors within WebAssembly modules to exploit web applications. In this work, we present the first systematic analysis of memory corruption in WebAssembly, unveiling the prevalence of a novel threat model where memory corruption enables code injection on a victim’s browser. Our large-scale analysis across 37 797 domains reveals that an alarming 29 411 (77.81 %) of those fully trust data coming from potentially attacker-controlled sources. As a result, an attacker can exploit memory errors to manipulate the WebAssembly memory, where the data is implicitly trusted and frequently passed into security-sensitive functions such as eval or directly into the DOM via innerHTML . Thus, an attacker can abuse this trust to gain JavaScript code execution, i.e., Cross-Site Scripting (XSS). To tackle this issue, we present Wemby, the first viable approach to efficiently analyze WebAssembly-powered websites holistically. We demonstrate that Wemby is proficient at detecting remotely exposed memory corruption errors in web applications through fuzzing. For this purpose, we implement binary-only WebAssembly instrumentation that provides fine-grained memory corruption oracles. We applied Wemby to different websites, uncovering several memory corruption bugs, including one on the Zoom platform. In terms of performance, our ablation study demonstrates that Wemby outperforms current WebAssembly fuzzers. Specifically, Wemby achieves an average speed improvement of 232 times and delivers 46 % greater code coverage compared to the state-of-the-art.

Zitieren

APA

Draissi, O., Cloosters, T., Klein, D., Rodler, M., Musch, M., Johns, M., & Davi, L. (2025). Wemby’s Web: Hunting for Memory Corruption in WebAssembly. Proceedings of the ACM on Software Engineering, 2(ISSTA), 1326-1349. https://doi.org/10.1145/3728937

Vancouver

Draissi O, Cloosters T, Klein D, Rodler M, Musch M, Johns M, et al. Wemby’s Web: Hunting for Memory Corruption in WebAssembly. Proceedings of the ACM on Software Engineering. 2025;2(ISSTA):1326-1349. doi:10.1145/3728937

BibTeX
@article{Draissi2025,
  author = {Draissi, Oussama and Cloosters, Tobias and Klein, David and Rodler, Michael and Musch, Marius and Johns, Martin and Davi, Lucas},
  title = {Wemby’s Web: Hunting for Memory Corruption in WebAssembly},
  journal = {Proceedings of the ACM on Software Engineering},
  year = {2025},
  volume = {2},
  number = {ISSTA},
  pages = {1326--1349},
  doi = {10.1145/3728937}
}
Kostenlos starten →