Code4rena
Mochi contest
Every publicly disclosed report for Mochi contest and what kind of bugs they were.
- disclosed reports
- 28
- most reported class
- Business logic
- bug classes found
- 5
- first disclosure
- 2021
Disclosed reports
Newest first. Only what Mochi contest chose to make public.
-
ReferralFeePoolV0.sol#claimRewardAsMochi() Array out of bound exception
DoS High Audit finding
-
Anyone can extend withdraw wait period by depositing zero collateral
Business logic High Audit finding
-
treasury is vulnerable to sandwich attack
Business logic High Audit finding
-
Changing NFT contract in the MochiEngine would break the protocol
Business logic High Audit finding
-
feePool is vulnerable to sandwich attack.
Smart contracts High Audit finding
-
Tokens Can Be Stolen By Frontrunning VestedRewardPool.vest() and VestedRewardPool.lock()
Race condition High Audit finding
-
liquidation factor < collateral factor for Sigma type
Business logic Medium Audit finding
-
A malicious user can potentially escape liquidation by creating a dust amount position and trigger the liquidation by themself
Business logic Medium Audit finding
-
Unchecked ERC20 transfer calls
Smart contracts Medium Audit finding
-
Chainlink’s latestRoundData might return stale or incorrect results
Medium Audit finding
-
Changing engine.nft contract breaks vaults
Business logic Medium Audit finding
-
griefing attack to block withdraws
Business logic Medium Audit finding
-
Improper Validation Of create2 Return Value
Smart contracts Medium Audit finding
-
MochiTreasuryV0.withdrawLock() Is Callable When Locking Has Been Toggled
Business logic Medium Audit finding
-
MochiTreasuryV0.sol Is Unusable In Its Current State
Business logic Medium Audit finding
-
Liquidation will never work with non-zero discounts
Smart contracts High Audit finding
-
UniswapV2/SushiwapLPAdapter update the wrong token
DoS Medium Audit finding
-
Debt accrual is path-dependant and inaccurate
Business logic Medium Audit finding
-
registerAsset() can overwrite _assetClass value
Business logic High Audit finding
-
debts calculation is not accurate
Business logic High Audit finding
-
Referrer can drain ReferralFeePoolV0
Business logic High Audit finding
-
treasuryShare is Overwritten in FeePoolV0._shareMochi()
Business logic High Audit finding
-
regerralFeePool is vulnerable to MEV searcher
Business logic Medium Audit finding
-
Vault fails to track debt correctly that leads to bad debt
Business logic High Audit finding
-
UniswapV2TokenAdapter does not support Sushiswap-only assets
Business logic Medium Audit finding
-
borrow function will borrow max cf when trying to borrow > cf
Business logic Medium Audit finding
-
anyone can create a vault by directly calling the factory
Access control Medium Audit finding