Skip to content
Misconfiguration Write-up Intermediate

CVE-2023-27524: Insecure Default Configuration in Apache Superset Leads to Remote Code Execution

Apache Superset shipped with a default Flask SECRET_KEY, so session cookies could be forged to log in as an administrator. An attacker could then access and modify connected data, harvest credentials and execute remote code.

Naveen Sunkavally Follow

Published on horizon3.ai

Attack Blogs, Disclosures

Naveen Sunkavally, on horizon3.ai

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The application shipped with a hardcoded default SECRET_KEY and relied on users to change it, so session cookies could be signed by anyone who knew the default.

Impact

An attacker could gain admin access, query or modify connected databases, harvest credentials and, depending on configuration, execute remote code; the authors did not test installs behind SSO, where unpredictable user identifiers may make forging harder.

What the attacker needed

Internet-facing Superset instance; default SECRET_KEY in use; no SSO, or a guessable user id

How it was found

  1. Request the Superset login page to obtain a session cookie without logging in.
  2. Pass the cookie through the flask-unsign tool to check whether it was signed with a known default key.
  3. Forge a session cookie with the user identifier set to 1, the first user who is almost always an administrator.
  4. Set the forged cookie in the browser and refresh to access the application as an administrator.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Superset keeps you logged in with a cookie that is signed with a secret key, like a wax seal proving the cookie is genuine. If that key is a well-known default value, anyone can make their own sealed cookie claiming to be the admin. The report found most internet-facing Superset servers still used such a default key.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

More by Naveen Sunkavally

View all

5 more disclosed reports, best first.

More from Apache Superset

View all

The newest disclosed reports for this program.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.