A sequencer could commit a batch with a fake previous state root that passes validation only at finalisation, allowing them to win challenges against honest challengers and steal deposits, and to halt the chain because the batch cannot be finalised.
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.
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.
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.
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.
During an L1 reorg, the batch stored at a given batchIndex can change, so a challenger who calls challengeState for that index may end up challenging a correct batch instead of the incorrect one they intended. This causes the challenger to lose their challenge stake.
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.
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.
The protocol uses a single fixed-size Merkle tree for all L2-to-L1 withdrawals, and an attacker can fill it by repeatedly sending cheap messages, after which any further withdrawal attempts revert. This permanently blocks all future withdrawals from L2 to L1.
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.
Rollup.sol requires a full batch to fit in a single blob, so a transaction with enough calldata can fill a blob and seal a block alone. An attacker can submit many such transactions to stuff L2 blocks cheaply, blocking other L2 transactions.
The claimCommission function is restricted to current stakers, so once a staker unstakes or is removed, they can no longer claim their previously accrued commissions. This results in a permanent loss of unclaimed rewards.
A malicious sequencer can create many proposals without limit, inflating the proposal ID counter. When a later proposal is executed, the pruning loop iterates over all previous proposals and runs out of gas, preventing any proposal execution.
The onDropMessage function in the L1ReverseCustomGateway contract attempts to refund tokens by transferring them, but since tokens are burned on deposit, the contract lacks the tokens to transfer. This prevents users from recovering their tokens after a failed deposit.
MO
MorphL2
High
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.