-
Notifications
You must be signed in to change notification settings - Fork 52
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
Improve MsgPack Deserialization Sanitization #70
Comments
Don't you already have this? Looking at ReadDecoder it will error on decoding of invalid scalar value? |
Yes you're correct, some cases are already handled. I think we should break this issue into multiple, where each one defines a error case we must handle, and requires tests to be created for that case. Here are the error cases I've thought of so far, some more thought should be put into this:
|
Created this issue for the remaining work here: #150 |
Currently, when msgpack (in WASM or in JS) deserializes a buffer, it does not have sanitization logic for handling unexpected types or malformed data. We need this to happen at run-time because we don't want to run the risk of malformed input data getting sent to a smart contract, making funds at risk.
The text was updated successfully, but these errors were encountered: