Skip to content

In-depth lesson · Smart contracts

Root causes

Every point the Smart contracts reports back under this heading, best-backed first, each with the reports it is seen in.

Back to the lesson 1 to 31 of 31
  1. State is updated after an external call, or a function with a callback lacks a reentrancy guard.

    Seen in 18 reports
  2. State is updated after an external call, or the reentrancy guard can be bypassed, in withdraw, claim, swap and mint paths.

    Seen in 11 reports
  3. Return values from transfer and transferFrom are ignored, so failed transfers are treated as successful.

    Seen in 6 reports
  4. The price source can be moved within a single transaction or returns stale data.

    Seen in 6 reports
  5. Functions that swap, mint, redeem or provide liquidity do not enforce a minimum output or maximum input.

    Seen in 5 reports
  6. Strategy allocation functions lack slippage control.

    Seen in 5 reports
  7. Only a narrow subset of ERC20 tokens is supported, so unusual tokens break accounting or lock funds.

    Seen in 2 reports
  8. Price oracles that time out return a huge but valid high price instead of reverting.

    Seen in 2 reports
  9. Reentrancy in service creation lets the owner steal protocol tokens.

    Seen in 2 reports
  10. The code calls ERC20 transfer or approve directly and does not check the returned boolean or handle tokens that return nothing.

    Seen in 1 report
  11. Slippage bounds are computed with division before multiplication or from manipulable pool state, making them inaccurate.

    Seen in 1 report
  12. Initialise functions are callable by anyone or lack protection against being front-run.

    Seen in 1 report
  13. The contract assumes the received amount equals the sent amount, breaking with fee-on-transfer or variable-balance tokens.

    Seen in 1 report
  14. Incorrect slippage values allow swap manipulation.

    Seen in 1 report
  15. A universal signature for produce allows front-running and collection hijack.

    Seen in 1 report
  16. Oracle accumulators are not updated in shift and sync functions, allowing price manipulation.

    Seen in 1 report
  17. A return variable shadows a storage variable, so storage updates are skipped.

    Seen in 1 report
  18. The get-year function parses timestamps incorrectly.

    Seen in 1 report
  19. Burn-from does not reduce total supply.

    Seen in 1 report
  20. The OKX helper is incompatible with the Uniswap V3 swap-to-with-permit selector.

    Seen in 1 report
  21. The total supply function overstates circulating supply.

    Seen in 1 report
  22. Distribute promoter payments is open to reentrancy.

    Seen in 1 report
  23. Return values of external calls in Moonwell strategies are not checked.

    Seen in 1 report
  24. The is-valid-signature implementation on the strategy is wrong.

    Seen in 1 report
  25. Partial signatures on session calls can be replayed or front-run.

    Seen in 1 report
  26. Cross-contract reentrancy in liquidation converts phantom shares into real shares.

    Seen in 1 report
  27. The recover-ERC20 function has no reentrancy guard.

    Seen in 1 report
  28. Reentrancy in the leave function halts bottom-up checkpoints.

    Seen in 1 report
  29. Cross-service reentrancy in the staking withdraw causes insolvency.

    Seen in 1 report
  30. The Uniswap swap has no slippage protection.

    Seen in 1 report
  31. The contract uses a Solidity version with known issues.

    Seen in 1 report