website icon indicating copy to clipboard operation
website copied to clipboard

kubernetes.io search returns a blank 403 for queries containing .forwarding (Netlify WAF rule 930120)

Open miathedev opened this issue 2 weeks ago • 2 comments

This is a Bug Report

Problem:

Searching kubernetes.io for sysctl parameters that contain .forwarding returns an HTTP 403 with an empty body. The request is blocked by the Netlify WAF before the search page is served.

Steps to reproduce:

  1. Open https://kubernetes.io/search/?q=net.ipv6.conf.all.forwarding%3D1 (or just search for net.ipv6.conf.all.forwarding=1 on kubernetes.io)
  2. The request fails with HTTP 403 and no content; the search results page never loads.

Bisection results (all tested via https://kubernetes.io/search/?q=…):

Query Result
kubelet (control) 200
net.ipv4.ip_forward=1 200
net.netfilter.nf_conntrack_max=131072 200
net.ipv6.conf.all.forwarding=1 403
net.ipv4.conf.all.forwarding=1 403
net.ipv6.conf.default.forwarding=1 403
foo.all.forwarding=1 403
forwarding=1 (no preceding dot) 200
net.ipv6.conf.all.log_martians=1 200

The blocking rule is consistent with OWASP CRS rule 930120 ("OS File Access Attempt"), a substring phrase match (@pmFromFile lfi-os-files.data) applied to URL-decoded query parameters (ARGS with t:urlDecodeUni). The phrase list contains the entry .forward (line 39) — the classic Unix mail-forwarding file — so any query string containing the substring .forward is flagged as an "OS File Access Attempt" and blocked. Because the value is URL-decoded before matching, percent-encoding the query (., =) does not bypass the block.

This is especially unfortunate because kubernetes.io documents these very sysctls: the dual-stack kubeadm guide (https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/dual-stack-support/) instructs users to run sysctl net.ipv6.conf.all.forwarding. Pasting that exact string into the site's own search box returns a hard 403 with no explanation.

Response headers for a blocked request (plain curl, no cookies, no JS):

$ curl -sS -D - -o /dev/null 'https://kubernetes.io/search/?q=net.ipv6.conf.all.forwarding%3D1'
HTTP/2 403
cache-control: private, max-age=0
content-type: text/plain; charset=utf-8
date: Sun, 15 Nov 2026 11:48:30 GMT
debug-x-nf-waf-result: outcome=blocked&policy_id=69d77ecb9cf57ca24936de3c&rule=930120&rule_set=crs-basic
server: Netlify
strict-transport-security: max-age=31536000
x-nf-request-id: 01M7FGK5R8VGAJ7N6FQVT5AMWG
content-length: 0

Sources:

  1. https://docs.netlify.com/manage/security/secure-access-to-sites/web-application-firewall/
  2. Rule 930120 definition: https://github.com/coreruleset/coreruleset/blob/v4.0.0/rules/REQUEST-930-APPLICATION-ATTACK-LFI.conf
  3. Phrase list containing .forward on line 39: https://github.com/coreruleset/coreruleset/blob/v4.0.0/rules/lfi-os-files.data

Proposed Solution:

Ask Netlify to tune the WAF policy (rule 930120, rule set crs-basic) for the search path — for example by excluding the /search/ route from the rule, or by removing/excluding the .forward phrase from the match list for kubernetes.io. A search query is user-supplied free text and does not access files, so the "OS File Access Attempt" rule should not apply to it. Alternatively, the search page could catch WAF blocks and surface a meaningful error to the user instead of an empty 403.

Page to Update: https://kubernetes.io/search/

  • The block is not browser-specific: reproduced with plain curl (no cookies, no JS).
  • The debug-x-nf-waf-result response header (including policy_id) is returned to ordinary clients, which may itself be worth reviewing.

miathedev avatar Nov 15 '26 11:11 miathedev

This issue is currently awaiting triage.

SIG Docs takes a lead on issue triage for this website, but any Kubernetes member can accept issues by applying the triage/accepted label.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

kubernetes-prow[bot] avatar Nov 15 '26 11:11 kubernetes-prow[bot]

Thank you for reporting this, @miathedev! We have started a slack thread to discuss either moving the query to #q= or tuning the WAF rules. Feel free to add anything to might have been missed!

mblag avatar Nov 27 '26 08:11 mblag