Summary
Winter CMS versions before 1.2.14 can expose import and export operations to authenticated backend users who have general controller access but lack the configured granular permissions. Such users may be able to modify records through import handlers or retrieve data through export handlers and the download action.
Affected context
The issue concerns Winter CMS's ImportExportController authorization flow. It may affect deployments where the controller has granular import or export permissions configured, but AJAX handlers or the download action can be reached without those checks. Controllers without granular permission keys are intentionally default-permissive and are not affected by this specific permission-check gap.
Exploit preconditions
- Attack surface: Authenticated Winter CMS backend endpoints for import and export operations
- Required access: A valid backend session and coarse access through
$requiredPermissions, but not the configured granular import or export permission - Trigger point: Import/export AJAX handlers, or the export download action
- Why exploitation is possible: The relevant handlers and download action can be reached without applying the granular permission check enforced on the import and export page actions
Why this happens
Authorization checks are applied inconsistently across related controller actions. The import() and export() page actions call userHasAccess(), but AJAX handler dispatch occurs before those gated actions, and the separately reachable download() action lacks the granular export check. This is an authorization enforcement gap: access to a protected operation is not consistently checked at every entry point. It maps primarily to CWE-862: Missing Authorization and is also related to CWE-863: Incorrect Authorization.
Potential impact
- An unauthorized backend user could write or overwrite records through import handlers.
- An unauthorized user could retrieve data exposed by the export model.
- Inconsistent access controls could undermine data confidentiality and integrity.
General mitigation guidance
Common defensive patterns include:
- Enforcing the same granular permission checks on every action and handler that performs or enables an import or export.
- Applying authorization checks at the operation boundary, rather than relying only on page-action checks.
- Treating download endpoints and AJAX handlers as independent entry points that require explicit authorization.
- Defaulting to denial when granular permissions are absent or cannot be evaluated, where compatible with the application's access model.
- Limiting backend account privileges and reviewing permission assignments regularly.
How teams detect issues like this
Review controller routes and handler-dispatch paths to confirm that every operation checks the required granular permission, including AJAX handlers and download actions. Static analysis and code review can flag sensitive operations whose authorization checks are missing or occur only in a separate page action. Policy tests can verify that users lacking import or export permissions are denied across all related entry points.

