Bug 766933 - katello.yml is world readable including db uname/password
Summary: katello.yml is world readable including db uname/password
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Packaging
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified vote
Target Milestone: Unspecified
Assignee: Lukas Zapletal
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks: katello-blockers
TreeView+ depends on / blocked
 
Reported: 2011-12-12 20:07 UTC by Mike McCune
Modified: 2019-09-26 13:26 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-22 18:13:01 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 768307 0 high CLOSED install script fails: in logs cmod 0666 needed for /usr/share/katello/log/production.log 2021-02-22 00:41:40 UTC

Internal Links: 768307

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


Note You need to log in before you can comment on or make changes to this bug.