Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. winter/wn-backend-module
  4. ›
  5. GHSA-p2ch-c2c3-4xm5

GHSA-p2ch-c2c3-4xm5: Winter: CSRF through AJAX handler names reachable as backend page actions

August 20, 2026

Affected versions of Winter CMS allow a backend AJAX handler to be invoked by a plain top-level GET navigation with no CSRF token. Backend\Classes\Controller::actionExists() accepted any public method on a controller as a page action, so handler-shaped names were never reserved from URL dispatch: an authenticated and authorized request to /backend/system/eventlogs/index_onEmptyLog reached the handler of the same name and truncated the system event log. Backend paths are routed through Route::any, and CSRF validation is skipped for HEAD, GET and OPTIONS requests.

The default SameSite=Lax session cookie is sent on top-level cross-site navigation, so a link on an attacker-controlled page is sufficient — no form, no script and no token. Handler arguments are taken from URL path segments, so the attacker also chooses the target record. Affected handlers across the backend, cms and system modules cover log truncation, resetting settings to their defaults, altering backend user state, and deleting CMS templates. None of them disclose data to the attacker or write attacker-controlled content, so the impact is destructive and state-changing rather than confidential.

To actively exploit this issue, an attacker would need no account of their own, but would need an authenticated backend user holding the relevant permission to follow an attacker-supplied link. The permissions guarding the affected handlers, system.access_logs included, are by default assigned only to the built-in Developer role.

References

  • github.com/advisories/GHSA-p2ch-c2c3-4xm5
  • github.com/wintercms/winter/commit/353b23804dee2acf49fca996c72637040446824f
  • github.com/wintercms/winter/releases/tag/v1.2.14
  • github.com/wintercms/winter/security/advisories/GHSA-p2ch-c2c3-4xm5

Code Behaviors & Features

Detect and mitigate GHSA-p2ch-c2c3-4xm5 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.0.319 before 1.2.14

Fixed versions

  • 1.2.14

Solution

Upgrade to version 1.2.14 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:N/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-352: Cross-Site Request Forgery (CSRF)

Source file

packagist/winter/wn-backend-module/GHSA-p2ch-c2c3-4xm5.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 22 Sep 2026 12:22:06 +0000.