GHSA-47xh-qxqv-mgvg: Github.com/mittwald/kube httpcache Kube-httpcache Is Vulnerable To Cross-Site Vulnerability
MODERATEGHSA-47xh-qxqv-mgvg is a MODERATE kube-httpcache is vulnerable to cross-site vulnerability (CWE-352: Cross-Site Request Forgery (CSRF)) affecting Github.com/mittwald/kube httpcache libraries in the Go ecosystem. The issue involves kube-httpcache is vulnerable to cross-site request forgery (csrf). Remediation is available by upgrading affected packages to version 0.7.1.
GHSA-47xh-qxqv-mgvg at a Glance
How to Fix GHSA-47xh-qxqv-mgvg
To remediate this vulnerability, upgrade all affected Github.com/mittwald/kube httpcache dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/mittwald/kube-httpcache to 0.7.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/mittwald/kube-httpcache
How to Check if You Are Affected
To determine whether your application is affected by GHSA-47xh-qxqv-mgvg, inspect your project dependencies for Github.com/mittwald/kube httpcache:
inspect dependencies for github.com/mittwald/kube-httpcache
Analyze the terminal output to locate any version of Github.com/mittwald/kube httpcache in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.7.1), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-352: Cross-Site Request Forgery (CSRF), where the web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor. In Github.com/mittwald/kube httpcache, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-47xh-qxqv-mgvg Affected Github.com/mittwald/kube httpcache Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/mittwald/kube-httpcache
|
Go |
< 0.7.1
|
0.7.1
|
References
Frequently Asked Questions
What is GHSA-47xh-qxqv-mgvg?
Which Github.com/mittwald/kube httpcache versions are affected?
What version fixes GHSA-47xh-qxqv-mgvg?
Is github.com/mittwald/kube-httpcache affected?
What CWE is associated with GHSA-47xh-qxqv-mgvg?
How can I check Go dependencies for GHSA-47xh-qxqv-mgvg?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-47xh-qxqv-mgvg",
"modified" : "2022-12-02T22:24:44Z",
"published" : "2022-12-02T22:24:44Z",
"aliases" : [ ],
"summary" : "kube-httpcache is vulnerable to Cross-Site Request Forgery (CSRF)",
"details" : "### Impact\n\n> A request forgery attack can be performed on Varnish Cache servers that have the HTTP/2 protocol turned on. An attacker may introduce characters through the HTTP/2 pseudo-headers that are invalid in the context of an HTTP/1 request line, causing the Varnish server to produce invalid HTTP/1 requests to the backend. This may in turn be used to successfully exploit vulnerabilities in a server behind the Varnish server.\n> -- https://varnish-cache.org/security/VSV00011.html#vsv00011\n\n### Patches\n\nThis is fixed in Varnish 6.0.11; Varnish 6.0.11 is available in `kube-httpcache` versions v0.7.1 and later.\n\n### Workarounds\n\nSee [upstream mitigation hints](https://varnish-cache.org/security/VSV00011.html#mitigation).\n\n### References\n\n- https://varnish-cache.org/security/VSV00011.html#vsv00011\n\n",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/mittwald/kube-httpcache"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.7.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/mittwald/kube-httpcache/security/advisories/GHSA-47xh-qxqv-mgvg"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/mittwald/kube-httpcache"
}, {
"type" : "WEB",
"url" : "https://varnish-cache.org/security/VSV00011.html#vsv00011"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-352" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-12-02T22:24:44Z",
"nvd_published_at" : null
}
}