49.md

September 28, 2022 ยท View on GitHub

Unprotected SELFDESTRUCT Instruction

Description

Due to missing or insufficient access controls, malicious parties can self-destruct the contract.

Remediation

Consider removing the self-destruct functionality unless it is absolutely required. If there is a valid use case, it is recommended to implement a multisig scheme so that multiple parties must approve the self-destruct action.

References:

https://swcregistry.io/docs/SWC-106

Parity Incident

Contents

  1. 1Unprotected SELFDESTRUCT Instruction
  2. 1.1Description
  3. 1.2Remediation
  4. 1.3References: