CVE-2023-27524
Python vulnerability analysis and mitigation

Overview

CVE-2023-27524 affects Apache Superset versions up to and including 2.0.1, involving an insecure default configuration vulnerability. The issue stems from installations that have not modified the default configured SECRET_KEY according to installation instructions, allowing attackers to authenticate and access unauthorized resources. The vulnerability was discovered by Naveen Sunkavally from Horizon3.ai and was publicly disclosed in April 2023 (Horizon3 Research, Hacker News).

Technical details

The vulnerability centers around the use of a default SECRETKEY value in Apache Superset installations. Initially, the SECRETKEY was set to '\x02\x01thisismyscretkey\x01\x02\e\y\y\h', and later changed to 'CHANGEMETOACOMPLEXRANDOMSECRET' in January 2022. The vulnerability received a CVSS v3.1 score of 8.9 (High) from Apache Software Foundation and 9.8 (Critical) from NVD, indicating its severe nature. The SECRET_KEY is used to securely sign session cookies and encrypt sensitive information in the database (NVD).

Impact

The vulnerability's impact is significant, affecting approximately 2,124 out of 3,176 publicly-accessible Superset servers. Successful exploitation allows attackers to gain administrative access, execute remote code, harvest credentials, and compromise connected data. The affected installations include systems across large corporations, small companies, government agencies, and universities (Horizon3 Research).

Mitigation and workarounds

The vulnerability was addressed in Apache Superset version 2.1, released on April 5, 2023, which prevents the server from starting if configured with a default SECRETKEY. Users must generate a unique secure random SECRETKEY and configure it in their 'supersetconfig.py' file or set it using the 'SUPERSETSECRETKEY' environment variable. Additionally, since sensitive information is encrypted with the SECRETKEY, data must be re-encrypted with the new key after changing it (Horizon3 Research).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management