Rapid7 Vulnerability & Exploit Database

Apache Superset Signed Cookie Priv Esc

Back to Search

Apache Superset Signed Cookie Priv Esc

Disclosed
04/25/2023
Created
09/13/2023

Description

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 and retrieve database credentials saved in Apache Superset.

Author(s)

  • h00die
  • paradoxis
  • Spencer McIntyre
  • Naveen Sunkavally

Development

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use auxiliary/gather/apache_superset_cookie_sig_priv_esc
msf auxiliary(apache_superset_cookie_sig_priv_esc) > show actions
    ...actions...
msf auxiliary(apache_superset_cookie_sig_priv_esc) > set ACTION < action-name >
msf auxiliary(apache_superset_cookie_sig_priv_esc) > show options
    ...show and set options...
msf auxiliary(apache_superset_cookie_sig_priv_esc) > run 

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;