Overview

FieldValue
ID1004
NameCluster-wide pod port-forward
Risk CategoryInformation Disclosure
Risk LevelHigh
Role TypeClusterRole
API Groupscore
Resourcespods/portforward
Verbscreate
TagsClusterWidePodPortForward LateralMovement NetworkManipulation

Description

Grants the ability to forward local ports to ports on any pod across the cluster. This can expose internal services, facilitate lateral movement by bypassing network policies, and lead to information disclosure from otherwise inaccessible applications.

Abuse Scenarios

  1. Forward a local port to a port on a specific pod.
kubectl port-forward <pod-name> -n <namespace> <local-port>:<pod-port>
# Example: Forward local port 8080 to port 80 of a database pod
# kubectl port-forward my-db-pod-abc -n production 8080:5432
# Then access via: curl http://localhost:8080