NFTBridge
60,000 USDC
View results
Submission Details
Severity: low
Valid

Unprotected `initialize()`

Summary

The Starklane::initialize() can be called in the implementation contract, if OZ version is prior 4.3.2, this can be a problem.

Vulnerability Details

The bridge contract does not prevent the function Starklane::initialize() being called on the implementation contract.

If OZ version is prior 4.3.2, a hacker can claim the ownership and selfdestruct the contract.

Ref:

Impact

Uninitialized implementation contract can be taken over by an attacker.

Tools Used

vscode

Recommendations

Add a constructor for the bridge and set _initializedImpls[impl] = true, to prevent contract being initiated by hacker.

Updates

Lead Judging Commences

n0kto Lead Judge 9 months ago
Submission Judgement Published
Validated
Assigned finding tags:

finding-initialize-on-implementation

Likelyhood: Low/Medium Impact: Very low, the attacker can at most run the protocol on their side and lead a phishing campaign with an address deployed by Ark.

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.