# Griefing attack on seller's airdrop benefits

TraitForge NFT buyer can nuke/burn a transferred token, deducting entropy from the original minter's airdrop allocation and causing loss of funds.

- Payout: Audit contest
- Severity: high
- Program: TraitForge
- Found by: ZanyBonzy
- Disclosed: 2024-09-13
- Write-up quality: 6/10
- Original: https://github.com/code-423n4/2024-07-traitforge-findings/issues/227
- Library page: https://bugbountylibrary.com/r/c4%3A2024-07-traitforge%3AH-02
- Tags: area:web3 domain:web3 impact:funds-loss kind:contest platform:code4rena sev:high tech:evm tech:solidity technique:source-review vuln:accounting-error vuln:business-logic

**Target:** TraitForgeNft / NukeFund Solidity contracts
**Root cause:** Airdrop entitlement is credited to initialOwners at mint but never migrated on transfer; burn() unconditionally calls subUserAmount(initialOwners[tokenId], entropy), so any later holder burning/nuking reduces the original minter's allocation.
**Steps:**
1. Mint/forge token: `_mintInternal`/`_mintNewEntity` set `initialOwners[newItemId]=to` and `airdropContract.addUserAmount(to, entropyValue)`.
2. Transfer or sell the token to attacker; `initialOwners[tokenId]` remains the seller.
3. Attacker calls `nuke(tokenId)` (or `burn(tokenId)`), which invokes `nftContract.burn(tokenId)`.
4. burn() executes `airdropContract.subUserAmount(initialOwners[tokenId], entropy)`, deducting seller's airdrop amount.
5. Nuking costs attacker less than burning, maximizing griefing efficiency.
**How found:** Code reading of mint/forge crediting initialOwners vs. burn() deducting from initialOwners without checking current owner or caller, noticing transfer does not migrate airdrop entitlement.
**Exploitation:** Attacker acquires a TraitForge NFT cheaply (or as buyer), then calls nuke() on it; the burn path deducts the token's entropy from the original minter's airdrop balance, reducing the seller's airdrop rewards while the attacker loses only the nuke cost.
**Insight:** When a reward is credited to a historical role (initialOwner) but a destructive action is callable by the current holder, check whether the destructive path debits the historical role — entitlement/ownership divergence enables cheap griefing.

