Rapid7 Vulnerability & Exploit Database

Rancher Authenticated API Credential Exposure

Back to Search

Rancher Authenticated API Credential Exposure



An issue was discovered in Rancher versions up to and including 2.5.15 and 2.6.6 where sensitive fields, like passwords, API keys and Ranchers service account token (used to provision clusters), were stored in plaintext directly on Kubernetes objects like Clusters, for example cluster.management.cattle.io. Anyone with read access to those objects in the Kubernetes API could retrieve the plaintext version of those sensitive data.


  • h00die
  • Florian Struck
  • Marco Stuurman


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