Parsing of table may take too long
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 30/100
Research direction
Start by locating the eos-vm parser code that fully instantiates a table while reading a wasm module, then inspect how nodeos validation currently bounds table sizes. Reproduce the issue with a small wasm declaring a table of 2^32-1 elements; done means parsing no longer permits an unbounded allocation and the behavior is covered by a regression check.
Written by the indexing model from the issue text.
Description
The table is fully instantiated by the parser, which may cause it to create a vector of 2^32-1 elements when parsing a small wasm, leading to potential DOS attacks. This is safe in nodeos for now, because the size of the table is bounded by validation, before eos-vm sees it.
- Dominant language
- C++
- Stars
- 198
- Forks
- 62
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from EOSIO/eos-vm
-
NOpen
Difficulty 5/5 Over a week Newbie friendliness 1/100
-
NOpen
Difficulty 5/5 Over a week Newbie friendliness 1/100
-
NoneOpen
Difficulty 5/5 Over a week Newbie friendliness 1/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
HOpen
Difficulty 5/5 Over a week Newbie friendliness 1/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
scp-fs2open/fs2open.github.com#7953 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
HansKristian-Work/dxil-spirv#341 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 6 days