Reproduced Exploit
TraitForge — Buyer burn/nuke slashes original minter's airdrop allocation
Buyer burn/nuke slashes original minter's airdrop allocation. Harm demonstrated: Seller airdrop allocation slashed to zero by buyer burn after transfer.
Chain
Other
Category
untagged
Date
Jul 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: 37916-h-02-griefing-attack-on-sellers-airdrop-benefits-code4rena-t. Standalone Foundry PoC and full write-up: 37916-h-02-griefing-attack-on-sellers-airdrop-benefits-code4rena-t_exp in the
evm-hack-registrymirror.
Vulnerability classes: griefing, reward-accounting, reentrancy-guard
Reproduction: self-contained Foundry PoC (only
forge-std) — no fork, no RPC. Full trace: output.txt. PoC: test/37916-h-02-griefing-attack-on-sellers-airdrop-benefits-code4rena-t_exp.sol.
Key info#
| Impact | HIGH — Seller airdrop allocation slashed to zero by buyer burn after transfer |
| Protocol | TraitForge |
| Vulnerable code | TraitForgeNft (see @> in synthetic) |
| Finding | Code4rena · #37916 |
| Report | https://code4rena.com/reports/2024-07-traitforge |
| Source | AuditVault |
| Status | Audit finding — reproduced as a standalone local PoC |
| Compiler | ^0.8.24 |
TL;DR#
Buyer burn/nuke slashes original minter's airdrop allocation. Harm demonstrated: Seller airdrop allocation slashed to zero by buyer burn after transfer.
The vulnerable code#
See test/37916-h-02-griefing-attack-on-sellers-airdrop-benefits-code4rena-t.sol — the blamed line is marked // @> VULN.
Root cause#
See the synthetic header comment and the AuditVault finding for the full root-cause write-up. The Playground preserves the vulnerable line verbatim and asserts the concrete harm in Exploit.run().
Attack walkthrough#
- Deploy the reduced vulnerable system (CREATE order: Airdrop, TraitForgeNft, SellerActor, BuyerActor).
- Seed the preconditions from the finding (approvals, balances, whitelist).
- Execute the attack path; the
@>line runs. require(...)asserts the harm.
Diagrams#
Impact#
Seller airdrop allocation slashed to zero by buyer burn after transfer
Taxonomy#
- griefing, reward-accounting, reentrancy-guard
Sources#
- AuditVault finding
- Code4rena report
- Reduced from:
code-423n4/2024-07-traitforge contracts/TraitForgeNft/TraitForgeNft.sol burn()
Sources & further analysis#
Reproductions & code
- Standalone PoC + full trace: 37916-h-02-griefing-attack-on-sellers-airdrop-benefits-code4rena-t_exp (evm-hack-registry mirror).
- AuditVault finding: 37916-h-02-griefing-attack-on-sellers-airdrop-benefits-code4rena-t.
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.