Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Harden BLE pairing and actually revoke removed phones

オープン
#9 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
34/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
rust

調査の方向性

Read boards/esp/src/lib.rs:80 and the bond management and disconnect handling in ble/transport.rs, especially around line 521; trace how BondStore and the controller lists are updated. The issue identifies several separate security behaviors, including phone revocation, normal disconnect handling, and bond limits. Done means removed phones can no longer connect and ordinary disconnects do not erase bonds; pairing limits and the separate issue linked for Just Works pairing also need review.

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

説明

  • Revocation doesn't work. On ESP, RemovePairedPhone / ClearPairedPhones
    (boards/esp/src/lib.rs:80) only edit the in-memory PAIRED_PHONES list,
    which nothing on ESP uses for authorization. The real credentials (LTKs in
    BondStore flash plus the controller filter-accept/resolving lists) are
    untouched, so a removed phone still connects. Remove the bond via
    stack.remove_bond_information, BondStore::remove_bond and
    remove_bond_from_controller (all exist in ble/transport.rs), and drop the
    separate registry or make it the source of truth.
  • Just Works pairing and the boot-time window on buttonless boards: https://github.com/OpenCarControls/firmware/issues/18.
  • Auto-heal is too aggressive. ble/transport.rs:521 treats
    REMOTE_USER_TERMINATED_CONN (a normal phone disconnect) as a security
    failure, so any disconnect during the pairing window wipes that phone's bond.
  • max_bonded_phones isn't enforced on BLE bonds (the store is hard-capped at 8).
  • Later: LTKs are stored unencrypted in flash (flash encryption).
主要言語
Rust
スター
1
フォーク
0
平均マージ
25分
マージ済み PR(30日)
1

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

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

OpenCarControls/firmware のほかの issue

OpenCarControls/firmware の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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