Unprotected Initialize

April 12, 2023 ยท View on GitHub

Configuration

  • Check: pess-unprotected-initialize
  • Severity: High
  • Confidence: Low

Description

The detector sees if a contract contains an initialize function without modifier protection or access control inside the function.

Vulnerable Scenario

test scenario

Recommendation

Add access control and make sure that initialize functions are protected.

Contents

  1. 1Configuration
  2. 2Description
  3. 3Vulnerable Scenario
  4. 4Recommendation