Reproduced Exploit
Majority Protocol — refundCancelledGame missing join check
SessionManager.refundCancelledGame only checks that the game is Cancelled, then refunds ticketPrice to msg.sender without verifying contestants[gameId][msg.sender]. An attacker who never joined can drain the entire cancelled-game pool; legitimate players then cannot refund.
Chain
Other
Category
untagged
Date
Jan 2026
Source
AuditVault
EVM Playground
Source-level debugger — step opcodes and Solidity in sync
The attack is replayed in an in-browser EVM preloaded with the exact dumped fork state. The execution tree shows every call; step by Solidity line or by opcode across all depths — source, Stack, Memory, Storage, Balances (native / ERC-20 / NFT), Transient storage and Return value stay in sync. Click a tree node, opcode, or source line to jump. No backend, no live RPC.
Source & credit. Reproduction of a public audit finding curated by AuditVault — the original finding: 65373-attacker-can-drain-all-tokens-from-cancelled-game-since-sess. Standalone Foundry PoC and full write-up: 65373-attacker-can-drain-all-tokens-from-cancelled-game-since-sess_exp in the
evm-hack-registrymirror.
Reproduction: self-contained Foundry PoC (forge-std only) — no fork. Full trace: output.txt.
AuditVault taxonomy: lang/solidity · platform/cyfrin · sector/gaming · severity/high · genome: missing · direct-drain · timestamp-dependence
Key info#
| Impact | HIGH — any cancelled game can be drained of entry fees by a permissionless attacker who never joined |
| Protocol | Majority Protocol (Engage / Majestic Games) |
| Bug class | Missing join check on refundCancelledGame |
| Finding | Cyfrin (Dacian) · #65373 · 2026-01-27 majority-protocol-v2.0 |
| Report | https://github.com/solodit/solodit_content/blob/main/reports/Cyfrin/2026-01-27-cyfrin-majority-protocol-v2.0.md |
| Source | AuditVault |
| Status | Audit finding — reproduced as a standalone local synthetic |
| Compiler | ^0.8.24 (PoC) |
TL;DR#
SessionManager.refundCancelledGame only checks that the game is Cancelled, then refunds ticketPrice to msg.sender without verifying contestants[gameId][msg.sender]. An attacker who never joined can drain the entire cancelled-game pool; legitimate players then cannot refund.
HARM: attacker receives all deposited entry fees (10 USDC in the PoC); victim refund reverts NotEnoughFunds.
Root cause#
_refundEntryFee pays whoever calls; refundCancelledGame never gates on join status.
Preconditions#
A game has at least one paying contestant and is cancelled by the creator.
Attack walkthrough#
- Victim joins and pays the entry fee.
- Creator cancels the game.
- Attacker (never joined) calls
refundCancelledGameand receivesticketPrice. - Victim's refund reverts because the pool is empty.
Diagrams#
Impact#
Permissionless drain of every cancelled game's entry-fee balance.
Sources#
- AuditVault finding
- Report: https://github.com/solodit/solodit_content/blob/main/reports/Cyfrin/2026-01-27-cyfrin-majority-protocol-v2.0.md
- Reduced source provenance: Engage-Protocol/engage-protocol @ cca0cb3; fixed in 7692203
Sources & further analysis#
Reproductions & code
- Standalone PoC + full trace: 65373-attacker-can-drain-all-tokens-from-cancelled-game-since-sess_exp (evm-hack-registry mirror).
- AuditVault finding: 65373-attacker-can-drain-all-tokens-from-cancelled-game-since-sess.
Alerts & third-party analyses
These dashboards index community alerts tweets, post-mortems, and independent write-ups. Reach them through the protocol name above to cross-check this reproduction against other analyses.