Rapid7 Vulnerability & Exploit Database

Grafana 2.0 through 5.2.2 authentication bypass for LDAP and OAuth

Back to Search

Grafana 2.0 through 5.2.2 authentication bypass for LDAP and OAuth

Disclosed
08/14/2019
Created
04/20/2020

Description

This module generates a remember me cookie for a valid username. Through unpropper seeding while userdate are requested from LDAP or OAuth it's possible to craft a valid remember me cookie. This cookie can be used for bypass authentication for everyone knowing a valid username.

Author(s)

  • Rene Riedling
  • Sebastian Solnica

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/admin/http/grafana_auth_bypass
msf auxiliary(grafana_auth_bypass) > show actions
    ...actions...
msf auxiliary(grafana_auth_bypass) > set ACTION < action-name >
msf auxiliary(grafana_auth_bypass) > show options
    ...show and set options...
msf auxiliary(grafana_auth_bypass) > 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

;