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 3,801 to 3,850 of 5,700
  1. The mint function lacked an end-time check and the signed hash had no deadline.

    Seen in 1 report
  2. The mint function lacked validation that the base parameter is one of the accepted base tokens.

    Seen in 1 report
  3. The mint function lacks a minimum bound on the initial state.y.

    Seen in 1 report
  4. The mint function lacks the same-block guard that burn has, so debt can be temporarily reduced around a redemption.

    Seen in 1 report
  5. The mint function rejected any receiver with a pending withdrawal request, blocking the top-up path.

    Seen in 1 report
  6. The mint function sets the token URI unconditionally with no check that the token id is new.

    Seen in 1 report
  7. The mint function trusts a user-supplied source address instead of the caller's address.

    Seen in 1 report
  8. The mint function uses the caller's address as owner instead of the supplied owner parameter.

    Seen in 1 report
  9. The mint limit is decreased on mint but not increased on burn.

    Seen in 1 report
  10. The mint loop recalculates the price per NFT without letting the caller bound the total cost.

    Seen in 1 report
  11. The mint loop uses the total token count instead of the per-generation mint count.

    Seen in 1 report
  12. The mint operation did not enforce that the vault balance and reward accounting were updated before new shares were issued.

    Seen in 1 report
  13. The mint pass is not tied to the fighter properties, so the redeemer chooses type and DNA.

    Seen in 1 report
  14. The mint path credits the full base-unit amount while the leaf hash truncates by a scale factor, and the derived miner account cannot sign a direct transfer.

    Seen in 1 report
  15. The mint path does not require at least one property to be configured before a token can be created.

    Seen in 1 report
  16. The mint-from-merging-pool function does not validate custom attributes before creating the fighter.

    Seen in 1 report
  17. The minting functions did not check that the amount to mint was greater than zero, allowing a zero-mint operation when supply was zero.

    Seen in 1 report
  18. The minting logic verifies the Merkle proof but does not validate that the player's generation ID and season ID match the current season.

    Seen in 1 report
  19. The minting pool ratio can be set lower than the top-up ratio, allowing discounted top-ups to be triggered at will.

    Seen in 1 report
  20. The missing validation of the signed amount_collateral parameter allowed a negative value to pass the balance check and invert the balance update.

    Seen in 1 report
  21. The missing-vote count is cached at creation and never recalculated on extension or reward increase.

    Seen in 1 report
  22. The mitigation set a minimum length of two and kept an exclusive upper bound, making the valid range two to nineteen.

    Seen in 1 report
  23. The mobile app and web interfaces did not isolate settings, so changing one overwrote another.

    Seen in 1 report
  24. The mobile app did not check the device block status on the server, so existing sessions were not invalidated.

    Seen in 1 report
  25. The mobile version of the verification endpoint did not enforce the same requirements as the main site.

    Seen in 1 report
  26. The mode switch checks borrowing for the new mode but not repayment, so a position can move into a mode where liquidation is paused.

    Seen in 1 report
  27. The modified safe transfer library omitted the check that the token address contains code, so calls to a non-existent token returned success.

    Seen in 1 report
  28. The modifier relied on tx.origin instead of tracking individual user addresses.

    Seen in 1 report
  29. The modifier variable is declared as a small integer, limiting the random seed to 256 values.

    Seen in 1 report
  30. The move and recover functions do not check that the recipient is not the contract itself, and the receive function mints for any ETH received.

    Seen in 1 report
  31. The multi-invoker fails to adjust the pending position before invalidating the latest position.

    Seen in 1 report
  32. The multi-round deposit function does not validate that each deposit amount is greater than zero.

    Seen in 1 report
  33. The multibuy method lacked the drawing-phase check that the buy method had.

    Seen in 1 report
  34. The multicall path measures the contract's own token balance instead of total supply, so the cap check compares against zero.

    Seen in 1 report
  35. The multiplier for the new lock duration did not account for time already elapsed, so short extensions lowered the share amount.

    Seen in 1 report
  36. The multiplier storage variable was never initialised to a non-zero neutral value, so the above-kink branch always yielded zero.

    Seen in 1 report
  37. The name field had no maximum length and the member management page did not handle very long names gracefully.

    Seen in 1 report
  38. The name length was only checked in the browser, not on the server.

    Seen in 1 report
  39. The name validation used a blocklist of invisible characters that missed one separator.

    Seen in 1 report
  40. The names hook forwarded parameters to the library unchanged, so the default relation set included resolvedAddress, which is not an ownership relation.

    Seen in 1 report
  41. The names query was called without a filter override, so its default set included names that merely resolve to the address, and every returned row was mapped as owned.

    Seen in 1 report
  42. The native fee override returned the input fee instead of the full message value, so extra native tokens were not accounted for.

    Seen in 1 report
  43. The native value was read inside a loop, so the same amount was forwarded on every iteration.

    Seen in 1 report
  44. The native wrapper's gas charge was not updated when the underlying function was changed to perform additional storage reads.

    Seen in 1 report
  45. The NAV snapshot is built from physical assets plus a price-only delta and omits the aggregate non-withdrawable VPI rebate reserve, which is a certain receivable.

    Seen in 1 report
  46. The navigation handler erased only one tracking map entry and did not cancel pending lookups or reset stored history URL and visit time on a 404 commit.

    Seen in 1 report
  47. The negative remaining margin check sits inside the fully-closed branch, so it is skipped when any position remains.

    Seen in 1 report
  48. The neutral price is derived from the current average loan debt, which a single large loan can move.

    Seen in 1 report
  49. The new account transfer function did not check whether the source account was in a flash loan.

    Seen in 1 report
  50. The new average price adds weighted prices instead of dividing total position value by total base amount.

    Seen in 1 report