# mVeNFT DOS can't trigger the vote function

attachToManagedNFT calls _poke which updates lastVotedTimestamp, letting attackers spam 1-wei locks each epoch to force a mVeNFT to re-vote and block its own vote function.

- Payout: Audit contest
- Severity: medium
- Program: Fenix Finance
- Found by: Ch\_301
- Disclosed: 2024-10-11
- Write-up quality: 6/10
- Original: https://github.com/code-423n4/2024-09-fenix-finance-findings/issues/21
- Library page: https://bugbountylibrary.com/r/c4%3A2024-09-fenix-finance%3AM-01
- Tags: area:web3 domain:web3 impact:dos kind:contest platform:code4rena sev:medium tech:evm tech:solidity technique:source-review vuln:business-logic vuln:dos

**Target:** VoterUpgradeableV2 / VotingEscrowUpgradeableV2 veFNX voting contracts
**Root cause:** attachToManagedNFT sub-calls _poke(), which incorrectly calls _updateLastVotedTimestamp, so attaching voting power resets the mVeNFT's last-voted timestamp and triggers _checkVoteDelay on its own vote().
**Steps:**
1. Create a new lock with `amount = 1 wei` via `_createLock()` to bypass `checkNoValueZero`.
2. At the start of each epoch/voting window, call `attachToManagedNFT()` delegating that lock's voting power to the target mVeNFT.
3. _poke() runs and sets `lastVotedTimestamps[tokenId] = _epochTimestamp() + 1`.
4. mVeNFT's `vote()` now reverts in `_checkVoteDelay()` until next epoch; repeat each epoch to keep forcing votes to the same gauges.
**How found:** Code review of attachToManagedNFT and _poke flow; noticed _poke updates lastVotedTimestamp and that _checkVoteDelay gates vote() for non-whitelisted tokens, then realized cheap Blast gas enables repeated 1-wei lock creation to sustain the DoS.
**Exploitation:** Attacker repeatedly creates minimal 1-wei locks (cheap on Blast) and attaches them to a victim mVeNFT at each epoch start, resetting its lastVotedTimestamp and preventing it from changing gauge weights or resetting votes.
**Insight:** When a delegation/attach function calls an internal _poke that writes vote-timestamp state, check whether that write feeds a delay/cooldown guard on the delegate's own actions; cheap-gas chains make 1-wei minimum-amount bypasses a viable griefing vector.

