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 2,951 to 3,000 of 5,700
  1. The email-change and account-recovery flow did not tie verification to a token sent to the new address, so submitting the recovery form set the email as verified without proof of ownership.

    Seen in 1 report
  2. The email-change flow did not re-check verification status before allowing token rotation, enforcing it only at creation.

    Seen in 1 report
  3. The email-change flow lacked a re-authentication step, so a logged-in session could change the primary email without the password.

    Seen in 1 report
  4. The email-sending endpoint lacked authentication and allowed arbitrary control over the email content, including the PDF attachment.

    Seen in 1 report
  5. The email-to-ticket system trusts the From header without verifying the sender.

    Seen in 1 report
  6. The email-type restriction was enforced only in the browser or on the initial submission, not re-checked server-side.

    Seen in 1 report
  7. The email-update endpoint lacked a uniqueness check and verification step.

    Seen in 1 report
  8. The embedded form did not check whether the submitted email belonged to a banned user.

    Seen in 1 report
  9. The emergency close requires the position status to be exactly opened, but a minimal close request changes it to close-pending.

    Seen in 1 report
  10. The emergency exit check was not applied to the minting function.

    Seen in 1 report
  11. The emergency function reads the market's live current epoch instead of accepting an explicit epoch.

    Seen in 1 report
  12. The emergency path charges a flat percentage penalty and skips the minimum stake period check.

    Seen in 1 report
  13. The emergencyWithdraw function attempts to pay out WAVAX that is no longer available because it was used to provide liquidity.

    Seen in 1 report
  14. The emission update unconditionally stores the current rewards per second even when it is zero, overwriting the cached non-zero rate.

    Seen in 1 report
  15. The emit function returned zero on a second call in the same week instead of the already-computed emission, and the broker treated zero as the amount.

    Seen in 1 report
  16. The empty-bootstrap branch of the recapitalisation helper is also entered when both principals are zero because of losses and overwrites the preserved senior high-water mark.

    Seen in 1 report
  17. The enabled condition for the offline create button omits the long-payment-ID check the normal send button includes.

    Seen in 1 report
  18. The end condition for the rewards program only applied before unlocking, so zero shares after unlock caused reverts.

    Seen in 1 report
  19. The end time is cached for the update cadence instead of being recalculated whenever rewards or the reward rate change.

    Seen in 1 report
  20. The end-epoch function lacked a check for zero total assets in either vault.

    Seen in 1 report
  21. The end-of-block handler reuses a variable name for timeout challenges, overwriting the discrepancy challenges before they are sent.

    Seen in 1 report
  22. The end-of-vesting check omits the initial release period and cliff and uses only the post-cliff distribution period.

    Seen in 1 report
  23. The end-time check sits inside the else branch and is skipped when first stake time is zero.

    Seen in 1 report
  24. The endorsement check did not charge gas for the storage reads performed by the validation call after the fork.

    Seen in 1 report
  25. The endpoint applied the update regardless of the validation result.

    Seen in 1 report
  26. The endpoint checks whether the target account exists but omits the account status check that other endpoints perform.

    Seen in 1 report
  27. The endpoint did not verify that the supplied contact email belonged to the requester or that a session existed.

    Seen in 1 report
  28. The endpoint had no server-side rate limiting or anti-automation control.

    Seen in 1 report
  29. The endpoint lacked a check that the user already had a school, and token revocation did not invalidate the captured request.

    Seen in 1 report
  30. The endpoint lacked rate limiting or any restriction on the number of requests per user or IP address.

    Seen in 1 report
  31. The endpoint lacks authentication and trusts client-supplied recipient and content fields, and the WAF inspects the raw request before JSON escapes are decoded.

    Seen in 1 report
  32. The endpoint rate-limits by a client-supplied forwarding header instead of the actual connection address.

    Seen in 1 report
  33. The endpoint that adds a dictionary word had no rate limiting or quota on how many words a single user could create.

    Seen in 1 report
  34. The endpoint that updates a room subject had no rate limiting or throttling applied.

    Seen in 1 report
  35. The endpoint trusted a client-supplied sequential user ID without checking account status or applying rate limits.

    Seen in 1 report
  36. The enforcement flag is set after the function body runs, so the tolerance check does not apply during the call.

    Seen in 1 report
  37. The enforcer hardcodes a requirement that recipients support a draft receiver interface.

    Seen in 1 report
  38. The engine computes a capped debt amount but discards it and calls the router with the original amount.

    Seen in 1 report
  39. The engine inherits an unrestricted renounceOwnership while the only function that clears the degraded-mode latch is owner-only, removing the sole recovery path.

    Seen in 1 report
  40. The engine inherits Ownable2Step without overriding renounceOwnership to revert, so the sole caller of the degraded-mode clear and recapitalise functions can be permanently removed.

    Seen in 1 report
  41. The enter function did not check whether the agent was in the DESTROYING state before allowing a new pool entry.

    Seen in 1 report
  42. The enter function lacked a check that the agent's status was not DESTROYING, allowing deposits during the destruction process.

    Seen in 1 report
  43. The entire rounding remainder is assigned to the last holder in an append-ordered array, which any user can control.

    Seen in 1 report
  44. The entropy getter lacks a check that the slots have been initialised.

    Seen in 1 report
  45. The EOA-only assumption ignored that delegation lets an EOA run conditional logic.

    Seen in 1 report
  46. The epoch counter is not incremented when an epoch is queued for settlement.

    Seen in 1 report
  47. The epoch duration was not validated as greater than zero.

    Seen in 1 report
  48. The epoch-end helper returns the first timestamp of the next epoch and the historical balance lookup includes checkpoints at exactly that timestamp.

    Seen in 1 report
  49. The epoch-end path does not account for a sequencer outage spanning the expiry, so an epoch can end without a depeg check.

    Seen in 1 report
  50. The equity snapshot omits signed lifetime VPI and any reserve ownership adjustment, so realised VPI cash flows go to whoever owns the tranches at settlement rather than the cohort that paid.

    Seen in 1 report