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

[EXT-SEC-AUDIT] Excessive size limit of Ekiden runtime messages can result in fatal out-of-memory errors #2213

Closed
kostko opened this issue Oct 2, 2019 · 0 comments · Fixed by #3139
Assignees
Labels
c:runtime/compute Category: runtime compute worker c:runtime Category: runtime c:security Category: security issues

Comments

@kostko
Copy link
Member

kostko commented Oct 2, 2019

Issue transferred from an external security audit report.

CBOR unmarshalling routines in both Go and Rust set an excessive message size limit of 100 MB. This makes it feasible for an attacker to craft a message which, once accepted and unmarshalled by either routine, consumes a large amount of memory and crashes a node.
https://github.com/oasislabs/oasis-core/blob/7a5ddc8fae312b6d8400fa9ba062604c1112c6a4/go/common/cbor/codec.go#L9-L10

@kostko kostko added c:runtime/compute Category: runtime compute worker c:runtime Category: runtime c:security Category: security issues labels Oct 2, 2019
@kostko kostko self-assigned this Jul 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c:runtime/compute Category: runtime compute worker c:runtime Category: runtime c:security Category: security issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant