# Anyone can call `VVVVCTokenDistribution::claim` function by utilizing `ClaimParams` signed by the `signer`

VVVVCTokenDistributor.claim sends signed rewards to msg.sender instead of kycAddress, letting anyone front-run a signed ClaimParams and steal the user's tokens.

- Payout: Audit contest
- Severity: high
- Program: Vvv Exchange Update
- Found by: 056Security
- Disclosed: 2024-11-09
- Write-up quality: 6/10
- Original: https://github.com/sherlock-audit/2024-11-vvv-exchange-update-judging/issues/187
- Library page: https://bugbountylibrary.com/r/sherlock%3A2024-11-vvv-exchange-update%3AH-1
- Tags: area:web3 domain:web3 impact:funds-loss kind:contest platform:sherlock sev:high tech:evm tech:solidity technique:source-review vuln:access-control

**Target:** VVVVCTokenDistributor claim() on EVM
**Root cause:** claim() validates the signer's EIP-712 signature over ClaimParams but transfers tokens to msg.sender rather than _params.kycAddress, and no check binds the caller to the kycAddress.
**Steps:**
1. Observe a legitimate user's claim tx or mempool submission containing signed ClaimParams (kycAddress, projectTokenAddress, proxyWallets, amounts, nonce, deadline, signature).
2. Front-run with `claim(_params)` using the same signed params; signature check passes since signer matches.
3. Tokens are safeTransferFrom'd from projectTokenProxyWallets to attacker's msg.sender.
4. nonces[kycAddress] is set to _params.nonce, so the legitimate user's later claim reverts with InvalidNonce.
**How found:** Code review of claim(): noticed the transfer recipient is msg.sender while the signature only covers kycAddress and amounts, so no binding between caller and beneficiary exists.
**Exploitation:** Attacker copies a victim's signed ClaimParams from the mempool and submits claim() first with higher gas; contract verifies signature, bumps nonce, and transfers the reward tokens to the attacker instead of the KYC address.
**Insight:** In signature-gated claim/distribution contracts, always check that the payout recipient is derived from the signed struct (e.g. kycAddress), not msg.sender; a valid signature over params does not authenticate the caller.

