Hunt prep
Before you test JOJO Exchange
What 14 disclosed reports say about JOJO Exchange: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing
Not written yet for this program. The numbers below are up to date.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Business logic lesson | 11 | 0 | – | – | $0 |
| Access control lesson | 1 | 0 | – | – | $0 |
| DoS lesson | 1 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
JUSD borrow fee rate is less than it should be
The formula should be changed to subtract the fee from the borrowed amount, and the initial rate should be set to zero.
Disclosed
-
FlashLoanLiquidate.JOJOFlashLoan has no slippage control when swapping USDC
The fix was applied to make FlashLoanLiquidate.JOJOFlashLoan validate minReceived when swapping.
Disclosed
-
It's possible to reset primaryCredit and secondaryCredit for insurance account
The fix was to change the order of operations so that clearing bad debt on the insurance account leaves its debt unchanged.
Disclosed
-
UniswapPriceAdaptor fails after updating impact
The fix changes the newImpact parameter from uint32 to uint256, as confirmed by the fix link and the comment that the fix looks good.
Disclosed
-
`quoteAllAvailablePoolsWithTimePeriod` can be manipulated with low liquidity pools
The project replaced the function with one that uses a specified subset of pools with sufficient liquidity, and the fix was confirmed.
Disclosed
-
Lack of burn mechanism for JUSD repayments causes oversupply of JUSD
A burn mechanism was added so that JUSD repaid is burned, reducing the supply, and the owner can refund excess JUSD.
Disclosed
-
chainlinkAdaptor uses the same heartbeat for both feeds which is highly dangerous
The contract was fixed to use separate heartbeat periods for each feed.
Disclosed
-
GeneralRepay#repayJUSD returns excess USDC to `to` address rather than msg.sender
The excess USDC is now refunded to msg.sender.
Disclosed
-
All allowances to DepositStableCoinToDealer and GeneralRepay can be stolen due to unsafe call
The contracts were fixed by implementing contract whitelists to restrict which contracts can be called.
Disclosed
-
Subaccount#execute lacks payable
The fix was to make execute() payable and add a check to ensure no ETH is left in the contract.
Disclosed
-
Unable to liquidate USDC blacklisted user's loan due to transferring leftover collateral back in USDC
The project said it would allow partial liquidation to avoid the issue; the report also suggested checking the blacklist before opening a loan or letting users withdraw leftover USDC themselves.
Disclosed
-
In over liquidation, if the liquidatee has USDC-denominated assets for sale, the liquidator can buy the assets with USDC to avoid paying USDC to the liquidatee
The project fixed this by banning over-liquidation, as shown in the fix commit.
Disclosed
-
JUSDBank users can bypass individual collateral borrow limits
The withdraw function should use the same safety check (_isAccountSafeAfterBorrow) as the borrow function to enforce per-collateral caps.
Disclosed