Skip to content

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
Find Mochi contest on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Mochi contest chose to make public.

ReportClassSeverityBountyCVSSVotesDisclosed
ReferralFeePoolV0.sol#claimRewardAsMochi() Array out of bound exception DoS High – – – 23 Nov 2021
Anyone can extend withdraw wait period by depositing zero collateral Business logic High – – – 23 Nov 2021
treasury is vulnerable to sandwich attack Business logic High – – – 23 Nov 2021
Changing NFT contract in the MochiEngine would break the protocol Business logic High – – – 23 Nov 2021
feePool is vulnerable to sandwich attack. Smart contracts High – – – 23 Nov 2021
Tokens Can Be Stolen By Frontrunning VestedRewardPool.vest() and VestedRewardPool.lock() Race condition High – – – 23 Nov 2021
liquidation factor < collateral factor for Sigma type Business logic Medium – – – 23 Nov 2021
A malicious user can potentially escape liquidation by creating a dust amount position and trigger the liquidation by themself Business logic Medium – – – 23 Nov 2021
Unchecked ERC20 transfer calls Smart contracts Medium – – – 23 Nov 2021
Chainlink’s latestRoundData might return stale or incorrect results – Medium – – – 23 Nov 2021
Changing engine.nft contract breaks vaults Business logic Medium – – – 23 Nov 2021
griefing attack to block withdraws Business logic Medium – – – 23 Nov 2021
Improper Validation Of create2 Return Value Smart contracts Medium – – – 23 Nov 2021
MochiTreasuryV0.withdrawLock() Is Callable When Locking Has Been Toggled Business logic Medium – – – 23 Nov 2021
MochiTreasuryV0.sol Is Unusable In Its Current State Business logic Medium – – – 23 Nov 2021
Liquidation will never work with non-zero discounts Smart contracts High – – – 23 Nov 2021
UniswapV2/SushiwapLPAdapter update the wrong token DoS Medium – – – 23 Nov 2021
Debt accrual is path-dependant and inaccurate Business logic Medium – – – 23 Nov 2021
registerAsset() can overwrite _assetClass value Business logic High – – – 23 Nov 2021
debts calculation is not accurate Business logic High – – – 23 Nov 2021
Referrer can drain ReferralFeePoolV0 Business logic High – – – 23 Nov 2021
treasuryShare is Overwritten in FeePoolV0._shareMochi() Business logic High – – – 23 Nov 2021
regerralFeePool is vulnerable to MEV searcher Business logic Medium – – – 23 Nov 2021
FeePoolV0.sol#distributeMochi() will unexpectedly flush treasuryShare , causing the protocol fee cannot be properly accounted for and collected Business logic High – – – 23 Nov 2021
Vault fails to track debt correctly that leads to bad debt Business logic High – – – 23 Nov 2021
UniswapV2TokenAdapter does not support Sushiswap-only assets Business logic Medium – – – 23 Nov 2021
borrow function will borrow max cf when trying to borrow > cf Business logic Medium – – – 23 Nov 2021
anyone can create a vault by directly calling the factory Access control Medium – – – 23 Nov 2021