Hunt prep
Before you test Kubernetes
What 83 disclosed reports say about Kubernetes: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 29
- median public bounty
- $1,000
- highest public bounty
- $5,000
Gaps worth testing 15
Ideas drawn from this program's disclosed reports and our class lessons. None of them is a known bug: each is a place to look, and the reports linked under it are why. Check the current scope before testing anything.
-
1
Other ingress-nginx annotations that reach nginx.conf unescaped
The reports show a long run of annotation injection fixes (configuration-snippet, permanent-redirect, connection-proxy-header) and path injection, each fixed one directive at a time. Test the remaining annotations that are written into the generated nginx configuration, such as rewrite, proxy-set-header and auth-related values, to see whether any still allow directive injection for a user who can only create Ingress objects.
-
2
Ingress path injection variants after the path fix
Path-based injection was reported repeatedly (19406, 20406, 22030) and each fix targeted a specific directive trick. Test other fields that feed the generated location block, such as the pathType handling and rewrite-target annotation, for the same unescaped insertion into nginx.conf.
-
3
External auth header normalisation bypass variants
Access control Read the lesson
Two reports (19049, 30615) show ingress-nginx passing unnormalised request URIs to external auth services in X-Original-Url and X-Auth-Request-Redirect. Test other path encodings and header combinations that the auth service might trust, and check whether the backend sees a different path from the auth service.
-
4
htpasswd filename collision with other auth annotations
Access control Read the lesson
Report 17127 showed namespace and ingress names concatenated with a hyphen causing htpasswd file collisions. Test whether the same naming pattern affects other per-ingress files the controller writes, such as auth secrets or TLS material, when namespace and ingress names are chosen to collide.
-
5
Redirect following by control-plane clients to aggregated servers
Reports 19738 and 18595 show control-plane clients following redirects from aggregated API servers and webhooks, leaking bearer tokens or response bodies. Test other control-plane clients that talk to aggregated APIs or webhooks, such as the metrics client and admission clients, for the same redirect-following behaviour.
Backed bySSRF vulnerability can be exploited when a hijacked aggregated a... (2022) SSRF for kube-apiserver cloudprovider scene (2021)From the lessons: Bypass SSRF filters with redirects, IPv6-mapped addresses, NAT64 prefi...; Use an SSRF to read internal files and observe the returned content.
-
6
Webhook client redirect to cloud metadata
The ValidatingWebhookConfiguration SSRF (18595) relied on the webhook client following redirects and verbose logging. Test mutating and validating webhooks with other redirect targets and check whether responses reach logs or error messages an attacker can read, including metadata endpoints.
From the lessons: Cloud metadata endpoints as an SSRF target.; Make a server-side fetch reach the AWS metadata service and read insta...
-
7
Security group tag matching in other AWS controller paths
Access control Read the lesson
Reports 19277 and 19278 show the AWS Load Balancer Controller trusting tags to identify managed security groups. Test other resources the controller manages by tag, such as target groups and listener rules, to see whether an unprivileged user who can tag resources can influence them.
-
8
Cloud provider state bucket access from node identities
Access control Read the lesson
Report 20316 showed kOps on GCP granting nodes read access to the state bucket holding the cluster CA key. Test the equivalent state storage access for other kOps providers and for other controllers that mount cloud credentials, checking what a pod with shell access can read.
-
9
Token and secret logging at high verbosity in other components
Info disclosure Read the lesson
Several reports (17233, 17234, 17261) show secrets and bearer tokens written to logs at high verbosity. Test other components and client libraries that log request details, such as cloud controller managers and client-go debug output, for unmasked credentials in logs a lower-privileged user can read.
-
10
YAML deserialisation in other Kubernetes client libraries
The Java client YAML issues (19990, 18424) and the Gubernator yaml.load issue (18100) show unsafe YAML parsing recurring. Test the YAML and JSON parsing paths in other Kubernetes client libraries and tooling that accept user-supplied manifests, checking for unsafe constructors or class instantiation.
-
11
Dangling documentation links to unclaimed accounts and domains
Subdomain takeover Read the lesson
Many reports (19275, 18955, 18729, 18730, 18665, 18666, 19112, 17971) show docs linking to unregistered GitHub accounts, expired domains and unclaimed Confluence spaces. Systematically check external links across the Kubernetes and CSI documentation sites for unclaimed accounts, domains and hosted spaces.
Backed byGithub Account Takeover from Docs page of `kubernetes-csi.github... (2022) Broken link hijacking in https://kubernetes-csi.github.io/docs/d... (2022) Broken Link Takeover from kubernetes.io docs (2021)+5 more reports
- Broken Github Link Used in deployment docs of "github.com/kubernetes/kompose" (2021)
- Broken link hijacing in https://kubernetes-csi.github.io/docs/drivers.html (2021)
- Broken Link Hijacking on kubernetes.io Documentation (2021)
- Broken Domain Link Takeover from kubernetes.io docs (2022)
- KOPS documentation references domains which were not registered (2021)
From the lessons: Documentation pages linking to expired external domains.; Search documentation pages for links to external domains and check whe...
-
12
Dangling NS and Route53 delegations on canary subdomains
Subdomain takeover Read the lesson
Reports 17521 and 17232 show canary subdomains delegated to Route53 zones that had been deleted. Enumerate other canary and test subdomains under k8s.io and check whether their NS delegations point at hosted zones that are no longer registered.
Backed byRoute53 Subdomain Takeover on test-cncf-aws.canary.k8s.io (2021) Subdomain Takeover Via via Dangling NS records on Amazon Route 5... (2020)From the lessons: Subdomains delegated via NS records to unclaimed name server zones.; Check whether a subdomain's NS records point to a name server zone tha...
-
13
Cloud storage buckets referenced by release and dashboard files
Misconfiguration Read the lesson
Report 18727 showed a dashboard HTML file referencing an unclaimed GCS bucket, and 17619 showed a release bucket exposing a plaintext password. Check other buckets referenced by release artefacts and dashboard files for public listing and for names that can be claimed.
-
14
Prow and test-infra endpoints exposing configuration
Info disclosure Read the lesson
Reports 17466, 17166, 16805 and 17618 show Prow and test-infra endpoints and dashboards reachable without authentication. Test other Prow and test-infra services, such as deck, plank and spyglass endpoints, for unauthenticated configuration or dashboard access.
-
15
Path handling in Prow S3 signing and spyglass
Path traversal Read the lesson
Reports 19991 and 17755 show Prow mishandling user-supplied bucket paths and artifact names. Test other Prow endpoints that take user-controlled paths or artifact names, such as job-history and lens endpoints, for path truncation and unbounded downloads.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| RCE lesson | 13 | 9 | $1,000 | $5,000 | $16k |
| Access control lesson | 20 | 7 | $500 | $2,500 | $7,750 |
| SSRF lesson | 5 | 2 | $3,000 | $5,000 | $6,000 |
| Path traversal lesson | 1 | 1 | $2,500 | $2,500 | $2,500 |
| DoS lesson | 8 | 3 | $500 | $1,000 | $1,750 |
| Misconfiguration lesson | 3 | 1 | $1,000 | $1,000 | $1,000 |
| Info disclosure lesson | 14 | 1 | $500 | $500 | $500 |
| Subdomain takeover lesson | 7 | 2 | $175 | $250 | $350 |
| Crypto lesson | 2 | 1 | $250 | $250 | $250 |
| CSRF lesson | 1 | 1 | $100 | $100 | $100 |
| Open redirect lesson | 1 | 1 | $100 | $100 | $100 |
| Account takeover lesson | 3 | 0 | – | – | $0 |
| XSS lesson | 2 | 0 | – | – | $0 |
| Leaked secrets lesson | 1 | 0 | – | – | $0 |
| UI spoofing lesson | 1 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
elections.k8s.io uses weak session secret key, may place elections at risk
The secret key should be set to a long random value before deployment, as the source comments instruct.
Disclosed
-
Git Arg Injection in kubernetes-sigs/release-sdk
The report suggests adding '--' before user-provided values, but notes this must be tested.
Disclosed
-
Broken link hijacking in https://kubernetes-csi.github.io/docs/drivers.html?highlight=chubaofs#production-drivers
The dead external link should be removed or replaced.
Disclosed
-
IPv4 only clusters susceptible to MitM attacks via IPv6 rogue router advertisements
The vulnerability should be fixed by setting accept_ra = 0 by default on any interface managed by CNI / K8S.
Disclosed
-
Man in the middle using LoadBalancer or ExternalIPs services
The report suggests a blacklist approach at the API level to prevent loadBalancerIP and externalIPs from being in the same range as clusterIPs, pod IPs, localhost, and node IPs, and a whitelist for LoadBalancer IPs controlled by real LB controllers.
Disclosed
-
Man in the middle leading to root privilege escalation using hostNetwork=true (CAP_NET_RAW considered harmful)
The Kubernetes team should remove CAP_NET_RAW from the default capabilities and enable net.ipv4.ping_group_range to allow ping without it.
Disclosed
-
Index Out Of Bounds in protobuf unmarshalling
The code should be fixed by adding a check that the sum of the index and skip length is not negative, as shown in the patched example, and then regenerating all protobuf code.
Disclosed
-
Bypass apiserver proxy filter
A pull request was merged to mitigate dangerous proxying through the apiserver.
Disclosed
-
Code Injection via Insecure Yaml.load
The vulnerable yaml.load() function should be replaced with the safe equivalent, safe_load().
Disclosed
-
Kubelet follows symlinks as root in /var/log from the /logs server endpoint
The kubelet should check symlink destinations to ensure they are inside whitelisted paths like /var/lib/docker, or otherwise prevent following symlinks outside /var/log.
Disclosed
-
XSS on kubernetes-csi.github.io (mdBook)
Website owners should upgrade to mdBook 0.4.5 or greater and rebuild their site.
Disclosed
-
exposed Git Repo at http://api.e2e-kops-aws-canary.test-cncf-aws.canary.k8s.io/.git/
The access rule should be extended to cover all .git subfolders, not just the top-level path.
Disclosed
-
Unsecured Grafana instance on https://monitoring.prow-canary.k8s.io/dashboards
Authentication should be required for the dashboards, or anonymous access should be limited to a deliberately public demo instance.
Disclosed
-
Plaintext storage of a password on kubernetes release bucket
The report asks for the exposed password file to be deleted from the bucket.
Disclosed
-
Subdomain Takeover Via via Dangling NS records on Amazon Route 53 http://api.e2e-kops-aws-canary.test-cncf-aws.canary.k8s.io
The domain owner should remove the dangling NS records that point to name servers they do not control, or reclaim the Route 53 hosted zone.
Disclosed