Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 649 Bytes

SWC-106.md

File metadata and controls

16 lines (10 loc) · 649 Bytes

Title

Unprotected SELFDESTRUCT Instruction

Relationships

CWE-284: Improper Access Control

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