Bug 766933

Summary: katello.yml is world readable including db uname/password
Product: Red Hat Satellite Reporter: Mike McCune <mmccune>
Component: PackagingAssignee: Lukas Zapletal <lzap>
Status: CLOSED CURRENTRELEASE QA Contact: Katello QA List <katello-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: gkhachik, kbidarka, lzap
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-22 18:13:01 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:    
Bug Blocks: 747354    

Description Mike McCune 2011-12-12 20:07:34 UTC
similar to:

https://bugzilla.redhat.com/show_bug.cgi?id=766929

The installed /etc/katello/katello.yml file with
database credentials appears to be world-readable:

$ ls -alht /etc/katello/katello.yml 
-rw-r--r--. 1 root root 4.0K Dec  6 17:11 /etc/katello/katello.yml

This permits any user with shell access on the box to obtain the credentials
used to connect to Katello's database, which they could then use to connect
and manipulate the database.

Version-Release number of selected component (if applicable):
katello-0.1.135-2.el6.x86_64

Expected results:
Random users cannot read the database config. (It should probably be owned by
the katello user with group/world having no privileges.)

Comment 1 Lukas Zapletal 2011-12-13 12:54:34 UTC
Damn! Nice catch.

Comment 2 Lukas Zapletal 2011-12-13 13:17:09 UTC
a0a05d7 766933 - katello.yml is world readable including db uname/password

Comment 3 Lukas Zapletal 2011-12-16 16:00:43 UTC
c7ee187 766933 - katello.yml now deployed with correct perms

Comment 4 Garik Khachikyan 2011-12-16 16:03:48 UTC
and what are the permissions (owner/group there) ?

Comment 5 Lukas Zapletal 2011-12-16 16:05:52 UTC
ls /etc/katello/katello.yml -la
-rw-------. 1 katello katello 4027 Dec 16 11:00 /etc/katello/katello.yml

Comment 6 Kedar Bidarkar 2011-12-21 08:17:42 UTC
[root@xcs ~]# ll /etc/katello/katello.yml
-rw-------. 1 katello katello 4011 Dec 19 13:05 /etc/katello/katello.yml


rpm -qav | grep -i "katello-0"
katello-0.1.145-1.el6.noarch