`check_origin_from_privileged_client` incorrectly rejects `http://localhost`

オープン 初心者向け
#277 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
rust

調査の方向性

リンクされたリビジョンの403~404行目にある credentialsd/src/gateway/mod.rs の check_origin_from_privileged_client 周辺を読み、そのスキームチェックを issue で引用されている WebAuthn のルールと比較してください。http://localhost の場合を許可し、他のホストには HTTPS 要件を維持してください。特権クライアントのオリジンチェックが HTTP localhost を受け入れ、その他の HTTPS 以外のオリジンを引き続き拒否すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

check_origin_from_privileged_client rejects all non-HTTPS origins from privileged clients:

https://github.com/linux-credentials/credentialsd/blob/a2613f3942ac21725268f36d3e175093d6bec67d/credentialsd/src/gateway/mod.rs#L403-L404

Per WebAuthn-3 §4, "RP ID", this must allow http://localhost as well (emphasis mine):

An RP ID is based on a host’s domain name. It does not itself include a scheme or port, as an origin does. The RP ID of a public key credential determines its scope. I.e., it determines the set of origins on which the public key credential may be exercised, as follows:

主要言語
Rust
スター
310
フォーク
22
平均マージ
1日 15時間
マージ済み PR(30日)
13

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

linux-credentials/credentialsd のほかの issue

linux-credentials/credentialsd の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。