Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wasm-decompile: Assertion `!empty()' failure cause DoS #2316

Open
goldds96 opened this issue Oct 29, 2023 · 0 comments
Open

wasm-decompile: Assertion `!empty()' failure cause DoS #2316

goldds96 opened this issue Oct 29, 2023 · 0 comments

Comments

@goldds96
Copy link

Environments

OS : Ubuntu 18.04 5.4.0-150-generic
Commit : e97d53c
Version : 1.0.34

Vulnerability Description

Affected Tool : wasm-decompile
Affected Version : <= 1.0.34
Impact : Denial of Service

  • The assertion '!empty()' fail in /include/wabt/intrusive-list.h in wabt 1.0.34 can cause a denial of service(assertion failure) via a crafted wasm file.

PoC

1. Input File

wasm-decompile-DOS-poc01.zip

2. Reproduce

$ ~/wabt/bin/wasm-decompile wasm-decompile-DOS-poc01

3. Stack Trace

$ ~/wabt/bin/wasm-decompile wasm-decompile-DOS-poc01
wasm-decompile: ../../../../include/wabt/intrusive-list.h:394: typename intrusive_list<T>::const_reference wabt::intrusive_list<wabt::Expr>::front() const [T = wabt::Expr]: Assertion `!empty()' failed.
Aborted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant