[BUG] A2A lookups by task or context ID reveal whether another user's resource exists
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 68/100
調査の方向性
go/core/internal/service/session/interactions.go の storedSession (L83-94) と interactionError のマッピング (L713-714) から開始し、次に呼び出し箇所 taskSession (L615-630)、SendMessage (L456-458)、ListTasks (L637) を読む。issue の4つの手順を A2A コントローラーに対して再現し、3つの異なるエラー応答を確認する。完了条件は、未知の ID、別のユーザーのセッション、別の Agent のセッションがすべて TASK_NOT_FOUND を返し、一方、セッションを読めるが verb を持たない呼び出し元には依然として権限エラーが返ること。
索引モデルが issue の本文から書いたものです。
説明
📋 Prerequisites
- I have searched the existing issues to avoid creating a duplicate
- By submitting this issue, you agree to follow our Code of Conduct
- I am using the latest version of the software (checked against
mainat e8cd153) - I have tried to clear cache/cookies or used incognito mode (if ui-related)
- I can consistently reproduce this issue
🎯 Affected Service(s)
Controller (A2A gateway)
🚦 Impact/Severity
Minor
🐛 Bug Description
The A2A gateway tells a caller whether a task or context it may not read exists. A2A 1.0.1 §3.3.2 says servers MUST NOT reveal the existence of resources the client is not authorized to access. IDs are random, so the impact is low, but the MUST is not met.
Every lookup goes through storedSession (interactions.go L83-94), which answers in three different ways:
- unknown ID:
TASK_NOT_FOUND - another user's session: a permission error, since
interactionErrormapsCodePermissionDeniedtoErrUnauthorized(L713-714) - a session that belongs to a different Agent:
ErrUnauthorizedwith "context does not belong to this Agent" (L91-92)
This affects GetTask, CancelTask and SubscribeToTask through taskSession (L615-630), and also SendMessage with a taskId or contextId (L456-458) and ListTasks with a contextId (L637).
🔄 Steps To Reproduce
- User A sends a message to Agent X and notes the returned task ID and context ID.
- User B calls
GetTaskon Agent X with A's task ID, then with a random ID. - User B calls
ListTaskson Agent X with A's context ID, then with a random one. - User A calls
GetTaskon Agent Y with their own task ID.
🤔 Expected Behavior
Every call returns TASK_NOT_FOUND.
📱 Actual Behavior
Steps 2 and 3 return a permission error for A's IDs and TASK_NOT_FOUND for random ones. Step 4 returns "context does not belong to this Agent".
🔍 Additional Context
The fix belongs in storedSession: answer not-found when the caller cannot read the session, or when it belongs to another Agent. A caller who can read a session but lacks the verb for the operation (for example, a read-only share user who sends a message) may still get a permission error, since they already know it exists.
- 主要言語
- Go
- スター
- 4.5k
- フォーク
- 937
- 平均マージ
- 1日 10時間
- マージ済み PR(30日)
- 150
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
kagent-dev/kagent のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
kagent-dev/kagent#3792 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
kagent-dev/kagent#3790 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
kagent-dev/kagent#3789 ·
メンテナーはふだん 1 日以内に返信
-
[BUG] Python memory summarization fails for Gemini models: the request has no model name対応中かも @BahaaMattar が 6 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
kagent-dev/kagent#3710 ·
メンテナーはふだん 1 日以内に返信
-
skills-init: commit-SHA skill refs never start (git checkout -- <sha> reads the SHA as a pathspec)対応中かも @talcoh2x が 14 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
kagent-dev/kagent#3571 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
kagent-dev/kagent の issue をすべて見る
似ている issue
-
ai-driven-qa bug claude Minor
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
linagora/cozy-stack#5374 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
google/certificate-transparency-go#1859 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]: gate 缺失オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 64/100
newrelic/newrelic-cli#1958 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
pingcap/monitoring#1284 ·
メンテナーはふだん 1 日以内に返信