Hunt prep
Before you test Maple Finance contest
What 8 disclosed reports say about Maple Finance contest: 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 | 5 | 0 | – | – | $0 |
| Access control lesson | 2 | 0 | – | – | $0 |
| Smart contracts 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.
-
Incorrect implementation of Lender can result in lost tokens
The fix was to add a check that the call succeeded and that the returned data length is exactly 32 bytes before decoding.
Disclosed
-
Processes refinance operations may call malicious code by re-created refinancer contract
The project should whitelist allowable refinancer contracts or check the refinancer contract bytecode in _getRefinanceCommitment to prevent address re-creation attacks.
Disclosed
-
Unsafe implementation of fundLoan() allows attacker to steal collateral from an unfunded loan
The fee rates and recipient addresses should be read from an authoritative source rather than from the caller-supplied lender contract, and the sponsor also suggested requiring the principal amount to be greater than zero in postCollateral.
Disclosed
-
Anyone can call closeLoan() to close the loan
The function should be fixed by adding a check that msg.sender is the borrower.
Disclosed
-
makePayment() Lack of access control allows malicious lender to retrieve a large portion of the funds earlier, making the borrower suffer fund loss
The project acknowledged the issue and planned to mitigate it by restricting when payments can be made, rather than simply limiting the caller to the borrower.
Disclosed
-
Potential huge arbitrage opportunities / MPL price decrease
The sponsor planned for pool delegates to atomically liquidate and burn, and to be careful with high-value loans and high collateral lockup, but no fix was implemented before launch.
Disclosed