Thibaud Colas

#13345de 53,639
19.9CVSS total
Vulnerabilidades · 3
Média
2
Alta
1
PT-2023-21997
7.5
2023-04-03
Wagtail · Wagtail · CVE-2023-28836
**Name of the Vulnerable Software and Affected Versions** Wagtail versions 1.5 through 4.1.3 Wagtail versions 1.5 through 4.2.1 **Description** A stored cross-site scripting (XSS) vulnerability exists on ModelAdmin views within the Wagtail admin interface. A user with a limited-permission editor account for the Wagtail admin could potentially craft pages and documents that, when viewed by a user with higher privileges, could perform actions with that user's credentials. The vulnerability is not exploitable by an ordinary site visitor without access to the Wagtail admin, and only affects sites with ModelAdmin enabled. For pages, the vulnerability is in the "Choose a parent page" ModelAdmin view (`ChooseParentView`), available when managing pages via ModelAdmin. For documents, the vulnerability is in the ModelAdmin Inspect view (`InspectView`) when displaying document fields. **Recommendations** For Wagtail versions 1.5 through 4.1.3, update to version 4.1.4 to resolve the issue. For Wagtail versions 1.5 through 4.2.1, update to version 4.2.2 to resolve the issue. As a temporary workaround, site owners who are unable to upgrade to the new versions can disable or override the corresponding functionality. For `ChooseParentView`, disable ModelAdmin for all page models or provide a custom view via `choose parent view class`, with the custom view overriding the `get form` method. For `InspectView`, remove `inspect view enabled=True` or set it to False to disable the view, or use `inspect view fields` or `inspect view fields exclude` to prevent displaying document fields in the views, or provide a custom view via `inspect view class`, with the custom view overriding the `get document field display` method.