Overview

FieldValue
ID1023
NameRead ConfigMaps in a namespace
Risk CategoryInformation Disclosure
Risk LevelMedium
Role TypeRole
API Groupscore
Resourcesconfigmaps
Verbsget, list, watch
TagsConfigMapAccess DataExposure InformationDisclosure

Description

Permits reading ConfigMaps within a specific namespace. This can lead to information disclosure if ConfigMaps store sensitive configuration details, connection strings, or other exploitable data for applications within that namespace.

Abuse Scenarios

  1. List all ConfigMaps in a specific namespace.
kubectl get configmaps -n <namespace>
# Example: kubectl get configmaps my-app-config -n default
  1. Retrieve a specific ConfigMap’s data within the namespace.
kubectl get configmap <configmap-name> -n <namespace> -o yaml
# Example: kubectl get configmap my-app-settings -n production -o yaml