[BUG]: User emails are visible to any logged-in user

Đang mở
#807 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@krish858 đang làm issue này rồi.

Từ ngày 20/11/2026.

  • #809 của @krish858 — đang mở

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
57/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript

Hướng nghiên cứu

Start by locating the handlers for GET /teams/available and GET /teams/:id, then check their response shapes and access checks. Reproduce the requests with an authenticated user who is not on the team. Done means unauthorized users cannot retrieve team member emails or private team details, while permitted team discovery still works.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug
Bug Description

GET /teams/available returns every team that still has an open slot, with info like , team id , joining code, users(in that team),emails(of the users in the teams).

GET /teams/:id also returns whole info to any authenticated user.

Steps to Reproduce

1 Go to http://localhost:5173/team-builder in the network tab you can see the request available which is a get req to /teams/available with all the info about the current teams or can do a get request in post man.

2 if you have team id, you can just make a get req on /teams/:id it will again give you all info on that team without being on the team.

Logs and Screenshots
image image
Environment Details

No response

Impact

Medium - Feature works but has issues

Code of Conduct
  • I have joined the Discord server and will post updates there
  • I have searched existing issues to avoid duplicates
Ngôn ngữ chính
TypeScript
Star
108
Fork
264
Merge trung bình
6 giờ 53 phút
Pull request đã merge (30 ngày)
8

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của AOSSIE-Org/DebateAI

Tất cả issue của AOSSIE-Org/DebateAI

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.