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.
-
The validation loop uses the old stack instead of the newly created stack after replacing the lien.
Seen in 1 report
-
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
-
The validation subtracted a positive deposit from a negative debt value without first negating the debt, so the comparison was always true.
-
The validation used OR logic so only one of two upper-bound conditions needed to be true.
Seen in 1 report
-
The validation uses addition instead of subtraction when comparing the bad ratio to the safe ratio.
-
The validation uses only the staked balance while the withdraw path also uses LP held directly in the staker contract.
Seen in 1 report
-
The valuation formula omits scaling for the different decimal precisions of the borrowed and redemption tokens.
Seen in 1 report
-
The valuation function added the primary balance and the secondary balance converted to primary terms without first scaling them to the same decimal precision.
-
The valuation update function lacks the whenNotPaused modifier.
Seen in 1 report
-
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.
-
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
-
The vault always deposited to the first plugin and withdrew from the last without checking plugin availability or paused state.
-
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
-
The vault applies a withdrawal fee unconditionally while the pool only applies it when the option market has live boards.
Seen in 1 report
-
The vault assumed all rewards arrived through its own compound call and only measured rewards during that call.
-
The vault assumes all supported stablecoins have equal value and exchanges them 1:1 without checking market prices.
Seen in 1 report
-
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.
-
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
-
The vault calculates shares from the nominal deposit amount rather than the actual amount received after the transfer fee.
Seen in 1 report
-
Medium
-
-
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
-
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
-
The vault does not update internal staked totals when tokens move between strategy and non-strategy addresses.
-
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
-
The vault exchanged WETH for OETH without enabling rebasing, so the held OETH did not participate in yield distribution.
Seen in 1 report
-
The vault hardcoded the SPL Token program ID and rejected any other token program ID during initialisation.
Seen in 1 report
-
The vault lacks a function to claim and distribute rewards earned by deposited LP tokens.
Seen in 1 report
-
The vault measures claimed rewards by balance difference, but the external claim function is permissionless so anyone can claim first.
Seen in 1 report
-
The vault overrides the decimals function to always return 18 instead of using the underlying token's decimals.
Seen in 1 report
-
The vault portion calculation uses an inclusive range that includes the current draw.
Seen in 1 report
-
The vault share price is derived from an exchange mark price that can be shifted by large sustained trading positions.
Seen in 1 report
-
The vault update function unconditionally whitelisted the vault's underlying tokens without checking whether they had been deliberately blacklisted.
Seen in 1 report
-
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
-
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.
-
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
-
The vault uses zero virtual shares and assets, removing protection against share inflation.
Seen in 1 report
-
The vault withdraw returns the amount in 18-decimal scale while the wrapper expects the collateral token's native scale.
-
The vault's after-commit hook does not verify that the loan's end epoch is within the allowed limit.
Seen in 1 report
-
The vault's internal commitment validation omits the deadline check that the router performs.
Seen in 1 report
-
The vault's view functions were implemented as simple conversions without accounting for limits, fees or rounding directions.
Seen in 1 report
-
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
-
The verification path recomputes the proposer from current effective balances instead of reading the cached proposer lookahead fixed one epoch earlier.
-
The verification service did not validate the email domain or cross-check the student number against an enrolment database.
-
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
-
The verification token is not bound to the email address it was issued for.
Seen in 1 report
-
The verification token was derived deterministically from the email address instead of being random and stored per request.
Seen in 1 report
-
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
-
The verifier decodes a fixed prefix from an arbitrary-length blob instead of the canonical layout the executor actually consumes.
Seen in 1 report
-
The verifier decodes settler calldata using signatures that do not match the real settler.
-
The verifier decodes the execute payload with the wrong ABI type (bytes instead of bytes[]) and omits the tag.
-
The verifier summed each proof entry without checking that key images or output references were unique.
Seen in 1 report