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.
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:HDescription
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 ProgramExploit source choices
2 sourcesApache Superset Signed Cookie RCE
2023-09-06apache_superset_cookie_sig_rce.rb
barroqueiro/cve-2023-37941
Exploit on the default cache of superset by using pickle
2023-05-083 files · 1 stars