CVE-2021-39168CWE-269

TimelockController vulnerability in OpenZeppelin Contracts

Critical · published August 26, 2021

CVSS v3.1
10.0
EPSS
2%
Percentile
75.5
In the wild
Unconfirmed
What it is

🔥 A sneaky privilege escalation flaw in OpenZeppelin’s TimelockController can turn an executor into a superuser—yikes! Imagine a hotel manager giving one of the staff a master key to every room, allowing them to access anything and everything without approval. If that staff member isn’t trustworthy, chaos could ensue! An attacker with the executor role could exploit this vulnerability to elevate their privileges, potentially taking control of critical functionalities within smart contracts. The implications are absolutely devastating: they could manipulate contracts, execute unauthorized actions, or siphon funds!

Put simply

Imagine a hotel manager giving one of the staff a master key to every room, allowing them to access anything and everything without approval. If that staff member isn’t trustworthy, chaos could ensue! In affected versions of OpenZeppelin, the TimelockController lacked proper checks, allowing an actor with the executor role to escalate their privileges and bypass intended restrictions.

What to do

An attacker with the executor role could exploit this vulnerability to elevate their privileges, potentially taking control of critical functionalities within smart contracts. The implications are absolutely devastating: they could manipulate contracts, execute unauthorized actions, or siphon funds! To mitigate this issue, revoke the executor role from any accounts that aren't strictly controlled by your team. Be sure to keep at least one proposer and executor after making changes to avoid disrupting operations. Check for updates from OpenZeppelin for additional guidance! You can tackle this! Follow these steps, and you’ll have your smart contracts secured in no time. 🛡️

The record
Technical detail
CVSS v3.1
10.0 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01590 · 75.5th percentile
Weakness
CWE-269 · Improper Privilege Management
Published
2021-08-26T23:35Z
EPSS history
Timeline
  • 26 AUG 23:35Z
    TimelockController vulnerability in OpenZeppelin Contracts
    cvelistv5