In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsLearn about Improper Handling of Insufficient Permissions or Privileges vulnerabilities in an interactive lesson.
Start learningUpgrade winter/wn-cms-module to version 1.2.13 or higher.
Affected versions of this package are vulnerable to Improper Handling of Insufficient Permissions or Privileges in the Cms\Controllers\Index process. An attacker can gain unauthorized access to template types and upload assets by crafting AJAX requests with insufficient permission checks. This is only exploitable if the attacker has a backend user account with any single Theme Editor permission (such as cms.manage_pages, cms.manage_partials, cms.manage_layouts, cms.manage_content, or cms.manage_assets).
This vulnerability can be mitigated by manually updating the permission checks in modules/cms/controllers/Index.php to wrap each widget registration with the appropriate hasAccess() check and adding validateRequestType() calls to relevant handlers. Additionally, add a $this->validateRequestTheme() call at the top of the onUpload() method in modules/cms/widgets/AssetList.php.