Missing Authorization Affecting @openzeppelin/contracts package, versions >=4.3.0 <4.9.1


Severity

Recommended
0.0
low
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.09% (42nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Missing Authorization vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-OPENZEPPELINCONTRACTS-5672116
  • published8 Jun 2023
  • disclosed8 Jun 2023
  • creditLior Abadi, Joaquin Pereyra

Introduced: 8 Jun 2023

CVE-2023-34234  (opens in a new tab)
CWE-862  (opens in a new tab)

How to fix?

Upgrade @openzeppelin/contracts to version 4.9.1 or higher.

Overview

@openzeppelin/contracts is a library for contract development.

Affected versions of this package are vulnerable to Missing Authorization. By frontrunning the creation of a proposal, an attacker can become the proposer and gain the ability to cancel it. The attacker can do this repeatedly to try to prevent a proposal from being proposed at all.

Note: In order for this attack to succeed, an attacker would need to have prior knowledge of a proposal creation.

Impact:

This issue impacts the Governor contract in v4.9.0 only, and the GovernorCompatibilityBravo contract since v4.3.0.

Workaround

Users unable to upgrade may submit the proposal creation transaction to an endpoint with frontrunning protection.

CVSS Scores

version 3.1