Exploit database

Vulnerability

CVE-2023-37941

Apache Superset: Metadata db write access can lead to remote code execution

Vulnerability details

Score
6.6
Severity
medium

CVSS 3.1 · apache

Vector string

CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H

Description

If an attacker gains write access to the Apache Superset metadata database, they could persist a specifically crafted Python object that may lead to remote code execution on Superset's web backend. The Superset metadata db is an 'internal' component that is typically only accessible directly by the system administrator and the superset process itself. Gaining access to that database should be difficult and require significant privileges. This vulnerability impacts Apache Superset versions 1.5.0 up to and including 2.1.0. Users are recommended to upgrade to version 2.1.1 or later.

CVE Program

Exploit source choices

2 sources
Apache Superset Signed Cookie RCE
MSF-linux--http--apache_superset_cookie_sig_rceMetasploitPython / remotePreferred

Apache Superset versions <= 2.0.0 utilize Flask with a known default secret key which is used to sign HTTP cookies. These cookies can therefore be forged. If a user is able to login to the site, they can decode the cookie, set their user_id to that of an administrator, and re-sign the cookie. This valid cookie can then be used to login as the targeted user. From there the Superset database is mounted, and credentials are pulled. A dashboard is then created. Lastly a pickled python payload can be set for that dashboard within Superset's database which will trigger the RCE. An attempt to clean up ALL of the dashboard key values and reset them to their previous values happens during the cleanup phase.

2023-09-06apache_superset_cookie_sig_rce.rb
barroqueiro/cve-2023-37941
GH-eecf24a2441e56e9fc2d8fcd4e33f0b7GitHubUnofficial GitHub source

Exploit on the default cache of superset by using pickle

2023-05-083 files · 1 stars