NFC protocol issues (CTAP2 keepalive, SELECT Le, status word preservation)
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 58/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 静か
- 技術スタック
- rust
調査の方向性
src/transport/nfc/channel.rs の cbor_send、147 行付近の SELECT 呼び出し、および 239–246 行付近の apdu_send から始め、これらのパスを proto/ctap1/protocol.rs の handle() と CTAP1 のリトライループと比較してください。引用されている CTAP2、ISO 7816-4、および U2F NFC の動作を検証し、そのうえで keepalive 応答、SELECT の Le 処理、元のステータスワードが既存のエラーおよびリトライパスを通じて機能することを確認してください。
索引モデルが issue の本文から書いたものです。
説明
Missing CTAP2 keepalive (SW=0x91xx → NFCCTAP_GETRESPONSE)
- Spec ref: CTAP 2.2 §11.3.4 (NFCCTAP_GETRESPONSE keepalive flow).
- Location:
src/transport/nfc/channel.rs:255-304(cbor_send). Contains a literal// FIXME check for SW_UPDATE?and a commented-out keepalive block. - Behavior: After the final NFCCTAP_MSG fragment the response goes straight into
CborResponse::try_from. There is no loop on(sw1 == 0x91)that issues NFCCTAP_GETRESPONSE (CLA=0x80, INS=0x11). The library's existing 0x61xx loop inhandle()is the ISO 7816 GET RESPONSE mechanism for response continuation, not the CTAP2 keepalive. - Impact: Any CTAP2 NFC operation that takes long enough for the authenticator to emit a keepalive (on-token UV, large credential lists, biometric capture) is misinterpreted.
SELECT issued as Case 3 APDU (no Le)
- Spec ref: CTAP 2.2 §11.3.1 + ISO 7816-4 §5.1.1.
- Location:
src/transport/nfc/channel.rs:147callingcommand::select_file(...)from theapducrate, which emitsnew_with_payload(...)without an Le. - Behavior: SELECT for AID
A0 00 00 06 47 2F 00 01is sent as00 A4 04 00 08 A0 00 00 06 47 2F 00 01with no trailing Le. FIDO authenticators that strictly enforce Case 4 will reject with SW=6700/6A87. Most authenticators are lenient. - Impact: Interop hazard with stricter authenticator firmwares and chip-on-card implementations.
apdu_send discards SW1/SW2
- Spec ref: FIDO U2F NFC §3 (response status word semantics).
- Location:
src/transport/nfc/channel.rs:239-246. - Behavior:
apdu_sendwraps the response inApduResponse::new_success(&resp)and discards the actual SW1/SW2. Non-9000 SWs are surfaced asNfcError::Apdu(_) → TransportError::InvalidFraming, losing the distinction between applet-not-selected (6A82), user-presence-required (6985), invalid-key-handle (6A80), etc. - Impact: CTAP1 user-presence retry loop in
proto/ctap1/protocol.rs:111-135is unreachable on NFC (it relies onApduResponseStatus::UserPresenceTestFailed).
- 主要言語
- Rust
- スター
- 602
- フォーク
- 33
- 平均マージ
- 1日 13時間
- マージ済み PR(30日)
- 9
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
linux-credentials/libwebauthn のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
linux-credentials/libwebauthn#328 ·
メンテナーはふだん 2 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
linux-credentials/libwebauthn#327 ·
メンテナーはふだん 2 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
linux-credentials/libwebauthn#326 ·
メンテナーはふだん 2 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
linux-credentials/libwebauthn#313 ·
メンテナーはふだん 2 日以内に返信
-
bug enhancement transport: hybrid
難易度 5/5 1週間以上 初心者へのやさしさ 42/100
linux-credentials/libwebauthn#257 · コメント 2 件 ·
メンテナーはふだん 2 日以内に返信
linux-credentials/libwebauthn の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
pbakaus/impeccable#1620 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
swc-project/swc-next-issues#533 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
nautechsystems/nautilus_trader#5718 ·
メンテナーはふだん 1 日以内に返信
-
`luvus --remote` cannot start on a host whose login shell is Nushell対応中かも @schlich が今日担当しました。 オープンstatus: needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 4 日以内に返信