CVE-2022-39304
Description
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.
How to fix
- ghinstallation_project ghinstallation2.0.0 or later
- github.com/bradleyfalzon/ghinstallation2.0.0, 1.1.2-0.20210308182858-d24f14f8be70 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| ghinstallation_project ghinstallation | v < 2.0.0 | 2.0.0 |
| github.com/bradleyfalzon/ghinstallationGo | v < 2.0.0, v < 1.1.2-0.20210308182858-d24f14f8be70 | 2.0.0, 1.1.2-0.20210308182858-d24f14f8be70 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.