Reproduced Exploit
Music Protocol: redeeming a removed artist still pays 1,000 RECORD
Chain
Other
Category
logic
Date
Feb 2024
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: 59402-redeeming-does-not-discount-tokens-of-removed-artists-leadin. Standalone Foundry PoC and full write-up: 59402-redeeming-does-not-discount-tokens-of-removed-artists-leadin_exp in the
evm-hack-registrymirror.
Vulnerability classes: vuln/logic/reward-calculation
redeem calls _calcSinceLastPosition only while the artist is still verified. After removeArtist, a full redeem zeroes the user's stake and leaves artistStake at 1,000. A 2,000 RECORD pot split by stake therefore mints 1,000 RECORD to the removed artist. The still-verified artist, who also has 1,000 stake, should have received the whole pot.
if (live) {
_calcSinceLastPosition(artist, _stake[artist][user].amount, false);
}
if (!live) skippedRedeem += _stake[artist][user].amount; // @> VULN
Diagrams#
Impact#
The removed artist receives 1,000 RECORD. Their artistStake is still 1,000. The fixed redeem subtracts the stake even after removal, so that artist is minted 0 and the active artist receives the full 2,000 RECORD.
PoC#
cd 59402-redeeming-does-not-discount-tokens-of-removed-artists-leadin_exp
forge test -vv
Sources & further analysis#
Reproductions & code
- Standalone PoC + full trace: 59402-redeeming-does-not-discount-tokens-of-removed-artists-leadin_exp (evm-hack-registry mirror).
- AuditVault finding: 59402-redeeming-does-not-discount-tokens-of-removed-artists-leadin.
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.