Code4rena
prePO contest
Every publicly disclosed report for prePO contest and what kind of bugs they were.
- disclosed reports
- 21
- most reported class
- Business logic
- bug classes found
- 4
- first disclosure
- 2022
Disclosed reports
Newest first. Only what prePO contest chose to make public.
-
Manager can get around min reserves check, draining all funds from Collateral.sol
Business logic Medium Audit finding +13 collaborators
-
A whale user is able to cause freeze of funds of other users by bypassing withdraw limit
Business logic High Audit finding +12 collaborators
-
Users do not receive owed tokens if TokenSender contract cannot cover their owed amount.
Business logic Medium Audit finding +4 collaborators
-
Bypass userWithdrawLimitPerPeriod check
Business logic Medium Audit finding
-
The recipient receives free collateral token if an ERC20 token that deducts a fee on transfer used as baseToken
Business logic Medium Audit finding +6 collaborators
-
PrePO NFT holders will not be able to redeem collateral
Access control Medium Audit finding
-
Frontrunning for unallowed minting of Short and Long tokens
Access control Medium Audit finding +3 collaborators
-
PrePOMarket.setFinalLongPayout() shouldn’t be called twice.
Business logic Medium Audit finding +3 collaborators
-
griefing / blocking / delaying users to withdraw
Business logic High Audit finding +4 collaborators
-
TokenShop: purchase function should add _purchasePrices parameter
Race condition Medium Audit finding
-
Token transfers do not verify that the tokens were successfully transferred
Smart contracts Medium Audit finding
-
No storage gap for upgradeable contracts
Smart contracts Medium Audit finding
-
SafeAccessControlEnumerableCaller and SafeOwnableCaller contracts lack access control
Access control Medium Audit finding
-
First depositor can break minting of shares
Smart contracts High Audit finding
-
Withdrawal delay can be circumvented
Business logic High Audit finding
-
Duplicate _tokenNameSuffix and _tokenSymbolSuffix will incorrectly update current Market
Business logic Medium Audit finding
-
Market expiry behaviour differs in implementation and documentation
Business logic Medium Audit finding
-
getSharesForAmount returns wrong value when totalAssets == 0
Business logic Medium Audit finding
-
SingleStrategyController doesn’t verify that new strategy uses the same base token
Business logic Medium Audit finding
-
Strategy Migration May Leave Tokens in the Old Strategy Impacting Share Calculations
Business logic High Audit finding
-
Wrong formula of getSharesForAmount() can potentially cause fund loss when being used to calculate the shares to be used in withdraw()
Business logic Medium Audit finding