A selfdestruct (or its alias) is reachable from a function with no access control. Anyone can destroy the contract, delete its code, and forward its entire balance to an arbitrary address — an instant, irreversible loss of the contract and its funds.
// contract Victim { function close() public { selfdestruct(payable(msg.sender)); } } // attacker calls close() -> code wiped, remaining ETH sent to attacker.
function kill() external onlyOwner {
selfdestruct(payable(owner()));
}
Incidents this entry cites by name:
Largest recorded losses in the same failure class — related, not the same bug:
The SaferICO scanner runs 201 detectors over your Solidity source, SAFE-0116 among them. Paste an address or the source itself — a small per-scan fee, shown before you sign, or unlimited on any plan.