The VotingEscrow contract records the user-supplied amount as locked, but if the token charges a transfer fee, the contract receives less. This can leave the contract with insufficient balance to honour withdrawals, so some users cannot retrieve their funds.
The blocklist only blocks addresses that are contracts, checked by code length. An attacker can use a contract that self-destructs and is recreated at the same address with CREATE2 to bypass the blocklist and interact with the system.
If the blocklist contract is changed to one that marks an account as blocked, and that account had previously delegated tokens, the account cannot withdraw, quit its lock, or undelegate, so its tokens become stuck. The report claims this could happen during a blocklist migration error.
The VotingEscrow contract casts a user-supplied amount to int128 without checking bounds, so a value above the int128 maximum truncates to zero. An attacker could lock a huge amount, have the tokens transferred, but the contract records zero locked amount, leaving the tokens stuck.
The quitLock function in a voting escrow contract allows an attacker to use a flash loan to create a large voting power and then immediately quit, potentially passing malicious proposals. The attack requires paying a penalty proportional to the lock duration, which may offset the gained votes.
The increaseUnlockTime function in the VotingEscrow contract fails to update voting power for users who are both delegators and delegatees, because the checkpoint is skipped when the user has delegated to someone else. This allows a user to extend their lock time without gaining the corresponding voting power from funds delegated to them.
The increaseUnlockTime function inconsistently allows expired locks to be extended only when the lock is delegated to another address, while blocking it otherwise. An attacker could delegate an expired lock to bypass the check, extend the lock, and then undelegate to regain voting power.
The increaseUnlockTime function incorrectly set the old lock's end time to the new unlock time instead of the previous end time, causing wrong voting power calculations. An attacker could exploit this to obtain incorrect voting power at a given block or distort total voting power.
A user with two accounts could delegate voting power from a short-lock account to a long-lock account, then get the short-lock account blocked to force undelegation and withdraw tokens early, while the long-lock account keeps extended voting power. This undermines the lock commitment incentives and could break the system.
The VotingEscrow contract calls ERC20 transfer and transferFrom functions and checks their return values, but some tokens like USDT and BNB do not return a boolean, causing those calls to revert. This means the contract would not work with such tokens, potentially preventing users from depositing or withdrawing.
FD
FIAT DAO veFDT contest
High
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.