Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-93hq-5wgc-jc82

Опубликовано: 20 апр. 2023
Источник: github
Github: Прошло ревью
CVSS3: 8.8

Описание

GovernorCompatibilityBravo may trim proposal calldata

Impact

The proposal creation entrypoint (propose) in GovernorCompatibilityBravo allows the creation of proposals with a signatures array shorter than the calldatas array. This causes the additional elements of the latter to be ignored, and if the proposal succeeds the corresponding actions would eventually execute without any calldata. The ProposalCreated event correctly represents what will eventually execute, but the proposal parameters as queried through getActions appear to respect the original intended calldata.

Patches

This issue has been patched in v4.8.3.

Workarounds

Ensure that all proposals that pass through governance have equal length signatures and calldatas parameters.

Пакеты

Наименование

@openzeppelin/contracts

npm
Затронутые версииВерсия исправления

>= 4.3.0, < 4.8.3

4.8.3

Наименование

@openzeppelin/contracts-upgradeable

npm
Затронутые версииВерсия исправления

>= 4.3.0, < 4.8.3

4.8.3

EPSS

Процентиль: 44%
0.00219
Низкий

8.8 High

CVSS3

Дефекты

CWE-20

Связанные уязвимости

CVSS3: 6.8
nvd
почти 3 года назад

OpenZeppelin Contracts is a library for secure smart contract development. The proposal creation entrypoint (`propose`) in `GovernorCompatibilityBravo` allows the creation of proposals with a `signatures` array shorter than the `calldatas` array. This causes the additional elements of the latter to be ignored, and if the proposal succeeds the corresponding actions would eventually execute without any calldata. The `ProposalCreated` event correctly represents what will eventually execute, but the proposal parameters as queried through `getActions` appear to respect the original intended calldata. This issue has been patched in 4.8.3. As a workaround, ensure that all proposals that pass through governance have equal length `signatures` and `calldatas` parameters.

EPSS

Процентиль: 44%
0.00219
Низкий

8.8 High

CVSS3

Дефекты

CWE-20