CVE-2022-39304
Ghinstallation Project Ghinstallation vulnerability
ghinstallation provides transport, which implements http.RoundTripper to provide authentication as an installation for GitHub Apps. In ghinstallation version 1, when the request to refresh an installation token failed, the HTTP request and response would be returned for debugging. The request contained the bearer JWT for the App, and was returned back to clients. This token is short lived (10 minute maximum). This issue has been patched and is available in version 2.0.0.
Affected products
Ghinstallation. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Ghinstallation Project Ghinstallation runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/bradleyfalzon/ghinstallation/commit/d24f14f8be70d94129d76026e8b0f4f9170c8c3e · Patch
- github.com/bradleyfalzon/ghinstallation/security/advisories/GHSA-h4q8-96p6-jcgr · Patch
- docs.github.com/en/developers/apps/building-github-apps/authenticating-with-github-apps#au · Third Party Advisory
- github.com/bradleyfalzon/ghinstallation/blob/24e56b3fb7669f209134a01eff731d7e2ef72a5c/tran · Exploit
- nvd.nist.gov/vuln/detail/CVE-2022-39304
- cve.org/CVERecord?id=CVE-2022-39304
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.