SymWeb: Feedback-Driven Context Exploration and Context-Aware Symbolic Execution for Browser-Embedded WebAssembly Vulnerability Detection
Open Access
- 1 October 2026
- journal article
- Published by Association for Computing Machinery (ACM) in Proceedings of the ACM on Software Engineering
- Vol. 3 (ISSTA) , 1649-1671
Abstract
Browser-deployed WebAssembly (Wasm) modules often inherit memory-safety bugs from C and C++-style code, yet exploiting, and even reaching, these bugs in the Web threat model is fundamentally context-dependent. JavaScript (JS) controls the exported-call schedule and constructs the Wasm entry state, including arguments, globals, and linear-memory layouts, from attacker-influenced web inputs. This makes both Wasm-only analysis, which assumes static initial states, and prior browser-based testing such as Wemby ineffective. Wemby generates a fixed, Wasm-agnostic context pool and then only mutates Wasm parameters, which limits its ability to systematically reach deeper, Wasm-relevant contexts and gated behaviors. We present SymWeb, a feedback-driven closed-loop system that links external inputs to browser-reachable JS-induced Wasm contexts and then to context-aware Wasm symbolic execution. SymWeb couples an Feedback-driven Context Generator with an Context-Aware Wasm Symbolic Executor. The Feedback-driven Context Generator performs binary rewriting for ASan-like checks and observability, collects contexts in the browser, and uses Influence-guided Mutation to steer web inputs. The symbolic executor clusters and symbolizes contexts, performs coverage-guided symbolic execution under reachable entry states, and returns actionable constraints to steer the next online round. We evaluate SymWeb on 30 real-world Wasm-enabled websites. Under our Web threat model, SymWeb verifies 17 exploitable vulnerabilities and achieves 72.8% average Wasm basic-block coverage. Compared to the browser-based baseline Wemby, SymWeb finds 8 more verified vulnerabilities and improves coverage by 19.9 percentage points. Compared to the Wasm-only baseline WASEM, SymWeb finds 14 more verified vulnerabilities and improves coverage by 40.4 percentage points. Overall, these results show that closing the loop between browser-reachable context generation and context-aware Wasm analysis substantially improves both vulnerability-finding effectiveness and exploration depth in real Web environments.Keywords
Funding Information
- Fundamental and Interdisciplinary Disciplines Breakthrough Plan of the Ministry of Education of China (JYB2025XDXM108)
This publication has 36 references indexed in Scilit:
- WASIF: In-depth detection of vulnerabilities in Wasm smart contracts via information flows and function invocation sequencesBlockchain: Research and Applications, 2025
- WasmChecker: Effectively Detecting WebAssembly Bugs via Static Program Analysis2024
- Poster: Uncovering Vulnerabilities in Wasm Smart Contracts2023
- WebAssembly as an Enabler for Next Generation Serverless ComputingJournal of Grid Computing, 2023
- Avengers, Assemble! Survey of WebAssembly Security Solutions2022
- Pushing Serverless to the Edge with WebAssembly Runtimes2022
- Wasmati: An efficient static vulnerability scanner for WebAssemblyComputers & Security, 2022
- Empowering Web Applications with WebAssembly: Are We There Yet?2021
- CSEFuzz: Fuzz Testing Based on Symbolic ExecutionIEEE Access, 2020
- Approaches and Tools for Automated End-to-End Web Testing2016