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

tee.tpm / ca2a_verify.tpm: TpmQuote.parse ignores trailing bytes, _chain_from_leaf reads AIA URLs without a byte cap, and verify_tpm_report does not check report.platform

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

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

@drk-ram がすでに取り組んでいます。

2026年10月25日 から。

  • #287 @drk-ram による — オープン

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
python
領域
backend, security

調査の方向性

Start with TpmQuote.parse and TpmProvider._chain_from_leaf in src/ca2a_runtime/tee/tpm.py, then inspect verify_tpm_report in src/ca2a_verify/tpm.py and the corresponding sev_snp_verifier check. Review the existing tests for TPM parsing, certificate chain fetching, and report verification; done means all three reported cases are rejected or bounded as described. Pull request #287 is already open for this issue.

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

説明

needs-review:MEDIUM
Summary
  1. TpmQuote.parse in src/ca2a_runtime/tee/tpm.py does not check pos == len(blob) after parsing pcr_digest (and does not reject non-bytes blob), silently ignoring trailing bytes appended after the TPMS_ATTEST structure.
  2. TpmProvider._chain_from_leaf in src/ca2a_runtime/tee/tpm.py reads HTTP AIA responses with an unbounded response.read().
  3. verify_tpm_report in src/ca2a_verify/tpm.py does not verify report.platform == "tpm", unlike sev_snp_verifier which rejects reports whose platform does not match "sev-snp".
主要言語
Python
スター
9
フォーク
14
平均マージ
1日 8時間
マージ済み PR(30日)
36

環境構築

はじめの一歩

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

agentrust-io/ca2a のほかの issue

agentrust-io/ca2a の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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