PyPI: sentry
CVE-2023-36829
Safety vulnerability ID: SFTY-20230706-57987
Safety legacy ID: pyup.io-71984
The Sentry API incorrectly returns the access-control-allow-credentials: true HTTP header if the Origin request header ends with the system.base-hostname option of Sentry installation. This only affects installations that have system.base-hostname option explicitly set, as it is empty by default. The impact is limited since recent versions of major browsers have cross-site cookie blocking enabled by default. However, this flaw could allow other multi-step attacks.
Overview
Sentry CORS misconfiguration
Advisory
The Sentry API incorrectly returns the access-control-allow-credentials: true HTTP header if the Origin request header ends with the system.base-hostname option of Sentry installation. This only affects installations that have system.base-hostname option explicitly set, as it is empty by default. The impact is limited since recent versions of major browsers have cross-site cookie blocking enabled by default. However, this flaw could allow other multi-step attacks.
How to Fix
Mitigation and Workarounds
---
Vulnerable Functions
Functions linked to known vulnerabilities.
References
- https://getsafety.com/vulnerabilities/SFTY-20230706-57987/CVE-2023-36829
- https://github.com/getsentry/sentry/security/advisories/GHSA-4xqm-4p72-87h6
- https://github.com/getsentry/sentry/pull/52276
- https://github.com/getsentry/sentry/commit/19248fb9802c252665b802aeab02fdc65ed47dc9
- https://nvd.nist.gov/vuln/detail/CVE-2023-36829
- https://github.com/getsentry/sentry/commit/ee44c6be35e5e464bc40637580f39867898acd8b
- https://github.com/getsentry/self-hosted/releases/tag/23.6.2
- https://github.com/pypa/advisory-database/tree/main/vulns/sentry/PYSEC-2023-115.yaml
- https://github.com/advisories/GHSA-4xqm-4p72-87h6
Verified by Safety
Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.
Learn more
