Baradika

#4281of 56,330
64.5Total CVSS
Vulnerabilities · 9
Medium
5
High
3
Critical
1
PT-2026-80755
5.4
2026-08-20
Unknown · Winter Cms · CVE-2026-54256
**Name of the Vulnerable Software and Affected Versions** Winter CMS versions prior to 1.2.13 **Description** The backend `FileUpload` form widget improperly trusts the `file id` POST parameter when resolving attachments. The `getFileRecord()` function resolves the provided ID against the global `system files` table without verifying if the file belongs to the widget's relation, parent record, or deferred-binding session. Since attachment IDs are sequential integers and easily enumerated, any authenticated backend user can target arbitrary attachment records. This allows an attacker to modify the `title` and `description` via the `onSaveAttachmentConfig` function, change the sort order via the `onSortAttachments` function, or access records through `onLoadAttachmentConfig` and `onRemoveAttachment`. Exploitation requires a valid authenticated backend session. **Recommendations** Update Winter CMS to version 1.2.13 or later. As a temporary mitigation, manually modify `modules/backend/formwidgets/FileUpload.php` by replacing `$this->getRelationModel()->find(post('file id'))` with `$this->getRelationObject()->withDeferred($this->sessionKey)->find(post('file id'))` in the `getFileRecord()` function, and filter the posted `sortOrder` IDs in the `onSortAttachments()` function to include only those returned by `$this->getRelationObject()->withDeferred($this->sessionKey)->pluck($keyName)` before calling `setSortableOrder()`.