Bug 2155942 (CVE-2022-39304)

Summary: CVE-2022-39304 ghinstallation: Leak of bearer JWT from http.RoundTripper response
Product: [Other] Security Response Reporter: Anten Skrabec <askrabec>
Component: vulnerabilityAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: ellin, gparvin, njean, owatkins, pahickey, scorneli, shbose, stcannon, teagle
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: ghinstallation 2.0.0 Doc Type: ---
Doc Text:
A flaw was found in ghinstallation. When a request to refresh an installation token fails, the HTTP request and response are returned for debugging. The returned request contains the short-lived (10-min maximum) bearer JWT for the app and is returned back to clients.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2155599    

Description Anten Skrabec 2022-12-23 01:15:22 UTC
A flaw was found in ghinstallation that when a request to fresh an installation token failed, the HTTP request and response would be returned for debugging. The returned request contained the short-lived (10-min maximum) bearer JWT for the app.