description: In Kubernetes v1.12.0-v1.12.4 and v1.13.0, the rest.AnonymousClientConfig() method returns a copy of the provided config, with credentials removed (bearer token, username/password, and client certificate/key data). In the affected versions, rest.AnonymousClientConfig() did not effectively clear service account credentials loaded using rest.InClusterConfig()
problem types: CWE-271 Privilege Dropping / Lowering Errors
affected:
{
product: Kubernetes
vendor: Kubernetes
versions:
lessThanOrEqual: v1.12.4, status: affected, version: v1.12, versionType: custom
lessThanOrEqual: v1.13.0, status: affected, version: v1.13, versionType: custom
}
metrics:
cvssV3_0: [
attackComplexity: HIGH
attackVector: NETWORK
availabilityImpact: NONE
baseScore: 3.1
baseSeverity: LOW
confidentialityImpact: LOW
integrityImpact: NONE
privilegesRequired: LOW
scope: UNCHANGED
userInteraction: NONE
vectorString: CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N
version: 3.0
]
workarounds: Clear the config.WrapTransport and config.Transport fields in addition to calling rest.AnonymousClientConfig()