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

ethstats: set readlimit on ethstats server connection #26207

Merged
merged 1 commit into from
Nov 17, 2022

Conversation

holiman
Copy link
Contributor

@holiman holiman commented Nov 17, 2022

This PR sets a read limit on the ethstats connection to the ethstats-server, which is a DoS prevention in case the user connects to a malicious ethstats server.

This PR changes it to use the same limit as websocket rpc: https://github.com/ethereum/go-ethereum/blob/master/rpc/websocket.go#L285

Issue reported by Jorropo via bounty email.

@holiman holiman changed the title ethstats: prevent dos from malicious ethstats server ethstats: set readlimit on ethstats server connection Nov 17, 2022
@fjl fjl merged commit c2e0abc into ethereum:master Nov 17, 2022
@fjl fjl added this to the 1.11.0 milestone Nov 17, 2022
shekhirin pushed a commit to shekhirin/go-ethereum that referenced this pull request Jun 6, 2023
This prevents DoS when connected to a malicious ethstats server.
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.

2 participants