Security misconfiguration

The default key on two-thirds of servers

No coding error and no exploit chain — just a secret key that shipped with the software, and most installations that never changed it.

Apache Superset is a popular open-source dashboarding tool built on Flask. Like many Flask applications, it keeps the logged-in user in a session cookie signed with a server-side SECRET_KEY. The signature is what stops a visitor editing the cookie to say they are someone else — but only while the key is secret. Superset shipped with a default value, and the installation instructions said to change it.

Horizon3.ai reported the risk to the Superset team in October 2021. In January 2022 the project changed the default and added a warning to the logs. When Horizon3 checked again in February 2023, it found 3,176 Superset instances on the internet, of which 2,124 — about two-thirds — were using one of four known default keys, including keys copied from documentation and a deployment template. What finally changed behaviour was a hard stop: Superset 2.1, released on 5 April 2023, refuses to start with a default key. The CVE followed on 24 April, and CISA added it to its Known Exploited Vulnerabilities catalogue on 8 January 2024.

CVE
CVE-2023-27524
Product
Apache Superset up to and including 2.0.1, where SECRET_KEY was left at a default value.
Class
Insecure default initialisation of a resource (CWE-1188); OWASP Top 10 A05, security misconfiguration.
Severity
CVSS 3.1: 8.9 (High) from Apache; 9.8 (Critical) from NVD.
Timeline
Reported October 2021; log warning added January 2022; enforced in Superset 2.1 on 5 April 2023; CVE published 24 April 2023; added to CISA KEV 8 January 2024.
Fix
Set a unique, random SECRET_KEY, upgrade to 2.1 or later, and re-encrypt stored secrets when rotating, as Superset's documentation describes.

The root cause, in one sentence

The secret that made session cookies unforgeable was published with the software, so anyone who had read the documentation could sign a cookie the server would trust.

Horizon3's write-up describes the consequences on servers not behind single sign-on: forge a session for user ID 1 — almost always the first administrator — and the attacker is in. From there it reported access to connected databases through the SQL interface, harvesting of stored credentials and, in some configurations, code execution. None of that needed a bug in Superset's code. The software did what it was configured to do.

We are not publishing an exploit request. Horizon3.ai's disclosure includes remediation and indicators of compromise. This post is about the bug class and how to test for it safely.

The five shapes security misconfiguration takes

1. Secrets that ship with the software

Session-signing keys, token secrets, encryption keys and API keys in sample configuration files, Docker Compose files, Helm charts and quick-start guides. Copy-and-paste deployments carry them straight into production, which is exactly how two of Superset's four default keys spread.

2. Default accounts

Administrator consoles, monitoring dashboards and embedded databases that arrive with a known username and password. They are usually meant to be changed during setup; on many internet-facing systems they never are.

3. Development features left switched on

Debug modes, interactive consoles, verbose error pages, health and metrics endpoints and API explorers. Each is useful in development and generous to an attacker in production.

4. Permissive defaults around the application

Storage buckets readable by anyone, cross-origin policies that trust any site with credentials, cookies without Secure or HttpOnly, missing security headers. None is a coding error; each is a setting someone did not change.

5. Hardening that exists only in the documentation

“Remember to change this” is not a control. Superset's own history shows the gap: a documented instruction, then a log warning, and the numbers moved only when the software refused to run with the unsafe value.

A warning in a log is not a control. If a setting is unsafe, the safest software fails closed: it will not start until the setting is fixed. When you build software others will deploy, make the insecure path impossible rather than discouraged.

How we test for it

  1. Fingerprint the stack. We identify the frameworks, products and versions an application exposes, because each has its own known defaults.
  2. Check signing keys offline. If the application issues us a signed cookie or token, we test locally whether it verifies against published default keys. That proves the finding without sending a single forged request.
  3. Try known default credentials carefully. On login pages and admin consoles, within the agreed lockout rules, and never against accounts the client has excluded.
  4. Look for development features. Debug pages, consoles, verbose errors, exposed metrics and API documentation that should not be public.
  5. Review the surrounding configuration. Cookie flags, security headers, cross-origin policy and any storage or cloud resources in scope.
  6. Report the precise fix. The finding names the setting and its secure value, and tells you what to rotate if a secret has been exposed.

Configuration findings are only useful if they say exactly what to change. Our reporting approach shows how we write them.

Six things to check in your application this week

  • Search configuration, templates and deployment files for default or sample secrets; generate a unique value for each environment.
  • Make your application refuse to start with an empty or default secret.
  • Rotate any secret that may have been exposed, and re-encrypt data protected by the old key.
  • Remove or disable default accounts, and put administrative interfaces behind single sign-on with multi-factor authentication.
  • Confirm debug modes, consoles and verbose errors are off in production.
  • Review Helm charts, Compose files and infrastructure templates as carefully as application code.

Misconfiguration is the cheapest vulnerability to fix and among the easiest to miss. We check what your deployment actually does, not what the installation guide asked it to do.

Build your quote