[BUG] A2A lookups by task or context ID reveal whether another user's resource exists
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 68/100
Hướng nghiên cứu
Bắt đầu trong go/core/internal/service/session/interactions.go tại storedSession (L83-94) và ánh xạ interactionError (L713-714); sau đó đọc các điểm gọi taskSession (L615-630), SendMessage (L456-458) và ListTasks (L637). Tái hiện bốn bước từ issue với controller A2A để thấy ba phản hồi lỗi riêng biệt. Hoàn tất khi ID không xác định, phiên của người dùng khác và phiên của Agent khác đều trả về TASK_NOT_FOUND, trong khi một người gọi có thể đọc phiên nhưng thiếu verb vẫn nhận lỗi quyền.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
📋 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.
- Ngôn ngữ chính
- Go
- Star
- 4.5k
- Fork
- 937
- Merge trung bình
- 1 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 150
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của kagent-dev/kagent
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
kagent-dev/kagent#3792 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
kagent-dev/kagent#3790 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
kagent-dev/kagent#3789 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG] Python memory summarization fails for Gemini models: the request has no model nameCó thể đã có người làm @BahaaMattar đã nhận 6 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
kagent-dev/kagent#3710 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
skills-init: commit-SHA skill refs never start (git checkout -- <sha> reads the SHA as a pathspec)Có thể đã có người làm @talcoh2x đã nhận 14 ngày trước. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 84/100
kagent-dev/kagent#3571 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của kagent-dev/kagent
Issue tương tự
-
ai-driven-qa bug claude Minor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
linagora/cozy-stack#5374 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bug: Potential leakageĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
google/certificate-transparency-go#1859 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: gate 缺失Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 64/100
newrelic/newrelic-cli#1958 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
pingcap/monitoring#1284 ·
Maintainer thường phản hồi trong vòng 1 ngày