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


0.0
low
0
10

Snyk CVSS

    Attack Complexity High

    Threat Intelligence

    EPSS 0.07% (29th percentile)
Expand this section
NVD
5.3 medium

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 ID SNYK-JS-OPENZEPPELINCONTRACTS-5672116
  • published 8 Jun 2023
  • disclosed 8 Jun 2023
  • credit Lior Abadi, Joaquin Pereyra

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.