Rapid7’s 2026 Global Cybersecurity Summit is now available on-demand.Watch sessions.
Rapid7

module

Rancher Authenticated API Credential Exposure

Disclosed
Aug 18, 2022
Created
Apr 19, 2024

Description

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.

Authors

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
...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

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.