Hunt prep
Before you test Moonwell
What 17 disclosed reports say about Moonwell: 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 | 8 | 0 | – | – | $0 |
| Access control lesson | 4 | 0 | – | – | $0 |
| DoS lesson | 2 | 0 | – | – | $0 |
| Misconfiguration lesson | 2 | 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.
-
Malicious emissionToken could poison rewards for a market
The admin should be able to remove an emission config, or the reward transfer should be wrapped in a try/catch with a gas limit.
Disclosed
-
TemporalGovernor can be bricked by guardian
The report recommends adding whenNotPaused to grantGuardiansPause and overriding renounceOwnership and transferOwnership so ownership changes must go through governance.
Disclosed
-
fastTrackProposalExecution should only be callable when TemporalGovernor is paused
The whenPaused modifier should be added to fastTrackProposalExecution so it can only run while the contract is paused.
Disclosed
-
It’s not possible to liquidate deprecated market
The fix should restore the Compound logic that allows liquidation of deprecated markets by checking if the market is deprecated and, if so, permitting repayment up to the total borrow balance.
Disclosed
-
Incorrect address is set as Wormhole Bridge, which breaks deploy
The WORMHOLE_CORE address should be changed to the correct mainnet address according to the documentation.
Disclosed
-
borrowRateMaxMantissa should be specific to the chain protocol is being deployed to
The value should be adjusted downwards or made configurable per chain to target a reasonable maximum annual borrow rate.
Disclosed
-
A single emissionCap is not suitable for different tokens reward if they have different underlying decimals
The emissionCap should be set per reward token, adapted to each token's decimals.
Disclosed
-
accrueInterest is expected to revert when the rate is higher than the maximum allowed rate, which is possible since the utilization can be more than 1
The report recommends capping the real-time borrow rate at the maximum instead of reverting, and capping the utilisation output at 1e18.
Disclosed
-
Borrower and Supplier rewards accrued could be lost when Admin replaces the reward distributor with a new reward distributor
Before replacing the reward distributor, the admin should distribute all accrued rewards, or the replacement should be blocked until no outstanding rewards remain.
Disclosed
-
Incorrect chainId of Base in deploy script will force redeployment
Change the Base network ID to 8453.
Disclosed
-
Initial deploy won’t succeed because of too high initialMintAmount for USDC market
The maintainer said the issue was already fixed; the recommended approach is to set the initial mint amount per token in the configuration.
Disclosed
-
Borrowers can avoid liquidations, if ERC777 token is configured as an emissionToken
The protocol should disallow ERC777 tokens from being configured as emission tokens, allowing only standard ERC20 tokens.
Disclosed
-
Missing check for the max/min price in the chainlinkOracle.sol contract
The oracle should revert when the answer nears the aggregator's minAnswer or maxAnswer, so stale frozen prices are not consumed; the project acknowledged the issue.
Disclosed
-
excuteProposal can fail due to Wormhole guardian change
The report suggests only verifying the VAA in _executeProposal for fast-tracked proposals, and using the hash of the complete VAA as the key in queuedTransactions to prevent tampering.
Disclosed
-
Only guardian can change guardian
The contract should override transferOwnership to restrict it to governance (msg.sender == address(this)) or to both guardian and governance.
Disclosed