[BUG]: Spectators can concede debates and repeatedly modify ratings
Maintainers usually reply within 20 days
@krushna-sahu1 is already working on this.
Since Nov 25, 2026.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
- Domain
- backend
Research direction
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.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- TypeScript
- Stars
- 108
- Forks
- 266
- PR merge metrics
- No merged PRs in 30d
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from AOSSIE-Org/DebateAI
-
[BUG]: Comment, reply and team-join notifications link to wrong or non-existent frontend routesMay be free again @unnati-jaiswal24 claimed this 7 days ago, and no pull request is open. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
AOSSIE-Org/DebateAI#811 · 2 comments ·
Maintainers usually reply within 20 days
-
[BUG]: Comment, reply and team-join notifications link to wrong or non-existent frontend routesPossibly taken @mithunkc017-ship-it claimed this 2 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
AOSSIE-Org/DebateAI#810 · 1 comment ·
Maintainers usually reply within 20 days
-
[BUG]: Inverted Mic icon causes input confusion in Bot Debate RoomPossibly taken @Rusky-1014 claimed this 11 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
AOSSIE-Org/DebateAI#802 ·
Maintainers usually reply within 20 days
-
[BUG]: Duplicate preposition in heading and unformatted feedback text on Strengthen Argument pagePossibly taken @sujitkr268 claimed this 6 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
AOSSIE-Org/DebateAI#801 · 2 comments ·
Maintainers usually reply within 20 days
-
[BUG]: Singleton state leak in matchmaking tests causes non-deterministic failuresPossibly taken @mithunkc017-ship-it claimed this 15 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
AOSSIE-Org/DebateAI#798 · 3 comments ·
Maintainers usually reply within 20 days
All issues in AOSSIE-Org/DebateAI
Similar issues
-
enhancement status:needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
dongdongbh/Mindwtr#1625 ·
Maintainers usually reply within 1 day
-
area/ui-schema good first issue type/bug
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 4 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
-
Difficulty 1/5 Under an hour Newbie friendliness 91/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
duckdb/duckdb-wasm#2335 ·
Maintainers usually reply within 1 day