The FSDVesting contract's claimTribute and claimGovernanceTribute functions fail to call the corresponding claim functions on the FSD token contract. As a result, when a beneficiary claims a tribute, the reward is transferred from their vested tokens without replenishing the FSD token contract's accounting, potentially causing loss to the beneficiary.
The updateVestedTokens() function in FSDVesting.sol lacks a check that the caller is the trusted FSD.sol contract, and the _user argument is user-controlled, so anyone can call it to arbitrarily increase a user's vested token amount. This allows an attacker to either withdraw more tokens early or block legitimate withdrawals by causing safeTransfer() to fail due to insufficient balance.
The vesting contract only transfers the conviction NFT if the final claim amount equals the total vesting amount, so a beneficiary who makes any earlier claim can never receive the NFT. An attacker (or any beneficiary) could permanently lose access to the NFT by claiming in multiple transactions.
The tribute claim functions calculate a user's share based on their conviction score, which can be updated at will. An attacker can update their conviction score just before claiming to receive more than their fair share, potentially draining the contract and preventing others from claiming.
When a user extends their membership, the contract incorrectly updates the user's creation timestamp by adding the duration increase, which pushes the membership start date far into the future. This makes the user unable to use any membership features for an extended period.
The smart contract function that writes conviction score checkpoints uses a memory copy instead of a storage pointer, so when a checkpoint is updated in the same block, the new value is not saved. This means users who update their conviction score multiple times in one block only have their first score persisted, and it can be exploited to inflate conviction scores or cause loss of conviction NFTs.
The ERC20ConvictionScore contract allows any user to transfer tokens to the special address used to track the total governance credit score, which then accumulates a credit score based on its balance. An attacker could inflate this total score, raising the quorum threshold and preventing proposals from passing.
The fShareRatio variable in the purchaseMembership function can be manipulated by flash minting and burning FSD tokens, potentially allowing a user to purchase membership when the ratio is below 100% or to earn more staking rewards. However, a 3.5% tribute fee makes such manipulation unprofitable, and the project confirmed the example is not possible.
The liquidateDai() function calls Uniswap's swapExactTokensForETH without first approving the UniswapV2 router to spend the Dai tokens. As a result, the swap always fails and the function reverts, preventing the intended liquidation and updateCostShareRequest() from completing.
When a user loses governor status, the governance score delta is added as a positive value instead of being subtracted, so the total governance score becomes incorrect. This can inflate or deflate total votes, potentially allowing anyone to pass proposals or preventing quorum.
The protocol releases locked FSD tokens twice when a user acquires conviction back from an NFT. An attacker could obtain double the locked amount, causing loss of protocol funds.
New users' conviction scores never initialise because the checkpoint count is zero and the balance is zero, so the update function exits early. This prevents the protocol's core conviction scoring feature from bootstrapping for any new user.
The conviction score update logic used a stale snapshot from the previous block when a user lost governance status, allowing the total governance score to be inflated. An attacker could increase their score and then transfer their balance in the same block, leaving the total governance score artificially high and potentially breaking the voting mechanism.
When a user tokenizes their conviction score and specifies an amount of FSD tokens to lock, the contract transfers that amount from the user twice. The user therefore loses the specified number of tokens beyond what they intended to lock.
The tokenization function fails to update the protocol's overall conviction score, so later attempts to redeem an NFT back to a conviction score always revert due to an underflow. As a result, users cannot redeem their tokenized conviction scores, effectively losing the conviction score value.
The contract uses `transfer()` to send Ether, which forwards a fixed 2300 gas. After the Istanbul hardfork increased the gas cost of SLOAD, this fixed amount may be insufficient if the recipient is a contract, causing Ether to become stuck.
The tokenizeConviction function ignores the return values from _updateConvictionScore, so the network-wide conviction and governance totals are not updated. This leads to incorrect tribute calculations because the totals are used as denominators.
The contract read the ETH price from a Chainlink aggregator without checking the round ID or timestamp, so it could act on a stale or incomplete price. An attacker or unlucky timing could then cause the contract to use an outdated ether price, putting funds at risk.
The acquireConviction function in ERC20ConvictionScore omitted the balance check required to become a governor, allowing a user to gain governance rights without meeting the minimum balance. Additionally, the wasGovernance flag could be outdated, letting a user bypass governance parameter changes by front-running them with an NFT creation.
When a membership was extended, the contract increased the creation timestamp but left the grace period unchanged, so the grace period could end earlier than intended relative to the new membership duration. The project confirmed this could affect membership duration and fixed it.
The ABDKMathQuad library used by FairSideFormula has edge cases where conversions between UInt and Bytes16 produce small differences, and other operations may also misbehave. An attacker could potentially exploit these inaccuracies, though the report does not demonstrate a concrete exploit.
The contract ABC incorrectly converts a negative int256 parameter to uint256, producing an extremely large number that causes a SafeMath subtraction to revert. This prevents users from burning FSD tokens when the reserve delta is negative.
The withdraw function does not decrease the pendingWithdrawals storage variable, so it overstates outstanding withdrawals. This causes getReserveBalance to under-report the actual reserve balance, leading to incorrect mint amounts in the FSD.mint calculation.
The arctan approximation in the FairSideFormula contract omitted absolute value operations, producing incorrect results for negative inputs. This could cause the calculateDeltaOfFSD function to mint or burn an incorrect number of FSD tokens.