Skip to content

Code4rena

The Graph L2 bridge contest

Every publicly disclosed report for The Graph L2 bridge contest and what kind of bugs they were.

disclosed reports
4
most reported class
Access control
bug classes found
2
first disclosure
2022
Find The Graph L2 bridge contest on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what The Graph L2 bridge contest chose to make public.

Access control

Initialize function in L2GraphToken.sol , BridgeEscrow.sol , L2GraphTokenGateway.sol , L1GraphTokenGateway.sol can be invoked multiple times from the implementation contract

The initialize functions in four upgradeable contracts lack the initializer modifier, allowing them to be called multiple times from the implementation contract. If the implementation contract is compromised, an attacker could reinitialize the contracts, become the governor, and drain GRT tokens from BridgeEscrow.

The Graph L2 bridge contest

Medium
Access control

Governor can rug pull the escrow

The governor of the BridgeEscrow contract can approve any address to spend all GRT tokens held in escrow, allowing the governor to steal all escrowed funds. This centralisation risk means users must trust the governor not to take the tokens.

The Graph L2 bridge contest

Medium
Business logic

If L1GraphTokenGateway’s outboundTransfer is called by a contract, the entire msg.value is blackholed, whether the ticket got redeemed or not

The outboundTransfer function in L1GraphTokenGateway passes the caller's address as the refund address for Arbitrum retryable tickets. If a contract (such as a multisig) calls the function, any refunded ETH may be sent to an address on L2 that cannot access or move the funds, effectively blackholing the value.

The Graph L2 bridge contest

Medium