The manager withdrawal function enforces a minimum reserve balance, but the ordinary withdraw function does not. A manager could deposit funds, make a manager withdrawal, then withdraw their deposit, draining the contract's balance to zero.
The withdraw limit in the WithdrawHook contract could be bypassed by the first withdrawal in each period because the reset branch did not enforce the limit. A large user could withdraw the entire collateral reserve, leaving other users unable to withdraw their funds until the contract was replenished.
The TokenSender contract silently skips sending owed output tokens when its balance is insufficient, leaving users without compensation for fees. An attacker could drain the contract's balance before a victim's redemption, causing the victim to lose the expected rebate.
The per-account withdrawal limit could be bypassed by transferring the token balance to a second account, which then had its own fresh limit. An attacker could therefore withdraw more than the intended maximum in a single period.
The Collateral contract uses the requested deposit amount rather than the actual amount received when the baseToken deducts a fee on transfer, so the depositor receives more collateral tokens than they should. The DepositRecord and hooks also track incorrect amounts, leading to over-minting of PPO tokens and underpayment of fees.
The redeem function in PrePOMarket checks an account list that only includes certain users, so NFT holders who deposited funds cannot redeem their collateral and withdraw profits. This could lead to a loss of funds for those users.
The mint function of PrePOMarket allowed anyone to mint Short and Long tokens until the governance set a mint hook. An attacker could front-run the setMintHook transaction to mint tokens before access control was enforced.
The contract's setFinalLongPayout function could be called more than once, letting an admin change the final payout after users had already redeemed tokens. If the payout was lowered after some redemptions, the market could hold too little collateral to pay remaining token holders.
The WithdrawHook contract resets the per-user withdrawal limit only for the first user to interact in a new epoch, leaving other users' limits unchanged. A user who has reached their limit in a previous epoch must be the first to withdraw in the next epoch or wait another full epoch, causing a delay in accessing funds.
The TokenShop purchase function read the NFT price from storage at execution time, so an owner price change mined ahead of a user's purchase could make the user pay more than expected. An attacker (the owner) could front-run a purchase in the same block and force the buyer to pay the higher price.
The smart contracts call ERC20 transfer and transferFrom without checking the boolean return value, so tokens that signal failure by returning false instead of reverting are treated as a successful payment. An attacker using such a token could buy sale tokens or NFTs without spending anything, and a user claiming vested tokens could lose them.
The upgradeable abstract contracts SafeAccessControlEnumerableUpgradeable and SafeOwnableUpgradeable lack a storage gap, so if they later add new variables, those variables could overwrite storage in inheriting contracts. An attacker could not directly exploit this, but it could cause storage collisions and unexpected behaviour in upgraded contracts.
Two abstract helper contracts exposed privileged write functions without any access control, relying on inheriting contracts to override them. If an inheriting contract failed to override every write function, anyone could call the unoverridden privileged functions on the deployed contract.
The first depositor can inflate the share price by making a large donation to the strategy controller, causing subsequent depositors to receive zero shares for their deposits. This allows the attacker to steal the deposits of later users.
The withdrawal delay in the Collateral contract can be bypassed because tokens can still be transferred after initiating a withdrawal. An attacker can use multiple accounts to always have one account in a valid withdrawal window, allowing them to withdraw funds at any time, even immediately after purchase.
The createMarket function did not check whether a market with the same name and symbol suffix already existed, so calling it again with the same suffixes overwrote the stored reference to the earlier market. An attacker or careless owner could thereby lose the factory's pointer to a live market.
The documentation stated that an unsettled market would automatically settle at the lower bound of its valuation range after expiry, but the smart contract ignored the expiry date and settled at a 1:1 ratio. Users who relied on the documentation could make trades expecting a different settlement, leading to unexpected swap fees and potential losses.
The getSharesForAmount function returns zero when totalAssets is zero, but the deposit function mints shares equal to the deposit amount when totalSupply is zero. Contracts or frontends using this function to estimate deposits will get an incorrect value.
The SingleStrategyController's migrate function does not check that the new strategy uses the same base token as the old one. If the owner accidentally migrates to a strategy with a different base token, the transferred funds become stuck and effectively lost.
When migrating between strategies, if the old strategy cannot withdraw the full amount, tokens remain stuck there. This causes totalValue() to be undervalued, so new depositors receive too many shares, and later withdrawals can overpay them, diluting existing users.
The getter functions getAmountForShares() and getSharesForAmount() use totalAssets(), which includes the contract's base token balance, instead of the strategy controller's total value. An attacker using these functions to calculate shares for a withdrawal could receive less base token than expected, causing fund loss.
PC
prePO contest
Medium
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.