CVE-2021-39167CWE-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 hides in the OpenZeppelin TimelockController! An actor with the executor role can elevate their power without breaking a sweat. 😱 Think of the executor role as a restaurant's head chef — if they have too much control, they can whip up anything they like without the owner's approval. This vulnerability is like a rogue chef who suddenly decides to change the menu completely, potentially serving up chaos! If exploited, this vulnerability could allow malicious actors to take over critical operations in your smart contracts, leading to unauthorized changes and possibly draining funds. Imagine a chef not just reworking the menu but also pocketing the tips — absolutely devastating!

Put simply

Think of the executor role as a restaurant's head chef — if they have too much control, they can whip up anything they like without the owner's approval. This vulnerability is like a rogue chef who suddenly decides to change the menu completely, potentially serving up chaos! This flaw lets an actor with the executor role bypass intended privilege checks, opening the door for unauthorized actions within the smart contract framework, specifically the TimelockController.

What to do

If exploited, this vulnerability could allow malicious actors to take over critical operations in your smart contracts, leading to unauthorized changes and possibly draining funds. Imagine a chef not just reworking the menu but also pocketing the tips — absolutely devastating! To mitigate this risk, revoke the executor role from any accounts not under your team's control. Make sure to keep at least one proposer and executor intact, otherwise, you might find your kitchen in complete disarray! You've got this! Implement those changes, and you'll ensure your smart contracts stay safe and sound. 🛡️

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