Bug 1831803 (CVE-2020-5283)

Summary: CVE-2020-5283 viewvc: XSS vulnerability in CVS show_subdir_lastmod support
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: bojan
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-05 22:32:02 UTC 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: 1831804, 1831805, 1831806    
Bug Blocks:    

Description Guilherme de Almeida Suckevicz 2020-05-05 16:43:21 UTC
ViewVC before versions 1.1.28 and 1.2.1 has a XSS vulnerability in CVS show_subdir_lastmod support. The impact of this vulnerability is mitigated by the need for an attacker to have commit privileges to a CVS repository exposed by an otherwise trusted ViewVC instance that also has the `show_subdir_lastmod` feature enabled. The attack vector involves files with unsafe names (names that, when embedded into an HTML stream, would cause the browser to run unwanted code), which themselves can be challenging to create. This vulnerability is patched in versions 1.2.1 and 1.1.28.

References:
https://github.com/viewvc/viewvc/issues/211
https://github.com/viewvc/viewvc/security/advisories/GHSA-xpxf-fvqv-7mfg

Upstream commit:
https://github.com/viewvc/viewvc/commit/ad0f966e9a997b17d853a6972ea283d4dcd70fa8

Comment 1 Guilherme de Almeida Suckevicz 2020-05-05 16:43:52 UTC
Created viewvc tracking bugs for this issue:

Affects: epel-6 [bug 1831805]
Affects: epel-7 [bug 1831806]
Affects: fedora-30 [bug 1831804]

Comment 2 Product Security DevOps Team 2020-05-05 22:32:02 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.