Skip to content
RCE Write-up Advanced

Apache Superset Part II: RCE, Credential Harvesting and More

Apache Superset allowed privileged users to connect to its own metadata database through SQLLab, bypassing safeguards, and stored some configuration data using Python pickle. An attacker with admin access could read or write the metadata database, harvest credentials, and achieve remote code execution by inserting a malicious pickle payload.

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

Likely the application allowed privileged users to connect to its own metadata database and used Python pickle for storing configuration, which is unsafe when an attacker can write to the store.

Impact

An attacker with admin access could harvest credentials and achieve remote code execution on the Superset server; the text notes that some attacks are also possible with a non-admin account if the user has the right permissions.

What the attacker needed

Admin privileges or equivalent permissions; ability to use SQLLab; write access to metadata database

How it was found

  1. Generate a dashboard permalink from the UI.
  2. Generate a malicious pickle payload to run an arbitrary payload.
  3. Use SQLLab to write the malicious pickle payload into the key_value table of the metadata database.
  4. Browse to the permalink to trigger loading the malicious pickle, leading to remote code execution.

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.

Apache Superset is a tool for exploring data. It keeps its own settings and user accounts in a database called the metadata database. The report shows that an admin user could trick Superset into connecting to that database, read passwords, and even run their own code on the server by storing a harmful object that Superset later loads.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

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.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.