hubble-ui
hubble-ui copied to clipboard
Hubble POST requests with the type "application/octet-stream" which is blocked by WAF
Hi Team,
We noticed that for some reason the control_stream endpoint in hubble now sends POST requests with the type "application/octet-stream" which is blocked by WAF as its challenging for WAF to inspect and analyze for potential threats. Binary data can contain malicious code or exploit patterns that are difficult to detect.
Previously this was using "application/grpc-web-text" which is fine to allow through the WAF.
Here is the code which needs to change :- https://github.com/cilium/hubble-ui/blob/a06e19ba65299c63a58034a360aeedde9266ec01/src/api/http-client/index.ts#L91-L97
This change was made in https://github.com/cilium/hubble-ui/releases/tag/v0.13.0. Commit request https://github.com/cilium/hubble-ui/pull/767
WAFs might not be able to recognize or understand the specific format or structure of data encoded as "application/octet-stream." This lack of understanding can make it difficult to analyze and filter the content effectively. This content type can be used to bypass certain WAF rules or detection mechanisms. Attackers might attempt to hide malicious content within binary data to evade detection. Processing binary data can be computationally expensive and resource-intensive for WAFs. Blocking this content type can help optimize WAF performance and reduce the risk of resource exhaustion.
Also encountered this. Not sure if this PR went through without security and integration testing