vendor:
WebAssembly
by:
Exploit Database
7.5
CVSS
HIGH
Out-of-order Section Parsing
20
CWE
Product Name: WebAssembly
Affected Version From: N/A
Affected Version To: N/A
Patch Exists: Yes
Related CWE: N/A
CPE: N/A
Metasploit:
N/A
Other Scripts:
N/A
Platforms Tested: Safari
2020
WebAssembly Binary Parsing Vulnerability
When a WebAssembly binary is parsed in ModuleParser::parse, it is expected to contain certain sections in a certain order, but can also contain custom sections that can appear anywhere in the binary. The ordering check validateOrder() does not adequately check that sections are in the correct order when a binary contains custom sections. This leads to a number of possible overflows and type confusion bugs, as parsing assumes most sections are unique and in the right order. The attached html file causes a crash in Safari, the wasm file is attached as well. This particular use of the bug causes an overflow in the function vector.
Mitigation:
Update to the latest version of WebAssembly