# secret leaks in vsphere cloud controller manager log

vSphere cloud controller manager logged full Secret objects at verbosity 4+, leaking credentials and SA tokens to anyone with pod/log read access.

- Payout: $500
- Severity: medium
- Program: Kubernetes
- Found by (vendor credit): Kaizhe Huang (derek0405)
- Found by: derek0405
- Disclosed: 2020-11-29
- CVE: CVE-2020-8563
- Write-up quality: 6/10
- Original: https://hackerone.com/reports/966383
- Library page: https://bugbountylibrary.com/r/h1%3A966383
- Tags: area:cloud domain:cloud impact:data-leak impact:privesc kind:bounty platform:hackerone sev:medium tech:kubernetes technique:source-review vuln:info-disclosure vuln:secrets-leak

**Target:** Kubernetes legacy vsphere cloud provider (kube-controller-manager) secret informer logging
**Root cause:** The vSphere SetInformers secret event handlers log the entire Secret object at klog level 4+ instead of redacting data, so cleartext secret contents land in controller-manager logs.
**Steps:**
1. Configure vSphere as cloud provider and set kube-controller-manager logging level to 4 or above.
2. Create or update a Secret in the cluster.
3. Read the vsphere cloud controller manager log; the full Secret object (data included) is printed by the informer handlers at vsphere.go L1503/L1527.
**How found:** Code reading of the SetInformers call path (controllermanager.go -> createCloudProvider -> SetInformers) revealed secret event handlers logging the whole object at high verbosity.
**Exploitation:** A user or service account with GET pods/log in kube-system reads the controller-manager logs and harvests all Secrets created/updated, including service account tokens, enabling privilege escalation.
**Escalation:** If a leaked Secret is a service account token, the attacker can impersonate that SA and escalate privileges.
**Insight:** Audit cloud-provider informer event handlers for klog.V(4+) calls that dump whole objects; secrets logged by controllers are reachable by anyone with log-read RBAC, a common low-priv-to-secret path.

