Vulnerability DatabaseGHSA-47xh-qxqv-mgvg

GHSA-47xh-qxqv-mgvg
vulnerability analysis and mitigation

Overview

A Cross-Site Request Forgery (CSRF) vulnerability was discovered in kube-httpcache affecting versions prior to 0.7.1. The vulnerability was published on November 29, 2022, and updated on January 12, 2023. The issue specifically affects Varnish Cache servers with HTTP/2 protocol enabled and is tracked as GHSA-47xh-qxqv-mgvg and CVE-2022-45060 (GitHub Advisory, Varnish Security).

Technical details

The vulnerability allows attackers to introduce characters through HTTP/2 pseudo-headers that are invalid in the context of an HTTP/1 request line. This causes the Varnish server to produce invalid HTTP/1 requests to the backend. The issue affects multiple versions including Varnish Cache releases 5.x, 6.x, 7.0.x, 7.1.0, 7.1.1, 7.2.0, and Varnish Cache 6.0 LTS series up to and including 6.0.10. The vulnerability is classified as moderate severity and is associated with CWE-352 (Varnish Security).

Impact

When exploited, this vulnerability can be used to successfully exploit vulnerabilities in servers behind the Varnish server through request forgery attacks. The impact is particularly significant for systems using HTTP/2 protocol with Varnish Cache as a frontend (Varnish Security).

Mitigation and workarounds

The vulnerability is fixed in kube-httpcache version 0.7.1 and later, which includes Varnish 6.0.11. For systems unable to upgrade, a mitigation is available by adding a VCL snippet at the beginning of the vclrecv function to test for problematic characters in incoming HTTP/2 pseudo-headers: `sub vclrecv { if (req.url ~ "(^$)|[ \t]+" || req.method ~ "(^$)|[ \t]+") { return (synth(400)); } }` (GitHub Advisory, Varnish Security).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management