Reproduced Exploit
Powerloom: one validator finalizes a batch by attesting twice
Chain
Other
Category
logic
Date
Mar 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: 58812-validators-can-submit-multiple-attestations-to-maliciously-f. Standalone Foundry PoC and full write-up: 58812-validators-can-submit-multiple-attestations-to-maliciously-f_exp in the
evm-hack-registrymirror.
Vulnerability classes: vuln/logic/missing-check · vuln/governance/proposal-manipulation
submitBatchAttestation counts a vote for the supplied root and never checks attestationsReceived. The finalization threshold is 2. One registered validator submits the same malicious root twice, the second vote crosses the threshold, and the 100 token batch settlement is paid to that validator.
// Missing: require(!attestationsReceived[batch][tx.origin]);
votes[batch][root] += 1; // @> VULN
if (votes[batch][root] >= THRESHOLD && !finalized[batch]) {
finalized[batch] = true;
reward.transfer(msg.sender, SETTLEMENT);
}
Diagrams#
Impact#
The malicious root is finalized with votes == 2 from a single validator. The validator receives 100 settlement tokens. With the missing check restored, the second attestation reverts, the batch stays open, and the 100 token escrow stays in the contract.
PoC#
cd 58812-validators-can-submit-multiple-attestations-to-maliciously-f_exp
forge test -vv
Sources & further analysis#
Reproductions & code
- Standalone PoC + full trace: 58812-validators-can-submit-multiple-attestations-to-maliciously-f_exp (evm-hack-registry mirror).
- AuditVault finding: 58812-validators-can-submit-multiple-attestations-to-maliciously-f.
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.