[BUG]: Spectators can concede debates and repeatedly modify ratings
メンテナーはふだん 20 日以内に返信
@krushna-sahu1 がすでに取り組んでいます。
2026年11月25日 から。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 45/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- backend
調査の方向性
Trace the 1v1 message dispatcher and handleConcede, then inspect the room phase, participant roles, and rating update path. Reproduce the repeated concede from the issue’s WebSocket steps and identify where server-side state can enforce the stated invariant. Done when only a registered non-spectator can concede once during an active debate and repeated or out-of-phase requests cannot change ratings.
索引モデルが issue の本文から書いたものです。
説明
Bug Description
The 1v1 dispatcher routes the 'concede' message from every client to handleConcede. The handler does not reject spectators, does not check room phase, and does not prevent repeated concedes; it picks any non-spectator as opponent and calls UpdateRatings.
Expected vs actual
- Expected: The system enforces the invariant described in the remediation below: Accept concede only from a registered non-spectator in an active debate, exactly once, and guard with server-side state.
- Actual: Rating manipulation and collusion; a single spectator can repeatedly boost another user.
Root cause
The message dispatcher forwards concede from every client, and the handler has no role, phase or duplicate-concede guard.
Steps to Reproduce
- Connect to /ws?room=&spectator=true&token=.
- Send {'type':'concede'} repeatedly.
- Observe rating updates on each call even during setup and even from a spectator account.
Logs and Screenshots
Server logs 'Error updating ratings...' only on failure; successful concedes silently change users.rating. No authorization error is returned.
Environment Details
No response
Impact
High - Major feature is broken
Code of Conduct
- I have joined the Discord server and will post updates there
- I have searched existing issues to avoid duplicates
- 主要言語
- TypeScript
- スター
- 108
- フォーク
- 266
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
AOSSIE-Org/DebateAI のほかの issue
-
[BUG]: Comment, reply and team-join notifications link to wrong or non-existent frontend routes再び着手できるかも @unnati-jaiswal24 が 7 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
AOSSIE-Org/DebateAI#811 · コメント 2 件 ·
メンテナーはふだん 20 日以内に返信
-
[BUG]: Comment, reply and team-join notifications link to wrong or non-existent frontend routes対応中かも @mithunkc017-ship-it が 2 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
AOSSIE-Org/DebateAI#810 · コメント 1 件 ·
メンテナーはふだん 20 日以内に返信
-
[BUG]: Inverted Mic icon causes input confusion in Bot Debate Room対応中かも @Rusky-1014 が 12 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
AOSSIE-Org/DebateAI#802 ·
メンテナーはふだん 20 日以内に返信
-
[BUG]: Duplicate preposition in heading and unformatted feedback text on Strengthen Argument page対応中かも @sujitkr268 が 6 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
AOSSIE-Org/DebateAI#801 · コメント 2 件 ·
メンテナーはふだん 20 日以内に返信
-
[BUG]: Singleton state leak in matchmaking tests causes non-deterministic failures対応中かも @mithunkc017-ship-it が 15 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
AOSSIE-Org/DebateAI#798 · コメント 3 件 ·
メンテナーはふだん 20 日以内に返信
AOSSIE-Org/DebateAI の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
-
review-followup
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
griffinwork40/agent-afk#5387 ·
メンテナーはふだん 1 日以内に返信
-
bug needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
CodeManufactoryLLC/Code60#358 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
android:plan ios:plan main:plan packages:learn
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信