Blinded path payloads don't reject unknown TLVs per BOLT4
還沒有人認領這個 Issue。
- #4546 來自 @officialasishkumar —— 已關閉,未合併
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 32/100
- Issue 類型
- 缺陷
- 描述清晰度
- 描述清楚
- 活躍度
- 停滯
- 技術堆疊
- rust
- 領域
- backend, networking
研究方向
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.
由索引模型根據 Issue 內容生成。
描述
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)
- 主要語言
- Rust
- 星號
- 1.4k
- 分支
- 482
- PR 合併指標
- 30 天內沒有已合併 PR
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
lightningdevkit/rust-lightning 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 83/100
lightningdevkit/rust-lightning#4767 ·
-
難度 1/5 1 小時以內 新手友好度 65/100
lightningdevkit/rust-lightning#1849 ·
-
難度 4/5 3-5 天 新手友好度 22/100
lightningdevkit/rust-lightning#4764 · 3 則留言 ·
-
難度 5/5 一週以上 新手友好度 22/100
lightningdevkit/rust-lightning#4757 · 1 則留言 ·
-
難度 4/5 3-5 天 新手友好度 28/100
lightningdevkit/rust-lightning#4739 ·
查看 lightningdevkit/rust-lightning 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 2 天內回覆
-
autofixer: follow-up
難度 2/5 1-3 小時 新手友好度 78/100
tursodatabase/turso#12531 ·
維護者通常 1 天內回覆
-
bug help wanted ui
難度 2/5 1-3 小時 新手友好度 82/100
userFRM/egui-charts#4292 ·
維護者通常 1 天內回覆
-
Issue-Bug Need-Review
難度 1/5 1-3 小時 新手友好度 85/100
PowerShell/DSC#1832 ·
維護者通常 1 天內回覆
-
bug
難度 2/5 1-3 小時 新手友好度 83/100
Tripstack-Corp/spyc#1352 ·
維護者通常 1 天內回覆