Bug 1393291 (CVE-2016-8639)

Summary: CVE-2016-8639 foreman: Stored XSS via organization/location with HTML in name
Product: [Other] Security Response Reporter: Andrej Nemec <anemec>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: bkearney, cbillett, ceph-eng-bugs, jmatthew, mmccune, ohadlevy, satellite6-bugs, sisharma, tlestach, tsanders
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: foreman 1.13.0 Doc Type: If docs needed, set a value
Doc Text:
It was found that foreman is vulnerable to a stored XSS via an organization or location name. This could allow an attacker with privileges to set the organization or location name to display arbitrary HTML including scripting code within the web interface.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-08-11 14:04:43 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: 1399317, 1399319    
Bug Blocks: 1391526, 1432306    

Description Andrej Nemec 2016-11-09 09:47:10 UTC
Sanket Jagtap of Red Hat reports: 

If an organization or location is created with a name containing HTML,
then the administrator-only Settings page will render the HTML as part
of a dropdown menu.

This may permit a stored XSS attack if an organization/location with
HTML in the name is created, then an administrator attempts to change
the default organization/location settings.

Upstream bug:

http://projects.theforeman.org/issues/15037

Upstream patch:

https://github.com/theforeman/foreman/pull/3523

Comment 1 Andrej Nemec 2016-11-09 09:47:25 UTC
Acknowledgments:

Name: Sanket Jagtap (Red Hat)

Comment 6 errata-xmlrpc 2018-02-21 12:25:11 UTC
This issue has been addressed in the following products:

  Red Hat Satellite 6.3 for RHEL 7

Via RHSA-2018:0336 https://access.redhat.com/errata/RHSA-2018:0336