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

exploitDog

github логотип

GHSA-4cpv-669c-r79x

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

Описание

Prevent injection of invalid entity ids for "autocomplete" fields

Impact

Under certain circumstances, an attacker could successfully submit an entity id for an EntityType that is not part of the valid choices.

Affected applications are any that use:

  • A custom query_builder option to limit the valid results; AND
  • An EntityType with 'autocomplete' => true or a custom AsEntityAutocompleteField.

Under this circumstance, if an id is submitted, it is accepted even if the matching record would not be returned by the custom query built with query_builder.

Patches

The problem has been fixed in symfony/ux-autocomplete version 2.11.2.

Workarounds

Upgrade to version 2.11.2 or greater of symfony/ux-autocomplete or perform extra validation after submit to verify the selected option is valid.

Пакеты

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

symfony/ux-autocomplete

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

< 2.11.2

2.11.2

EPSS

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

6.5 Medium

CVSS3

Дефекты

CWE-20

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

CVSS3: 6.5
nvd
больше 2 лет назад

ux-autocomplete is a JavaScript Autocomplete functionality for Symfony. Under certain circumstances, an attacker could successfully submit an entity id for an `EntityType` that is *not* part of the valid choices. The problem has been fixed in `symfony/ux-autocomplete` version 2.11.2.

EPSS

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

6.5 Medium

CVSS3

Дефекты

CWE-20