Hunt prep
Before you test MorphL2
What 14 disclosed reports say about MorphL2: 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 | 9 | 0 | – | – | $0 |
| DoS lesson | 3 | 0 | – | – | $0 |
| Race condition lesson | 1 | 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.
-
Attacker can freeze chain and steal challenge deposits using fake `prevStateRoot`
The issue was fixed by checking in `commitBatch()` that `prevStateRoot` equals the parent batch header's `postStateRoot`.
Disclosed
-
Sequencer will be underpaid because of incorrect `commitScalar`
The commitScalar should be set to 230_000e9.
Disclosed
-
Batches committed during an on going challenge can avoid being challenged
The protocol team fixed this issue by adjusting the finalization timestamp in commitBatch to account for the remaining challenge time.
Disclosed
-
Malicious challenger can brick `finalizeTimestamp` of unfinalized batches
The protocol should implement safeguards such as a cooldown between challenges, a cap on the maximum extension, or a check to only extend batches that require it.
Disclosed
-
A batch can be unintentionally be challenged during L1 reorg leading to loss of funds
The challengeState function should accept the batch header and verify that the committed batch hash at the index matches the provided header, as done in other functions.
Disclosed
-
Delegators can lose their rewards when a delegator has removed a delegatee and claims all of his rewards before delegating again to a previous removed delegatee
The protocol team fixed this issue in PR #594.
Disclosed
-
In the `revertBatch` function, `inChallenge` is set to `false` incorrectly, causing challenges to continue after the protocol is paused
The issue was fixed by using the batchInChallenge function to verify that the batch is indeed challenged before resetting inChallenge.
Disclosed
-
Attacker can fill merkle tree in `L2ToL1MessagePasser`, blocking any future withdrawals
The protocol should handle a full Merkle tree differently so that a filled tree does not brick the rollup.
Disclosed
-
`Rollup.sol` cannot split batches across blobs, allowing inexpensive block stuffing
The architecture should be changed so that batches can be split across multiple blobs when needed.
Disclosed
-
Stakers lose their commission if they unstake as they cannot claim their pending rewards anymore after unstaking
The protocol team fixed this issue by removing the onlyStaker modifier, allowing anyone to call claimCommission.
Disclosed
-
Malicious sequencer can DoS proposal execution by inflating the amount of proposals to be pruned
The protocol team fixed this issue by implementing a cooldown period between proposal creations.
Disclosed
-
Incorrect implementation of the onDropMessage function in the L1ReverseCustomGateway contract
The fix is to use IMorphERC20Upgradeable(_token).mint(_receiver, _amount) instead of transferring the tokens.
Disclosed