[BUG]: Non-team transcript submission trusts client-supplied opponent transcripts and emails, allowing rating forgery
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 58/100
調査の方向性
Start with backend/controllers/transcript_controller.go:22-78, the request handler named in the regression plan, and trace how it resolves participants and persists transcripts and ratings. Check the existing controller tests and test setup for MongoDB and Redis. Done means submissions cannot choose an opponent or affect users who did not participate, with a regression test covering the reported scenario.
索引モデルが issue の本文から書いたものです。
説明
Bug Description
SubmitTranscripts accepts opponentRole, opponentEmail, opponentID and opponentTranscripts from the authenticated caller. For non-team rooms it stores them as the opponent's submission, judges the fabricated debate and calls UpdateRatings for both resolved users. No check proves either user participated in the room.
Steps to Reproduce
- Authenticate as an attacker.
- POST /submit-transcripts with any roomId, role 'for', attacker transcripts designed to win.
- Include opponentRole 'against', opponentEmail of the victim, and crafted losing opponentTranscripts.
- Repeat with new roomIds; each success stores transcripts, judges the debate and changes both users' Glicko ratings.
Logs and Screenshots
HTTP 200 with judge result; MongoDB gains debate_transcripts and debates rows and users.rating changes for the chosen opponent. Service has no room/participant lookup on this path.
Expected vs actual
- Expected: The system enforces the invariant described in the remediation below: Resolve both participants from server-side room/debate state, verify the caller belongs to the room and role, and never accept opponent transcripts from the client.
- Actual: Arbitrary Elo inflation/deflation for any user, forged debate history, corruption of real room transcripts, and abuse of AI quota.
Impact
Critical - Application is unusable
Arbitrary Elo inflation/deflation for any user, forged debate history, corruption of real room transcripts, and abuse of AI quota.
Recommended fix
Resolve both participants from server-side room/debate state, verify the caller belongs to the room and role, and never accept opponent transcripts from the client.
Regression test plan
- Add a test that exercises the path in
backend/controllers/transcript_controller.go:22-78and asserts that the defect is rejected or handled safely. - Reproduce the scenario above against a local backend with MongoDB and Redis; confirm the old behavior fails the assertion and the fixed behavior passes.
- Run
go test ./...,go vet ./...and, for WebSocket/concurrency fixes,go test -race ./....
Code of Conduct
- I have joined the Discord server and will post updates there
- I have searched existing issues to avoid duplicates
- 主要言語
- TypeScript
- スター
- 108
- フォーク
- 264
- 平均マージ
- 6時間 53分
- マージ済み PR(30日)
- 8
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
AOSSIE-Org/DebateAI のほかの issue
-
[BUG]: Inverted Mic icon causes input confusion in Bot Debate Room対応中かも @Rusky-1014 が 5 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
AOSSIE-Org/DebateAI#802 ·
メンテナーはふだん 1 日以内に返信
-
[BUG]: Duplicate preposition in heading and unformatted feedback text on Strengthen Argument page対応中かも @sujitkr268 が 4 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
AOSSIE-Org/DebateAI#801 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
[BUG]: Singleton state leak in matchmaking tests causes non-deterministic failures対応中かも @mithunkc017-ship-it が 8 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
AOSSIE-Org/DebateAI#798 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
[BUG]: Live Debate Rooms page overflows horizontally on mobile screens再び着手できるかも @SYED-IRTEZA-HUSSAIN-RIZVI が 8 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
AOSSIE-Org/DebateAI#797 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
[BUG]: Inconsistent branding on authentication page (Arguehub vs DebateAI)再び着手できるかも @SYED-IRTEZA-HUSSAIN-RIZVI が 8 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
AOSSIE-Org/DebateAI#784 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
AOSSIE-Org/DebateAI の issue をすべて見る
似ている issue
-
ready-for-agent
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
LucasSantana-Dev/Lucky#3257 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
XiaomiMiMo/MiMo-Code#2849 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
danielmiessler/LifeOS#2894 ·
メンテナーはふだん 5 日以内に返信
-
enhancement frontend good first issue help wanted testing-infrastructure
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 2 日以内に返信
-
enhancement follow-up
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信