Skip to content
critical Upgradeability No SWC entry CWE-284

Proxy Admin Takeover

SAFE-0036 Upgradeability Checked automatically by the scanner
1

What goes wrong

The proxy admin role (which can upgrade or change admin) is mis-assigned, exposed, or its transfer is unprotected, allowing an attacker to become admin and upgrade to malicious logic.

2

How to fix it

the pattern that is safe
function changeAdmin(address a) external onlyAdmin {
    require(a != address(0)); emit AdminChanged(admin, a); admin = a;
}
Use ProxyAdmin behind a timelock + multisig.
Check your own contract for this

The SaferICO scanner runs 201 detectors over your Solidity source, SAFE-0036 among them. Paste an address or the source itself — a small per-scan fee, shown before you sign, or unlimited on any plan.

Run the scanner See how it is attacked Read the docs