Data Manager allows unauthenticated deletion of stored data files
Description
The classic Admin integration in Data Manager can process a file-deletion request without requiring an authenticated or authorized administrator. The handler also accepts the state-changing request without a CSRF nonce.
Affected versions
Data Manager 1.4.0 through 1.4.5 are affected on the classic Admin path.
Details
Data Manager registers its onPagesInitialized handler on Admin routes. Classic Admin first selects its login controller for an unauthenticated request, but its HTTP 418 display response is intentionally non-terminal so rendering can continue. Data Manager then checks the original request URI and, when ?delete is present, constructs a file beneath user/data/ and deletes it. The handler does not check admin.data-manager or admin.super, and it does not verify an Admin nonce.
Impact
An unauthenticated requester who knows a data type and filename can delete the corresponding stored data file, including form submission data. A forged request can also trigger deletion in an authenticated administrator's session. This crosses the anonymous-to-privileged trust boundary and affects data integrity and availability.
Patches
Upgrade to Data Manager 1.4.6 when it is released. The fix requires an authenticated authorized administrator and a valid Admin nonce before deletion.
Credits
Reported by @AlpetGexha.