Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 453 Bytes

unprotected_setter.md

File metadata and controls

15 lines (11 loc) · 453 Bytes

Unprotected Setter

Configuration

  • Check: pess-unprotected-setter
  • Severity: High
  • Confidence: Medium

Description

The detector sees if a contract contains a setter that changes the contract parameters without modifier protection or access control inside the function.

Vulnerable Scenario

test scenario

Recommendation

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