Skip to content

fix(node): solve potential DoS when passing a TX id to getBlock #2622

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

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

Conversation

aesedepece
Copy link
Member

@aesedepece aesedepece commented May 21, 2025

When passing a TX id to getBlock, a pseudomigration is run, such that it will crash the node because it can't read enough bytes.

This solution only runs the migration if there are enough bytes to operate on. In this particular case of passing a TX id, it will behave as before (produce a proper error)

@aesedepece
Copy link
Member Author

Thanks @guidiaz for detecting and reporting!!! 💪

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