ChainSafe / ChainSafe/lodestar

Check `earliest_available_slot` when handling by root/range requests

Open
#8,475 1 comment 0 reactions 0 assignees View on GitHub
meta-bug spec-fulu :zebra:
Dominant language
TypeScript
Stars
1.4k
Forks
483
Avg merge
1d 18h
Merged PRs (30d)
156

Description

This was highlighted in a security report

Image

Although it's not a big issue but we should be checking `earliest_available_slot` and cancel requests early.

This also applies for block requests for post-fulu.

Do we wanna close the connection or throw an error?

Contributor guide

Open the contributing guide

Research direction

Trace the request handling for by-root/range requests and the block requests mentioned for post-Fulu, then locate where earliest_available_slot is available. Clarify whether invalid requests should close the connection or return an error, and verify that requests are cancelled early in both paths.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
blockchain
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.