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

[Tests] Add tests and documentation to show the get_successors bug was not affecting 0L #1259

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

0o-de-lally
Copy link
Collaborator

@0o-de-lally 0o-de-lally commented May 15, 2023

TLDR: 0L was not affected by the critical vulnerability in the Move Language Bytecode::get_successors. No action is needed by 0L validators as of May 15 2023. This pull request adds tests and comments to show where the exploit was taking place, and that 0L did not have that bug introduced in the relevant code.

For historical purposes:

In October 2022 there was a bug introduced in the Move Language which intended to fix an off-by-one error, and instead introduced an early return which caused certain verifications by the VM to be ignored. The commit was: move-language/move@8bddbe6. This would allow certain scripts to maliciously attack contracts with structs that did not drop (i.e. "hot potato" scenarios). The bug was discovered by Zellic.

A fix was silently applied to all the chains which were affected. 0L was not affected. The relevant fixes were published here: move-language/move@1fa4ed2

For completeness of the git archive, we are including comments and up-to-date tests that have been published since the vulnerability was disclosed.

@0o-de-lally 0o-de-lally changed the title [Tests] Add test and documentation to show the get_successors bug was not affecting 0L [Tests] Add tests and documentation to show the get_successors bug was not affecting 0L May 15, 2023
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

Successfully merging this pull request may close these issues.

1 participant