PT-2023-21997

CVE-2023-28836

·

Published

2023-04-03

·

Updated

2023-04-10

Description by

CVSS 4.0
7.5
High
MetricsAV:N/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
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.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-5286-F2RF-35C2
PYSEC-2023-55
Found an issue in the description? Have something to add? Feel free to write us 👾