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

exploitDog

github логотип

GHSA-w2v8-php4-p8hc

Опубликовано: 01 мая 2024
Источник: github
Github: Прошло ревью
CVSS3: 2.7

Описание

Wagtail has permission check bypass when editing a model with per-field restrictions through wagtail.contrib.settings or ModelViewSet

Impact

If a model has been made available for editing through the wagtail.contrib.settings module or ModelViewSet, and the permission argument on FieldPanel has been used to further restrict access to one or more fields of the model, a user with edit permission over the model but not the specific field can craft an HTTP POST request that bypasses the permission check on the individual field, allowing them to update its value.

The vulnerability is not exploitable by an ordinary site visitor without access to the Wagtail admin, or by a user who has not been granted edit access to the model in question. The editing interfaces for pages and snippets are also unaffected.

Patches

Patched versions have been released as Wagtail 6.0.3 and 6.1. Wagtail releases prior to 6.0 are unaffected.

Workarounds

Site owners who are unable to upgrade to a patched version can avoid the vulnerability in ModelViewSet by registering the model as a snippet instead. No workaround is available for wagtail.contrib.settings.

Acknowledgements

Many thanks to Ben Morse and Joshua Munn for reporting this issue.

For more information

If you have any questions or comments about this advisory:

Пакеты

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

wagtail

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

>= 6.0.0, < 6.0.3

6.0.3

EPSS

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

2.7 Low

CVSS3

Дефекты

CWE-280

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

CVSS3: 2.7
nvd
почти 2 года назад

Wagtail is an open source content management system built on Django. In affected versions if a model has been made available for editing through the `wagtail.contrib.settings` module or `ModelViewSet`, and the `permission` argument on `FieldPanel` has been used to further restrict access to one or more fields of the model, a user with edit permission over the model but not the specific field can craft an HTTP POST request that bypasses the permission check on the individual field, allowing them to update its value. This vulnerability is not exploitable by an ordinary site visitor without access to the Wagtail admin, or by a user who has not been granted edit access to the model in question. The editing interfaces for pages and snippets are also unaffected. Patched versions have been released as Wagtail 6.0.3 and 6.1. Wagtail releases prior to 6.0 are unaffected. Users are advised to upgrade. Site owners who are unable to upgrade to a patched version can avoid the vulnerability as follo

EPSS

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

2.7 Low

CVSS3

Дефекты

CWE-280