Incorrect Authorization Affecting winter/wn-dusk-plugin package, versions <2.1.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (12th percentile)

Do your applications use this vulnerable package?

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 applications

Snyk Learn

Learn about Incorrect Authorization vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-WINTERWNDUSKPLUGIN-6613063
  • published14 Apr 2024
  • disclosed12 Apr 2024
  • creditUnknown

Introduced: 12 Apr 2024

CVE-2024-32003  (opens in a new tab)
CWE-863  (opens in a new tab)

How to fix?

Upgrade winter/wn-dusk-plugin to version 2.1.0 or higher.

Overview

Affected versions of this package are vulnerable to Incorrect Authorization due to the plugin being misconfigured in certain installations. Specifically, the plugin introduces special routes for testing purposes that, if exposed publicly, can be exploited to bypass user authentication mechanisms for accessing backend or user accounts without proper credentials. This vulnerability hinges on the plugin being publicly accessible and its test cases being executed with live data. This plugin must be utilized solely in development environments, as recommended, to mitigate potential exploitation.

Note

This will only affect users in which the Winter CMS installation meets ALL the following criteria:

  1. The Dusk plugin is installed in the Winter CMS instance.

  2. The application is in production mode (ie. the debug config value is set to true in config/app.php).

  3. The Dusk plugin's automatic configuration has been overridden, either by providing a custom .env.dusk file or by providing custom configuration in the config/dusk folder, or by providing configuration environment variables externally.

  4. The environment has been configured to use production data in the database for testing, and not the temporary SQLite database that Dusk uses by default.

  5. The application is connectable via the web.

CVSS Scores

version 3.1