Skip to content

In-depth lesson · Business logic

Root causes

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

Back to the lesson 5,351 to 5,400 of 5,700
  1. The validation loop uses the old stack instead of the newly created stack after replacing the lien.

    Seen in 1 report
  2. The validation methods assumed that only the true domain owner could answer a challenge on a given hostname, but shared hosting providers route many domains through the same infrastructure.

    Seen in 1 report
  3. The validation subtracted a positive deposit from a negative debt value without first negating the debt, so the comparison was always true.

    Seen in 1 report
  4. The validation used OR logic so only one of two upper-bound conditions needed to be true.

    Seen in 1 report
  5. The validation uses addition instead of subtraction when comparing the bad ratio to the safe ratio.

    Seen in 1 report
  6. The validation uses only the staked balance while the withdraw path also uses LP held directly in the staker contract.

    Seen in 1 report
  7. The valuation formula omits scaling for the different decimal precisions of the borrowed and redemption tokens.

    Seen in 1 report
  8. The valuation function added the primary balance and the secondary balance converted to primary terms without first scaling them to the same decimal precision.

    Seen in 1 report
  9. The valuation update function lacks the whenNotPaused modifier.

    Seen in 1 report
  10. The variable holding the claimable amount is overwritten on each loop iteration instead of being incremented, so only the last snapshot's value is returned.

    Seen in 1 report
  11. The vault address doubled as a sentinel for native ETH but could be changed, breaking the assumption it is not a token.

    Seen in 1 report
  12. The vault always deposited to the first plugin and withdrew from the last without checking plugin availability or paused state.

    Seen in 1 report
  13. The vault and controller used inconsistent definitions of a vault's balance, summing all token balances in one place but counting only the strategy's want token in the other.

    Seen in 1 report
  14. The vault applies a withdrawal fee unconditionally while the pool only applies it when the option market has live boards.

    Seen in 1 report
  15. The vault assumes all supported stablecoins have equal value and exchanges them 1:1 without checking market prices.

    Seen in 1 report
  16. The vault calculates its assets from the pool rather than its own token balance and lacks an owner sweep for tokens above recorded escrow obligations.

    Seen in 1 report
  17. The vault calculates share price using only the current asset balance, ignoring pending unharvested rewards, and allows immediate deposit and withdrawal.

    Seen in 1 report
  18. The vault calculates shares from the nominal deposit amount rather than the actual amount received after the transfer fee.

    Seen in 1 report
  19. The vault decrements pending withdrawal shares and then calls completeQueuedWithdrawal without handling the case where EigenLayer has already cleared the withdrawal as slashed, so the call reverts and accounting stays stale.

    Seen in 1 report
  20. The vault does not seed initial shares or use virtual shares, and total assets are read from the strategy's token balance, which direct transfers can inflate.

    Seen in 1 report
  21. The vault does not update internal staked totals when tokens move between strategy and non-strategy addresses.

    Seen in 1 report
  22. The vault does not update its total shares variable after burning shares during yield distribution, leading to a mismatch between recorded and actual shares.

    Seen in 1 report
  23. The vault exchanged WETH for OETH without enabling rebasing, so the held OETH did not participate in yield distribution.

    Seen in 1 report
  24. The vault hardcoded the SPL Token program ID and rejected any other token program ID during initialisation.

    Seen in 1 report
  25. The vault lacks a function to claim and distribute rewards earned by deposited LP tokens.

    Seen in 1 report
  26. The vault measures claimed rewards by balance difference, but the external claim function is permissionless so anyone can claim first.

    Seen in 1 report
  27. The vault overrides the decimals function to always return 18 instead of using the underlying token's decimals.

    Seen in 1 report
  28. The vault portion calculation uses an inclusive range that includes the current draw.

    Seen in 1 report
  29. The vault share price is derived from an exchange mark price that can be shifted by large sustained trading positions.

    Seen in 1 report
  30. The vault update function unconditionally whitelisted the vault's underlying tokens without checking whether they had been deliberately blacklisted.

    Seen in 1 report
  31. The vault used a proportional share calculation to set the minimum amount for single-sided redemptions, which did not account for the actual expected output of a single-sided trade.

    Seen in 1 report
  32. The vault uses a fixed one-to-one conversion between shares and assets instead of adjusting the exchange rate when total assets fall below total shares.

    Seen in 1 report
  33. The vault uses the strategy's raw token balance to determine if it holds no funds, allowing external transfers to manipulate the check.

    Seen in 1 report
  34. The vault uses zero virtual shares and assets, removing protection against share inflation.

    Seen in 1 report
  35. The vault withdraw returns the amount in 18-decimal scale while the wrapper expects the collateral token's native scale.

    Seen in 1 report
  36. The vault's after-commit hook does not verify that the loan's end epoch is within the allowed limit.

    Seen in 1 report
  37. The vault's internal commitment validation omits the deadline check that the router performs.

    Seen in 1 report
  38. The vault's view functions were implemented as simple conversions without accounting for limits, fees or rounding directions.

    Seen in 1 report
  39. The verification endpoint trusts the email parameter supplied in the link instead of binding verification to the address stored with the account.

    Seen in 1 report
  40. The verification path recomputes the proposer from current effective balances instead of reading the cached proposer lookahead fixed one epoch earlier.

    Seen in 1 report
  41. The verification service did not validate the email domain or cross-check the student number against an enrolment database.

    Seen in 1 report
  42. The verification stores the GitHub username rather than the immutable numeric user ID, so a later username change or reassignment causes the wrong account to be associated.

    Seen in 1 report
  43. The verification token is not bound to the email address it was issued for.

    Seen in 1 report
  44. The verification token was derived deterministically from the email address instead of being random and stored per request.

    Seen in 1 report
  45. The verification URL was built by string concatenation, letting an attacker inject a second secret parameter that the API used first.

    Seen in 1 report
  46. The verifier decodes a fixed prefix from an arbitrary-length blob instead of the canonical layout the executor actually consumes.

    Seen in 1 report
  47. The verifier decodes settler calldata using signatures that do not match the real settler.

    Seen in 1 report
  48. The verifier decodes the execute payload with the wrong ABI type (bytes instead of bytes[]) and omits the tag.

    Seen in 1 report
  49. The verifier summed each proof entry without checking that key images or output references were unique.

    Seen in 1 report