Skip to content

Sherlock

MorphL2

Every publicly disclosed report for MorphL2 and what kind of bugs they were.

disclosed reports
14
most reported class
Business logic
bug classes found
4
first disclosure
2024
Find MorphL2 on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what MorphL2 chose to make public.

Business logic

Sequencer will be underpaid because of incorrect `commitScalar`

The GasPriceOracle contract underprices the cost of calling commitBatch() by a factor of 100, so the l1DataFee paid by users is much less than the true cost to the sequencer. An attacker could repeatedly submit L1-data-heavy transactions to force the sequencer to spend far more on L1 gas than it collects in fees.

MorphL2

High
Smart contracts

The 255th staker in `L1Staking.sol` can avoid getting slashed and inadvertently cause fund loss to stakers

The 255th staker in L1Staking.sol is not included when converting a bitmap to staker addresses because the loop stops at index 254, so slashing that staker instead operates on address(0). This allows the staker to avoid being slashed and continue committing invalid batches, while the challenger still receives a reward, draining the contract's ETH.

MorphL2

Medium
Business logic

Batches committed during an on going challenge can avoid being challenged

Batches committed during an ongoing challenge are not given extra time to be challenged, so they can be finalized immediately after the challenged batch is resolved, leaving no window for challengers to dispute them. This could allow invalid batches to be finalized, potentially bricking the L2 protocol.

MorphL2

Medium
Business logic

Malicious challenger can brick `finalizeTimestamp` of unfinalized batches

The challengeState function extends the finalization timestamp of all unfinalized batches by the proof window without any cap. A malicious challenger can repeatedly challenge and immediately prove batches, causing the finalization of other batches to be delayed by many days.

MorphL2

Medium
Business logic

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

A delegator who removes delegatees and then claims all rewards may not receive rewards from all delegatees because the loop iterates over a shrinking set. If the delegator later delegates again to a previously removed delegatee, any unclaimed rewards from that delegatee become permanently unclaimable.

MorphL2

Medium
Business logic

In the `revertBatch` function, `inChallenge` is set to `false` incorrectly, causing challenges to continue after the protocol is paused

The revertBatch function incorrectly sets the inChallenge flag to false when reverting batches that are not under challenge, because it checks a challenge's finished status without verifying the challenge exists. This can cause an ongoing challenge to be invalidated, and if the protocol is then paused, the prover may be slashed despite the batch being valid.

MorphL2

Medium
Business logic

Possible wrong accounting in L1Staking.sol

A staker can commit a wrong batch and then withdraw their stake before the challenge period ends, so when the batch is later proven invalid the slashing has no effect and the contract's accounting becomes incorrect. This could lead to a shortfall where the last withdrawal reverts because the contract holds less ETH than it accounts for.

MorphL2

Medium