Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Bug: Unauthenticated user can join another guest game via URL and edit their code

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

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
55/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ệ
elixir

Hướng nghiên cứu

Reproduce the issue using two incognito windows and the shared game URL, then trace how an unauthenticated visitor is admitted to the guest game and given editor access. Done means the second user is either prevented from joining or remains a spectator with the other player's editor read-only.

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

Mô tả

bug
Summary

An unauthenticated user can open another guest's Simple Battle by changing the game id in the URL and edit that player's code

Reproduction steps
1. Go to https://codebattle.hexlet.io/ in an incognito window (User A, not logged in)
2. Click "Try simple battle"
3. Copy the game URL (example: https://codebattle.hexlet.io/games/XXXXXX)
4. Open second incognito window (User B, not logged in)
5. Paste the same URL
6. Click at User A editor and type any text
Expected result

User B should be spectator only, or should not join a guest's game at all. The editor must stay read-only

Actual result

User B joins the game as a participant and can change user A code

Image
Browsers

Firefox

OS

Windows

Current version

05f8883

Ngôn ngữ chính
Elixir
Star
884
Fork
237
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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

Mở trong Codespaces

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.

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 hexlet-codebattle/codebattle

Tất cả issue của hexlet-codebattle/codebattle

Issue tương tự

Thêm issue về Elixir

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.