Reproduced Exploit
Majority Protocol — re-join after leave permanently locks second entry fee
After leaveRescheduledGame sets hasRefunded[gameId][player]=true, _payEntryFee on re-join never clears that flag. When the game is later cancelled, refundCancelledGame reverts AlreadyRefunded and the second fee stays in SessionManager forever.
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: 65375-impossible-for-user-to-get-refund-after-re-joining-a-resched. Standalone Foundry PoC and full write-up: 65375-impossible-for-user-to-get-refund-after-re-joining-a-resched_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: frozen-funds · locked-funds · dos-resistance
Key info#
| Impact | HIGH — second entry fee permanently locked after leave/rejoin then cancel |
| Protocol | Majority Protocol |
| Bug class | hasRefunded not cleared on re-join / rejoin allowed after refund |
| Finding | Cyfrin (Dacian) · #65375 |
| 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#
After leaveRescheduledGame sets hasRefunded[gameId][player]=true, _payEntryFee on re-join never clears that flag. When the game is later cancelled, refundCancelledGame reverts AlreadyRefunded and the second fee stays in SessionManager forever.
HARM: 10 USDC stuck in SessionManager; player cannot recover the re-join fee.
Root cause#
hasRefunded is sticky across re-joins; _payEntryFee does not reset it.
Preconditions#
Game is rescheduled so leave is allowed; player leaves (refunded), re-joins, then game is cancelled.
Attack walkthrough#
- Join, reschedule, leave (refund + hasRefunded=true).
- Re-join (pays again; flag still true).
- Cancel; refund reverts AlreadyRefunded.
- Second fee locked.
Diagrams#
Impact#
User funds permanently locked in the immutable SessionManager.
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 3ac5654
Sources & further analysis#
Reproductions & code
- Standalone PoC + full trace: 65375-impossible-for-user-to-get-refund-after-re-joining-a-resched_exp (evm-hack-registry mirror).
- AuditVault finding: 65375-impossible-for-user-to-get-refund-after-re-joining-a-resched.
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.