An emergency pause/unpause is public or has no modifier, letting anyone halt (grief) the protocol or, worse, un-pause it during an incident the team is trying to contain.
// function pause() public { _pause(); } // attacker calls pause() repeatedly -> the protocol is frozen at will (DoS).
function pause() external onlyRole(PAUSER_ROLE) { _pause(); }
function unpause() external onlyRole(PAUSER_ROLE) { _unpause(); }
Largest recorded losses in the same failure class — related, not the same bug:
The SaferICO scanner runs 201 detectors over your Solidity source, SAFE-0227 among them. Paste an address or the source itself — a small per-scan fee, shown before you sign, or unlimited on any plan.