Skip to content
SQL injection Write-up Intermediate

Metabase: Unauthenticated SQL injection in password reset (CVSS 10.0)

An unauthenticated SQL injection in the password reset endpoint allows an attacker to inject arbitrary SQL into the Metabase application database, potentially gaining administrator access. Metabase has confirmed active exploitation of this vulnerability.

github.com

Published on github.com

This is a CRITICAL vulnerability that allows an unauthenticated remote attacker to inject arbitrary SQL into the Metabase application database, which can give them administrator access to the instance. From there, the attacker could change the application configuration, steal stored credentials for the connected…

The author, on github.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 password reset endpoint passed user-supplied input directly into a SQL query without proper parameterisation or sanitisation.

Impact

An attacker could gain administrator access, change configuration, steal stored database credentials, read any data accessible through those connections, and export data; Metabase has confirmed active exploitation.

What the attacker needed

Publicly accessible reset endpoint; no authentication needed

The fix

Upgrade to a patched version; if unable to upgrade immediately, block the password reset endpoint as a temporary workaround.

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.

SQL injection is when user input is inserted into a database query without proper handling, letting an attacker change the query's meaning. Here, the password reset feature accepted input that was used in a database query, so an attacker could run their own database commands without logging in. This could let them take over the Metabase instance and access connected data.

What is SQL injection?

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.

Similar reports

View all

Same bug class and techniques, clearest first.

SQL injection

The lesson behind this report.

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.