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

Do not connect a corrupted block #385

Open
yixiao5428 opened this issue Jul 17, 2021 · 0 comments
Open

Do not connect a corrupted block #385

yixiao5428 opened this issue Jul 17, 2021 · 0 comments

Comments

@yixiao5428
Copy link

This is a security vulnerability.

In the ConnectBlock() function of src/main.cpp, it misses the check for whether the block is corrupted or not. If the block is corrupted, it should be abort immediately, otherwise it will repeat trying to connect the corrupted block.

A possible solution is to add a corruption check inner the if statement of line 2341 in src/main.cpp.

Similar fix from Bitcoin: bitcoin/bitcoin@0e7c52d.

Reported by 6004ed5feaa31ae9df36b5dbc60f0fa53255a5fb734334082c6d202405fc738c.

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

No branches or pull requests

1 participant