Bug 849224

Summary: The thin server on sam installations will listen on all ip addresses, should listen on localhost only.
Product: Red Hat Satellite Reporter: Eric Sammons <esammons>
Component: InstallationAssignee: Katello Bug Bin <katello-bugs>
Status: CLOSED ERRATA QA Contact: Og Maciel <omaciel>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.0CC: dmacpher, lzap, mmccune, omaciel
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
The thin web server for System Engine listened to all IP addresses, which opened System Engine to vulnerabilities. This fix configures the thin web server to listen only to localhost.
Story Points: ---
Clone Of: 843625 Environment:
Last Closed: 2012-12-04 19:53:37 UTC Type: Bug
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: 843625    
Bug Blocks:    

Description Eric Sammons 2012-08-17 18:12:03 UTC
+++ This bug was initially created as a clone of Bug #843625 +++

Description of problem:
With SAM all functionality resides on a single server, with this "thin" should not listen on 0.0.0.0:5001.

Steps to Reproduce:
1. Install katello-headpin-all
2. katello-configure --deployment=sam
3. ps -ef|grep thin
  
Actual results:
# ps -ef|grep thin
katello   2013     1  4 15:20 ?        00:00:11 thin server (0.0.0.0:5000)                                                                                                                                                                                                                                                                                                                          
katello   2017     1  4 15:20 ?        00:00:11 thin server (0.0.0.0:5001) 

Expected results:
# ps -ef|grep thin
katello   xxxx     1  4 15:20 ?        00:00:11 thin server (127.0.0.1:5000)                                                                                                                                                                                                                                                                                                                          
katello   xxxx     1  4 15:20 ?        00:00:11 thin server (127.0.0.1:5001)

Comment 1 Lukas Zapletal 2012-08-20 15:21:32 UTC
Correcting component to katello-configure. Taking.

Comment 2 Lukas Zapletal 2012-08-21 09:54:27 UTC
https://github.com/Katello/katello/pull/492

Comment 4 Lukas Zapletal 2012-09-10 07:40:45 UTC
Fixed upstream (see comment 2). QA ACK?

Comment 6 Og Maciel 2012-09-14 21:13:03 UTC
# ps -ef|grep thin
root      9750 18414  0 16:47 pts/3    00:00:00 grep thin
katello  18107     1  1 16:22 ?        00:00:23 thin server (127.0.0.1:5000)                                                                                                                                                                                                                                                                                                                          
katello  18111     1  1 16:22 ?        00:00:21 thin server (127.0.0.1:5001)

Comment 7 Og Maciel 2012-09-14 21:13:23 UTC
Verified using:

* candlepin-0.7.8-1.el6cf.noarch
* candlepin-selinux-0.7.8-1.el6cf.noarch
* candlepin-tomcat6-0.7.8-1.el6cf.noarch
* katello-1.1.12-7.el6cf.noarch
* katello-all-1.1.12-7.el6cf.noarch
* katello-candlepin-cert-key-pair-1.0-1.noarch
* katello-certs-tools-1.1.8-1.el6cf.noarch
* katello-cli-1.1.8-4.el6cf.noarch
* katello-cli-common-1.1.8-4.el6cf.noarch
* katello-common-1.1.12-7.el6cf.noarch
* katello-configure-1.1.9-3.el6cf.noarch
* katello-glue-candlepin-1.1.12-7.el6cf.noarch
* katello-glue-pulp-1.1.12-7.el6cf.noarch
* katello-qpid-broker-key-pair-1.0-1.noarch
* katello-qpid-client-key-pair-1.0-1.noarch
* katello-selinux-1.1.1-1.el6cf.noarch
* pulp-1.1.12-1.el6cf.noarch
* pulp-common-1.1.12-1.el6cf.noarch
* pulp-selinux-server-1.1.12-1.el6cf.noarch

Comment 9 errata-xmlrpc 2012-12-04 19:53:37 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2012-1543.html