Role assignment or admin-role wiring lets a lower-privilege account grant itself or others a higher role, or the DEFAULT_ADMIN_ROLE manages a role it should not, enabling escalation.
function grantMinter(address a) external onlyRole(DEFAULT_ADMIN_ROLE) {
_grantRole(MINTER_ROLE, a);
}
Largest recorded losses in the same failure class — related, not the same bug:
The SaferICO scanner runs 201 detectors over your Solidity source, SAFE-0010 among them. Paste an address or the source itself — a small per-scan fee, shown before you sign, or unlimited on any plan.