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 4,201 to 4,250 of 5,700
  1. The quantity limit was enforced only in the browser interface with no server-side validation of the cart contents.

    Seen in 1 report
  2. The query sorts and pages only by a non-unique field with no tie-breaking key, and the cursor advances with a strict greater-than filter, so tied rows can never be returned.

    Seen in 1 report
  3. The questionnaire endpoint trusts a client-supplied program handle and does not verify the user left that program.

    Seen in 1 report
  4. The queue comparison uses a strict less-than check, so equal-priced bids are not treated as equal.

    Seen in 1 report
  5. The queue function increments the wrong counters, likely a copy-paste slip.

    Seen in 1 report
  6. The queue ordered bids by exact cross-multiplication while the claim check used a rounded price, so equal rounded prices were treated inconsistently.

    Seen in 1 report
  7. The queue records the initial balance of the unbonding delegation instead of the actual balance after slashing.

    Seen in 1 report
  8. The queue uses the last entry's availability time as a floor even when that entry was cancelled.

    Seen in 1 report
  9. The queueing code set the proposal's executed flag to true, so the execute state check saw Executed instead of Queued.

    Seen in 1 report
  10. The quit function does not validate that the array of ERC20 token addresses contains no duplicates.

    Seen in 1 report
  11. The quit period is read at execution time rather than fixed when the change is proposed.

    Seen in 1 report
  12. The quorum check sums against and abstain votes instead of all votes cast.

    Seen in 1 report
  13. The quorum was computed dynamically from the active validator count with no hard minimum, and releases needed no source-chain proof.

    Seen in 1 report
  14. The rage quit function did not deduct the distribution fee applied during normal distributions.

    Seen in 1 report
  15. The rage quit function only handled ETH and ERC20 and lacked ERC1155 transfer logic.

    Seen in 1 report
  16. The raise target percentage is not reset after rebalancing and the setter does not allow setting it to zero.

    Seen in 1 report
  17. The ranking algorithm does not filter out points from demo programs.

    Seen in 1 report
  18. The rate calculation assumes supply minus debt equals available liquidity and never subtracts the separately stored deficit or checks the actual token balance.

    Seen in 1 report
  19. The rate is calculated from utilisation after adding only the new loan amount, so splitting lowers the average rate.

    Seen in 1 report
  20. The rate limit applied only to invalid password attempts, so valid attempts bypassed the counter.

    Seen in 1 report
  21. The rate limit key is the raw phone number string rather than a normalised number, so formatting changes produce new keys.

    Seen in 1 report
  22. The rate limit keyed on the raw email string rather than the normalised account identity.

    Seen in 1 report
  23. The rate limit keyed on the raw email string while the login lookup normalised or trimmed it.

    Seen in 1 report
  24. The rate limit was applied per endpoint rather than globally across all OTP-sending endpoints.

    Seen in 1 report
  25. The rate limit was applied per User-Agent value rather than per user or IP address.

    Seen in 1 report
  26. The rate limit was implemented only in the application's own reset endpoint and not in the parallel identity-provider flow.

    Seen in 1 report
  27. The rate limit was keyed only on client IP rather than on the targeted account.

    Seen in 1 report
  28. The rate limit was keyed only on source IP address.

    Seen in 1 report
  29. The rate limiter counted requests sequentially and did not account for parallel bursts in a short window.

    Seen in 1 report
  30. The rate limiter counts requests rather than individual credential attempts.

    Seen in 1 report
  31. The rate limiter is keyed only on the username and password pair, so changing the username avoids the counter.

    Seen in 1 report
  32. The rate limiter keyed on a client-supplied forwarding header instead of the real connection address.

    Seen in 1 report
  33. The rate limiter keyed on a client-supplied forwarding header instead of the real connection address.

    Seen in 1 report
  34. The rate limiter keyed on the full request path including the query string, so any added parameter produced a fresh counter.

    Seen in 1 report
  35. The rate limiter keyed on the raw URL path rather than the normalised path, so path variants were treated as distinct endpoints.

    Seen in 1 report
  36. The rate limiter keys on a client-supplied forwarding header instead of a trusted source address or a per-account counter.

    Seen in 1 report
  37. The rate limiter relied on mutable request attributes or client-supplied data rather than an immutable identifier such as the target email address.

    Seen in 1 report
  38. The rate limiter relied on the client-supplied X-Forwarded-For header to identify the source IP.

    Seen in 1 report
  39. The rate limiter reset after a short period and allowed a few attempts before blocking again.

    Seen in 1 report
  40. The rate limiter tracked attempts per username only, with no limit per IP address or session, so rotating usernames avoided it.

    Seen in 1 report
  41. The rate limiter used a fixed counter that reset after a short block period, creating a repeating allow and block cycle.

    Seen in 1 report
  42. The rate limiting tracked clone and download actions but not fork actions.

    Seen in 1 report
  43. The rate update returns early when the timestamp matches the last update, so a same-block default is not reflected.

    Seen in 1 report
  44. The rate-limit check runs after the database writes it should gate and is keyed on the recipient address rather than the authenticated caller.

    Seen in 1 report
  45. The rate-limit key is built from the normalised email address alone with no account identifier.

    Seen in 1 report
  46. The rate-limit key was built from the raw unnormalised email input, so a trailing space produced a new key for the same account.

    Seen in 1 report
  47. The rate-limit rule exempted localhost and trusted a client-supplied header to determine the source IP.

    Seen in 1 report
  48. The rate-limit timer was based on the device's local clock rather than a trusted server clock or monotonic counter.

    Seen in 1 report
  49. The rate-limiting logic does not validate that the cost of a query is positive, so negative costs are subtracted from the used quota, effectively increasing the remaining allowance.

    Seen in 1 report
  50. The rating link in the email did not expire and remained valid indefinitely.

    Seen in 1 report