Bug 1561061 (CVE-2018-1096)

Summary: CVE-2018-1096 foreman: SQL injection due to improper handling of the widget id parameter
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: bcourt, bkearney, jmatthew, mmccune, mrike, ohadlevy, rchan, security-response-team, sisharma, tsanders
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: foreman 1.16.1 Doc Type: If docs needed, set a value
Doc Text:
An input sanitization flaw was found in the id field of the dashboard controller. A user could use this flaw to perform a SQL injection attack on the back-end database.
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-10 10:18:56 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: 1564229    
Bug Blocks: 1561062    

Description Andrej Nemec 2018-03-27 14:38:05 UTC
It was found that an authenticated user can leverage the SELECT query condition to extract information regarding existence of various values in the database.

Upstream bug:

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

Comment 1 Andrej Nemec 2018-03-27 14:38:12 UTC
Acknowledgments:

Name: Martin Povolny (Red Hat)

Comment 3 Sam Fowler 2018-03-29 03:56:23 UTC
Upstream Patch: 

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

Comment 6 errata-xmlrpc 2018-10-16 15:21:52 UTC
This issue has been addressed in the following products:

  Red Hat Satellite 6.4 for RHEL 7

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