The smart contract exhibits a significant risk due to its centralized ownership model. A Proof of Concept (PoC) demonstrates how the compromise of the owner's private key can lead to complete control of the contract by an attacker. This vulnerability can have severe implications, including the unauthorized pausing of the bridge and alteration of critical contract parameters.
The contract is vulnerable to owner key compromise as it is not using a multi-sig wallet. If the owner's private key is obtained by an attacker, they gain full control over the contract's functions. This is because a lot of the functions are under the owners control
Add this test to L1TokenBridge.t.sol:
The test above simulates a successfull private key compromise of the owner.
Total Control by Attacker: An attacker with the owner's key can unilaterally make critical decisions, including pausing the bridge or changing signer permissions.
Disruption of Service: Users may experience disruption in services, such as deposit and withdrawal functions, leading to potential financial losses and loss of trust.
Manipulation of Contract Parameters: The attacker can manipulate signers, potentially leading to broader security breaches within the system.
Manual Review
Foundry
Enhance Ownership Model:
Implement a multi-signature mechanism for critical functions, requiring multiple parties to agree on significant changes.
Introduce time locks for sensitive actions, allowing users to react in case of suspicious activities.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.