Overview

FieldValue
ID1018
NameRead pod logs cluster-wide
Risk CategoryInformation Disclosure
Risk LevelHigh
Role TypeClusterRole
API Groupscore
Resourcespods/log
Verbsget
TagsClusterWideLogAccess DataExposure InformationDisclosure

Description

Allows accessing logs from any pod across all namespaces in the cluster. This can lead to information disclosure if logs contain sensitive data, credentials, or operational details that could be exploited.

Abuse Scenarios

  1. Retrieve logs from a specific pod in any namespace.
kubectl logs <pod-name> -n <namespace>
# Example: kubectl logs coredns-xxxx-yyyy -n kube-system
  1. Retrieve logs from all containers in a multi-container pod.
kubectl logs <pod-name> -n <namespace> --all-containers
# Example: kubectl logs my-app-pod -n default --all-containers