Bug 1365815 (CVE-2016-6319)

Summary: CVE-2016-6319 foreman: Persistent XSS in Foreman remote execution plugin
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: Doc Type: If docs needed, set a value
Doc Text:
It was found that foreman is vulnerable to a stored XSS via a job template with a malformed name. This could allow an attacker with privileges to set the name in a template to display arbitrary HTML including scripting code within the web interface.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-21 00:54:29 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: 1369872, 1369882    
Bug Blocks: 1365818, 1432305    

Description Andrej Nemec 2016-08-10 09:28:33 UTC
Marek Hulán of Red Hat reports:

User can define a job template and specify input name containing JS code. When
someone tries to invoke such job, the form is generated based on this name
without proper escaping so the JS gets executed.

Upstream issue:

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

Proposed upstream patch:

https://github.com/theforeman/foreman/pull/3715/commits/4b63d2c7cdad76ed2bf96d9f8dff7e0c5cdabda6

Comment 3 Kurt Seifried 2017-07-13 01:04:50 UTC
Acknowledgments:

Name: Marek Hulán (Red Hat)

Comment 5 errata-xmlrpc 2018-02-21 12:27:55 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