Blinded path payloads don't reject unknown TLVs per BOLT4
Chưa có ai nhận issue này.
- #4546 của @officialasishkumar — đã đóng, không merge
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 32/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- rust
- Lĩnh vực
- backend, networking
Hướng nghiên cứu
Start from the TLV decode path cited in the issue (lightning/src/util/ser_macros.rs around the odd/even check) and BlindedReceive handling in msgs.rs. Compare intermediate vs final blinded-path allowlists in BOLT4. There is a closed unmerged PR (#4546); read that thread before duplicating work. Done means unknown TLVs are rejected as specified and existing onion/TLV tests cover both node roles.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
BOLT4 requires strict TLV allowlisting for blinded paths, but rust-lightning uses the standard odd/even rule (ignore unknown odd TLVs).
BOLT4 Requirements: (https://github.com/lightning/bolts/blob/master/04-onion-routing.md#requirements)
Intermediate nodes: MUST reject payloads containing TLVs other than encrypted_recipient_data and current_path_key. (https://github.com/lightning/bolts/blob/8f2908b56363927e167e7235d4a9d191c1bd2aa8/04-onion-routing.md?plain=1#L314C6-L315C126)
Final nodes: MUST reject payloads containing TLVs other than encrypted_recipient_data, current_path_key, amt_to_forward, outgoing_cltv_value, and total_amount_msat. (https://github.com/lightning/bolts/blob/8f2908b56363927e167e7235d4a9d191c1bd2aa8/04-onion-routing.md?plain=1#L322)
Current Behavior:
lightning/src/util/ser_macros.rs:687-689:
if t % 2 == 0 {
return Err(DecodeError::UnknownRequiredFeature);
}
// Unknown odd TLVs silently ignored instead of rejected
Additionally, BlindedReceive payloads accept custom TLVs >= 65536 (msgs.rs:3894-3900).
- LND rejects blinded packets with extra TLVs (spec-compliant)
- rust-lightning accepts them (non-compliant)
Found using differential fuzzing (bitcoinfuzz)
- Ngôn ngữ chính
- Rust
- Star
- 1.4k
- Fork
- 482
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
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 lightningdevkit/rust-lightning
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
lightningdevkit/rust-lightning#4767 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
lightningdevkit/rust-lightning#1849 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 22/100
lightningdevkit/rust-lightning#4764 · 3 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 22/100
lightningdevkit/rust-lightning#4757 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 28/100
lightningdevkit/rust-lightning#4739 ·
Tất cả issue của lightningdevkit/rust-lightning
Issue tương tự
-
bug help wanted ui
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
userFRM/egui-charts#4292 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Tripstack-Corp/spyc#1352 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
marketing
Độ 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
-
area:tui enhancement P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
agent-of-empires/agent-of-empires#6077 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày