Verification accepts aux info appends after the history is sufficient, changing the approval digest
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 74/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- go
- Lĩnh vực
- distributed-systems
Hướng nghiên cứu
Start in msm.go at buildAuxInfoBatch, computeExpectedAuxInfoForApprovalCollection, and computeNewApproverSignaturesAndSigners, then review IsSufficient and IsLegalAppend in the auxiliary-info flow. Add a verification test for a collecting block that appends a legal entry to sufficient history; done means the block is rejected without changing existing valid behavior.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Details
Once the on-chain auxiliary info history is sufficient, honest builders stop appending to it: buildBlockCollectingApprovals passes !isAuxInfoReadyForEpochTransition as the generate flag to buildAuxInfoBatch (msm.go:1057). Verification does not enforce this. computeExpectedAuxInfoForApprovalCollection accepts any proposed batch whose entries pass IsLegalAppend (msm.go:1571), with no check that the history was already sufficient and should be closed.
A dishonest builder can therefore append a legal entry after approvals have started. Every verifier accepts the block, and the aux info digest (the hash of the last history entry) changes.
Impact
The transition wedges for the rest of the epoch. The next collecting block carries the aggregated approval signature from prior blocks, signed over the old digest, and computeNewApproverSignaturesAndSigners appends new signatures over the new digest to it (msm.go:1721). The result is one aggregate over two different messages, which verifyNextEpochApprovalsSignature (msm.go:1148) rejects. Because each block's signer set must be a superset of its parent's, no honest builder can produce a valid collecting block from that point.
Approvals already sent by validators (transition_listener.go:89) are also stale, but that is recoverable since the listener re-signs on every indexed collecting block. The broken aggregate is not.
Reachability
Not reachable today. The only wired app is NoopAuxiliaryInfoApp, whose IsLegalAppend rejects any non-empty entry (adapters.go:196), so the history is always empty and the digest always zero. This becomes live as soon as a real auxiliary info app is configured.
Fix
Verification should mirror the builder: when IsSufficient is true for the on-chain history, reject a proposed block whose batch adds any entry. Add a test that verifies a collecting block with an extra legal entry on top of a sufficient history and asserts rejection.
- Ngôn ngữ chính
- Go
- Star
- 22
- Fork
- 4
- Merge trung bình
- 3 ngày 5 giờ
- Pull request đã merge (30 ngày)
- 17
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ava-labs/Simplex
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Validator epoch transition lacks stopped-check, resurrecting consensus and wiping WAL after StopĐang mởlow security wal
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
medium security wal
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
medium security wal
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của ava-labs/Simplex
Issue tương tự
-
os: RawConn methods of a closed File return internal/poll.ErrFileClosing instead of ErrClosedĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: Bedrock invoke-with-response-stream reports `stop_reason: "end_turn"` for tool-use turnsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
oalders/clodhopper#162 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
component/server severity/minor type/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
diagnose globalnet reports a failure for every exported headless ServiceCó thể đã có người làm @kurtyoon đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
submariner-io/subctl#1948 ·
Maintainer thường phản hồi trong vòng 1 ngày