CVE-2023-27524: Apache Superset: Session validation vulnerability when using provided default SECRET_KEY
Exploitation: In the wild · CVSS 8.9 High · Unauthenticated · Published 2023-04-24
Description
Session Validation attacks in Apache Superset versions up to and including 2.0.1. Installations that have not altered the default configured SECRET_KEY according to installation instructions allow for an attacker to authenticate and access unauthorized resources. This does not affect Superset administrators who have changed the default value for SECRET_KEY config. All superset installations should always set a unique secure random SECRET_KEY. Your SECRET_KEY is used to securely sign all session cookies and encrypting sensitive information on the database. Add a strong SECRET_KEY to your `superset_config.py` file like: SECRET_KEY = <YOUR_OWN_RANDOM_GENERATED_SECRET_KEY> Alternatively you can set it with `SUPERSET_SECRET_KEY` environment variable.
Enclave's analysis
Apache Superset 2.0.1 and earlier ship with a default SECRET_KEY that signs session cookies. If an install never changed it, an attacker can forge a session and log in without credentials. CISA lists it as exploited, public exploit entries exist, and EPSS is very high. Set a unique random SECRET_KEY and check for unauthorized access. Exact fixed versions weren't confirmed.
Fix
Apply the vendor's fix or mitigations.
Affected versions
| Product | Vulnerable | Fixed in |
|---|---|---|
| Apache Superset | 0 through 2.0.1 | Not listed |
| Apache Superset Helm chart | Chart versions up to 0.6.3 are listed as affected by OSV | Not listed |