Submitted by ladboy233, also found by csanuragjain
L2GraphTokenGateway.sol#L87
L2GraphToken.sol#L48
L1GraphTokenGateway.sol#L99
BridgeEscrow.sol#L20
Initialize function in L2GraphToken.sol, BridgeEscrow.sol, L2GraphTokenGateway.sol, and L1GraphTokenGateway.sol can be invoked multiple times from the implementation contract. This means a compromised implementation can reinitialize the contract above and become the owner to complete the privilege escalation then drain the users fund.
Usually in Upgradeable contract, an initialize function is protected by the modifier
to make sure the contract can only be initialized once.
the onlyGovernor modifiers result depends on the controller because
We recommend the project use the modifier
to protect the initialize function from being reinitiated
0xean (judge) commented:
pcarranzav (The Graph) confirmed and commented:
Trust (warden) commented:
pcarranzav (The Graph) resolved and commented:
0xean (judge) commented:
Trust (warden) reviewed mitigation:
