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 unsubscribe action did not require proof that the requester owned the email address.
Seen in 1 report
-
Info
-
-
The unsubscribe endpoint did not verify that the requester owned the address being unsubscribed.
Seen in 1 report
-
The unsubscribe endpoint trusted a single encoded parameter to identify the recipient with no further verification or rate limiting.
Seen in 1 report
-
The unsubscribe mechanism trusted any email arriving at the unsubscribe address without verifying the sender was the actual group member.
-
The unvouch function lacked a check for an active accusation lock.
Seen in 1 report
-
The unwhitelist function reverted if the operator was not whitelisted, forcing owners to whitelist an operator before removing them.
Seen in 1 report
-
The unwrap function used transferFrom instead of safeTransferFrom, skipping the recipient capability check.
Seen in 1 report
-
The unwrap helper was passed msg.sender instead of the receiver address.
Seen in 1 report
-
The update endpoint saved the name parameter without checking whether the user may change it, relying on the interface to hide the option.
Seen in 1 report
-
The update function called a verification routine that reverts when the pool id already exists, yet the update was only ever called for existing ids.
Seen in 1 report
-
The update function did not require the new provider's latest timestamp to be strictly greater.
-
The update function exited early when both checkpoint count and balance delta were zero, so new users never bootstrapped.
Seen in 1 report
-
The update function forced the end time to at least the current timestamp and minting used a strict greater-than check.
Seen in 1 report
-
The update function incremented the checkpoint counter even when no deposit or redemption was made.
-
The update function only rounded up when the delta became zero and truncated values like 1.999.
-
The update function reset the receiver's average start time whenever the time since the last update exceeded a reference time, without checking whether the deposit was significant.
-
The update function set the last-update timestamp to the current block time even when the validator was slashed, without capping at the slash timestamp.
-
The update function set the stored buffer directly to the new cap instead of preserving the existing amount capped by the new limit.
Seen in 1 report
-
The update function used a negated whitelist check on the sender instead of allowing whitelisted addresses, inverting the intended logic.
Seen in 1 report
-
The update hook claimed rewards without first accruing fees.
-
The update path renamed the shortcut without checking whether the target name was already taken, unlike the creation path.
Seen in 1 report
-
The update process did not verify that the new version was newer or authorised.
Seen in 1 report
-
The update set the last fee operation time to the block timestamp instead of adding only the whole minutes consumed.
-
The update used the pool's last updated timestamp, which was not reset when weights were set, so new weights applied retroactively.
-
The update-settings function omitted the assignment of the migration token allocation from the input parameters.
Seen in 1 report
-
The upgrade function called process_collected_fees before any fees existed, and that function cleared the proposer whenever the collected amount was zero.
Seen in 1 report
-
The upgrade path updated the base contract's DAO pointer but never updated the reserve's trusted address.
Seen in 1 report
-
The upgrade permits a new version to use a different oracle while sharing the same token, creating price discrepancies.
Seen in 1 report
-
The upgrade registered the new contract before unregistering the old one under the same name key, wiping the new address.
Seen in 1 report
-
The upkeep function does not verify that enough gas was supplied for every step, and the try/catch around the last step lets it fail without reverting the whole call.
Seen in 1 report
-
The upload endpoint did not verify the target form still existed before accepting and storing the file.
Seen in 1 report
-
The upload flag is cleared only for one post option and not for the post fields, copy post fields or MIME post options.
Seen in 1 report
-
The upload option is not reset when switching from an upload to a POST, so the upload read callback and buffer persist.
Seen in 1 report
-
The upload-share handler used a lookup that only checked the regular backups field while social backup ciphertexts lived in a separate social recovery field.
Seen in 1 report
-
The use of an external self-call changed msg.sender to the contract address, breaking an ownership check.
Seen in 1 report
-
The user identifier in the JWT is not validated against the session.
Seen in 1 report
-
The user's vesting record is loaded into a memory variable, so clearing the locked amount never updates the stored state that the claimable calculation reads.
-
The user-specified withdrawal amount was not capped to the user's total raw supply.
Seen in 1 report
-
The user-supplied fee is forwarded without checking the fee the oracle actually charges.
Seen in 1 report
-
The utilisation calculation used live token balances instead of cached values, so a direct transfer manipulated it.
-
The utilisation check runs immediately after adding the flash loan liability, before the repayment actions are processed.
Seen in 1 report
-
The utilisation formula does not handle reserves exceeding cash, so the denominator can fall below borrows.
Seen in 1 report
-
The utilisation rate is computed as borrowed divided by available unborrowed assets rather than borrowed divided by total assets.
-
The validation compared the intrinsic gas cost against the total gas limit instead of the gas limit remaining after subtracting the overhead.
Seen in 1 report
-
The validation condition used the state variable instead of the function parameter, so the maximum limit was never enforced.
Seen in 1 report
-
The validation function did not enforce that a farm's start epoch must be after the current epoch.
Seen in 1 report
-
The validation function is called after the state change and passed the same diff again, applying it twice.
-
The validation layer compared the raw unnormalised address while a later delivery layer canonicalised it, so the two disagreed about the domain.
Seen in 1 report
-
The validation logic for the same setting was duplicated in two places with different minimum thresholds, so the stricter check could be bypassed through the management function.
-
The validation loop does not track which validators have already voted, so duplicate votes count towards the threshold.
Seen in 1 report