Overview

FieldValue
ID1022
NameRead ConfigMaps cluster-wide
Risk CategoryInformation Disclosure
Risk LevelHigh
Role TypeClusterRole
API Groupscore
Resourcesconfigmaps
Verbsget, list, watch
TagsConfigMapAccess DataExposure InformationDisclosure

Description

Grants access to read all ConfigMaps across all namespaces. ConfigMaps can store non-sensitive configuration data but may sometimes inadvertently contain sensitive information, API endpoints, or settings that could be exploited, leading to information disclosure.

Abuse Scenarios

  1. List all ConfigMaps across all namespaces.
kubectl get configmaps --all-namespaces
  1. Retrieve a specific ConfigMap’s data.
kubectl get configmap <configmap-name> -n <namespace> -o yaml
# Example: kubectl get configmap kube-proxy -n kube-system -o yaml