Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#2,351 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
elixir

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Elixir
Stelle
887
Fork
237
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di hexlet-codebattle/codebattle

Tutte le issue di hexlet-codebattle/codebattle

Issue simili

Altre issue su Elixir

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.