Skip to content

Code4rena

FIAT DAO veFDT contest

Every publicly disclosed report for FIAT DAO veFDT contest and what kind of bugs they were.

disclosed reports
10
most reported class
Business logic
bug classes found
3
first disclosure
2022
Find FIAT DAO veFDT contest on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what FIAT DAO veFDT contest chose to make public.

Access control

Attacker contract can avoid being blocked by BlockList.sol

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.

FIAT DAO veFDT contest

Medium
Business logic

Blocking Through Change of Blocklist Could Trap Tokens

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.

FIAT DAO veFDT contest

Medium
Smart contracts

Unsafe casting from int128 can cause wrong accounting of locked amounts

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.

FIAT DAO veFDT contest

Medium
Business logic

Attackers can abuse the quitLock function to get a very large amount of votes

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.

FIAT DAO veFDT contest

Medium
Business logic

increaseUnlockTime missing _checkpoint for delegated values

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.

FIAT DAO veFDT contest

Medium
Business logic

Inconsistent logic of increase unlock time to the expired locks

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.

FIAT DAO veFDT contest

Medium
Business logic

Error in Updating _checkpoint in the increaseUnlockTime Function

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.

FIAT DAO veFDT contest

Medium
Business logic

Delegators can Avoid Lock Commitments if they can Reliably get Themselves Blocked when Needed

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.

FIAT DAO veFDT contest

High
Smart contracts

Unsafe usage of ERC20 transfer and transferFrom

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.

FIAT DAO veFDT contest

High