Insecure default value for CORS configuration
### Impact The default value for the `CORS_ENABLED` and `CORS_ORIGIN` configuration was set to be very permissive by default. This could lead to unauthorized access in uncontrolled environments when the configuration hasn't been changed. ### Patches The default values for CORS have been changed in https://github.com/directus/directus/pull/12022 which is released under 9.7.0 ### Workarounds Configure the CORS environment variables to match your project's usage, rather than leaving them at the (permissive) defaults. ### For more information If you have any questions or comments about this advisory: * Open an issue in [directus/directus](https://github.com/directus/directus) * Email us at [security@directus.io](mailto:security@directus.io)
beschreibt (1)
Zugehörige CVEs.
| ID | Schweregrad | ausnutzbar | ||
|---|---|---|---|---|
| CVE-2022-26969US | critical9.8 | — | ||
In Directus before 9.7.0, the default settings of CORS_ORIGIN and CORS_ENABLED are true. | ||||
Referenzen
Externe Belege — Patches, Meldungen, Analysen.
- https://developer.mozilla.org/en-US/docs/Web/HTTP/CORSWEB
- https://github.com/directus/directusPACKAGE
- https://github.com/directus/directus/blob/8daed9c41baeaf1d08c1e292bf9f0dcef65e48fb/docs/configuration/config-options.mdWEB
- https://github.com/directus/directus/pull/12022WEB
- https://github.com/directus/directus/releases/tag/v9.7.0WEB
- https://github.com/directus/directus/security/advisories/GHSA-g27j-74fp-xfprWEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-26969ADVISORY
- https://security.snyk.io/vuln/SNYK-JS-DIRECTUS-2441822WEB
Advisories wie diese benennen die exponierten Produkte, die Angreifer auf Ihrer Angriffsfläche ins Visier nehmen. Sehen Sie mit einem kostenlosen Passiv-Scan, was exponiert ist.
Kostenloser Scan