Skip to content
Access control Write-up Intermediate

This CVE Has Only 5 Reports on HackerOne — But a 94% Chance of

Metabase instances that were deployed before the CVE-2023-38646 patch may still have a valid setup token exposed via an unauthenticated API endpoint, allowing an attacker to create a new admin account. The text claims this can lead to full administrative access and potential access to sensitive data such as patient records in healthcare deployments.

Alareqi Follow

Published on medium.com

In April 2023, Metabase dropped a bombshell: CVE-2023–38646, a pre-auth RCE affecting their open-source analytics platform. The patch came fast, the CVE got its 9.8 CVSS score, and security teams moved on.

Alareqi, on medium.com

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

Likely the setup token was not invalidated after initial setup, and the patch for CVE-2023-38646 did not automatically revoke existing tokens on already-deployed instances.

Impact

An attacker could create an admin account and potentially access sensitive data, including patient records in healthcare deployments, though the text does not provide evidence of actual exploitation.

What the attacker needed

Metabase instance deployed before v0.46.6.1; Setup token not rotated after patch; Publicly accessible instance

The fix

The setup token should be invalidated after setup, and existing tokens should be revoked; the text suggests restarting with an empty setup token environment variable or rotating the token via the admin panel.

How it was found

  1. Request the public properties endpoint to retrieve the setup token.
  2. Send a POST request to the setup endpoint with only the token to check if it is accepted.
  3. If the server responds with missing field errors instead of an authentication error, send a full setup request including the token and new admin user details.
  4. Log in with the newly created admin account and access the system.

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.

When you first set up Metabase, it creates a temporary secret token to let you create the first admin account. Normally this token should stop working after setup, but in some older installations it remains valid and can be seen by anyone. An attacker who finds this token can use it to create their own admin account and take over the system.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by Alareqi

View all

3 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.