Hunt prep
Before you test Malda
What 17 disclosed reports say about Malda: 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 |
| DoS lesson | 3 | 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.
-
Rebalancer can drain market funds via excessive bridge fees
The protocol was fixed by enforcing a maximum allowable fee set by a more trusted admin role and validating the maxFee against that limit.
Disclosed
-
If Across Bridging fails, all funds intended for bridging will become locked
The protocol team fixed this issue by adding a helper function in the Rebalancer contract to rescue returned tokens to the intended market.
Disclosed
-
MixedPriceOracleV4.sol :: getUnderlyingPrice()/getPirce() will not work for some tokens because API3 and EO oracles return prices using different decimals, causing DOS scenario
The decimals from both oracles should be normalised before calculating the difference, and the protocol team fixed this issue in a pull request.
Disclosed
-
Rebalancer can steal funds from markets by sending to custom receiver through Everclear Bridge
The receiver in the bridge parameters is now forced to equal the destination market, and the protocol team fixed this in a pull request.
Disclosed
-
First depositor can brick market by forcing very large borrow rate
The utilisation rate should be bounded to at most 1e18 (100%) to prevent degenerate borrow rate values.
Disclosed
-
Migrator severily underestimates slippage by using underlying instead of shares
The issue was fixed by converting the underlying amount to shares using the exchange rate before passing it as the minimum collateral value.
Disclosed
-
Rebalancer can send to unallowed destination chains through EverclearBridge
The destinations list should be restricted to a single entry equal to the requested chain; the text says this was fixed.
Disclosed
-
The rebalancing system is broken when everclear bridge contract is used
The allowance logic in EverclearBridge should be updated to approve enough amount for the FeeAdapter; the protocol team fixed this issue in a pull request.
Disclosed
-
There is no endpoint for triggering `liquidateExternal` from extension chain to be executed by proof forwarder
The protocol team fixed this issue by adding a liquidate method to mTokenGateway and handling the selector in BatchSubmitter.
Disclosed
-
Wrong direction of rounding in redeem may lead to drain if exchange rate grows large
The division by the exchange rate in redeem should round up; the protocol team fixed this and the reviewer confirmed redeem underlying now rounds up in favour of the protocol.
Disclosed
-
Blacklist can be completely bypassed on outHere endpoint in mTokenGateway
The protocol team fixed this issue by adding a blacklist check on the sender address decoded from the journal data.
Disclosed
-
`EverclearBridge` does not pull tokens from the Rebalancer, causing all rebalancing operations to fail
The EverclearBridge contract was updated to call `safeTransferFrom` and pull the required tokens from the Rebalancer before proceeding with bridging logic.
Disclosed
-
Incorrect transfer size validation after time window reset can lead to rebalancing DoS
The issue was fixed by the protocol team in a pull request.
Disclosed
-
mErc20Host: It is not possible to permissionlessly call "external" endpoints when source chain is Eth mainnet, because l1Inclusion flag cannot be set to true
The team acknowledged the issue but stated it will not be fixed at this time; a future version is planned to address it.
Disclosed
-
Unenforced maxFee and ttl Parameters in sendMsg Function
The protocol team fixed this issue by adding validation to enforce that maxFee and ttl are zero.
Disclosed