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 settlement subtracts the buyer's fee from the payment to the seller instead of charging it to the buyer.
Seen in 1 report
-
The settlement threshold is public and the vault allows withdrawals at any time, so providers can time exits.
Seen in 1 report
-
The settlement's set-required-validators function does not call the corresponding function in the signature verifier.
-
The setToProcessGroups function did not clear the elected accounts array after processing.
Seen in 1 report
-
The setWorkAddress function was missing a require statement that would reject the caller's own address as the work address.
Seen in 1 report
-
The share balance is multiplied by the token-per-share rate instead of divided by it, inverting the conversion.
Seen in 1 report
-
The share balance is passed to a function expecting an asset amount, ignoring the vault's share-to-asset exchange rate.
Seen in 1 report
-
The share calculation does not handle the case where shares to burn round down to zero.
-
The share calculation skips updating the global integral when total staked is zero, so the first deposit does not initialise reward accounting.
Seen in 1 report
-
The share calculation used the initial Ether balance and never decremented it.
-
The share calculation uses current total assets without protecting against a first depositor inflating the share price via a large donation.
Seen in 1 report
-
The share calculation uses integer division without a virtual offset, allowing the share price to be inflated and rounding down to zero.
Seen in 1 report
-
The share calculation uses the current underlying balance without accounting for losses.
-
The share conversion divides by total assets plus one, so a zero-asset pool collapses the denominator to one and mints unbounded shares.
-
The share endpoint accepted name and email parameters from any user with share access and did not prevent re-adding an existing owner with a lower role.
Seen in 1 report
-
The share exchange rate is recalculated after locked funds are subtracted from the pool's underlying total, so repeated lock events drive the rate towards zero and cause share minting to explode.
-
The share lock was applied to the immediate caller (the proxy) rather than the final recipient, so the proxy could not transfer the shares on.
-
The share parameter is accepted without validation against the debited amount and overrides the amount on the destination chain.
-
The share price for base liquidity providers uses the raw pool total without subtracting bad debt that exceeds the safety module balance.
-
The share price is total funds divided by total supply, and trading fees reduce total funds without adjusting the share accounting.
Seen in 1 report
-
The share price is updated only when donations occur, allowing an attacker to buy shares just before a donation and redeem just after.
Seen in 1 report
-
The share redemption during restake reduced stake shares but not the owner's address shares.
Seen in 1 report
-
The share removal helper lacks a check that reverts when it cannot remove all requested shares.
Seen in 1 report
-
The share-report email template did not include a warning that the report is from a sandbox.
Seen in 1 report
-
The share-to-asset ratio was updated only at the moment of loss socialisation, so an earlier withdrawal escaped the loss.
Seen in 1 report
-
The shareholder-setting function does not verify that accounts are unique.
Seen in 1 report
-
The short-side reserve calculation used open interest in USD without adjusting for the collateral token price.
Seen in 1 report
-
The shutdown function did not disable the savings contract, so interest kept accruing after the final rate was set.
Seen in 1 report
-
The shutdown function does not check the success of the withdraw-all call before setting the shutdown flag.
Seen in 1 report
-
The shutdown vote count is not reset to zero when a collection is shut down.
Seen in 1 report
-
The sides limit was enforced only in client-side JavaScript.
Seen in 1 report
-
The sign-up flow did not validate the email domain and did not require email confirmation before granting an authenticated session.
Seen in 1 report
-
Medium
-
-
The sign-up flow does not block or verify against disposable email domains, so confirmation emails can be received in temporary inboxes.
Seen in 1 report
-
The sign-up form did not validate the phone number length and truncated longer inputs to 10 digits before sending the verification code.
Seen in 1 report
-
The signature covered a delimiter-free concatenation of field names and values, so field boundaries could be shifted.
Seen in 1 report
-
$7,500 Critical
-
-
The signature covers both arrays but the processing loop iterates only over the loan ID array length.
Seen in 1 report
-
The signature covers only the request path and counter, not the body, and the replay counter resets to zero on startup.
Seen in 1 report
-
The signature did not bind the swap data to a specific borrower's borrowing index, allowing reuse.
Seen in 1 report
-
The signature is checked against a computed ID but the stored blob ID is never compared with that computed ID.
Seen in 1 report
-
The signature loop counts every valid signature without tracking which validator produced it.
Seen in 1 report
-
The signature over the profit value was not bound to a specific user or deposit index, so valid values could be replayed.
Seen in 1 report
-
The signature validation omits the vault address and strategy version from the encoded data, so the same signature remains valid for different vaults.
Seen in 1 report
-
The signature was computed over concatenated parameter values without delimiters, so shifting characters between fields kept it valid.
Seen in 1 report
-
The signed credit structure has no deadline or nonce, so signatures remain valid indefinitely.
-
The signed credit structure omits the marketplace address, so signatures are not bound to a marketplace.
Seen in 1 report
-
The signed customer payload does not include a rules version or hash, so current rules apply at execution time.
Seen in 1 report
-
The signed label was derived from the normalised name while the UI displayed the raw name, so transform-class labels produced a different labelhash.
-
The signed message did not include the caller's address, so a valid signature could be reused by anyone.
-
The signed message omitted any maximum bond amount, so the signature did not bind the financial terms the operator agreed to.
Seen in 1 report
-
The signed recovery message contains only the account ID and new encryption key, with no version, nonce or timestamp, and no freshness check.
Seen in 1 report