Bug 1264790 (CVE-2015-5284)
Summary: | CVE-2015-5284 ipa: ipa-kra-install includes certificate and private key in world readable file | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Other] Security Response | Reporter: | Martin Prpič <mprpic> | ||||||
Component: | vulnerability | Assignee: | Red Hat Product Security <security-response-team> | ||||||
Status: | CLOSED NOTABUG | QA Contact: | |||||||
Severity: | high | Docs Contact: | |||||||
Priority: | high | ||||||||
Version: | unspecified | CC: | edewata, jcholast, mbasti, mkosek, nkinder, rcritten, security-response-team, ssorce | ||||||
Target Milestone: | --- | Keywords: | Security | ||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | ipa 4.2.2 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2015-10-08 11:45:54 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: | 1264793 | ||||||||
Bug Blocks: | 1264794 | ||||||||
Attachments: |
|
Description
Martin Prpič
2015-09-21 08:46:26 UTC
Statement: This issue did not affect the versions of ipa as shipped with Red Hat Enterprise Linux 6 and 7 as they did not include the affected KRA subsystem. Acknowledgements: This issue was discovered by Jan Cholasta of Red Hat. Created attachment 1075455 [details]
Proposed patch
See attachment for a patch fixing the issue.
Created attachment 1075511 [details]
Proposed patch
Found a copy & paste issue in the patch, updated patch attached.
The updated patch works for me, ACK. Patch looks good to me. Just to explicitly confirm, do the upgrade.py part of the patch take care of automatically fixing existing installations that already have the file with bad permissions? I see ipa-server's %posttrans runs ipa-server-upgrade. Is no manual action required after that? Yes, upgrade will fix permissions on file, no manual action is needed. Affected functionality was introduced in IPA 4.2. Therefore, this issue did not affect IPA versions as shipped with Red Hat Enterprise Linux 6 and 7. The new IPA 4.2 is part of Red Hat Enterprise Linux 7.2 Beta and it is planned to be addressed before the final release of Red Hat Enterprise Linux 7.2. Actually, the certificate is not revoked during the upgrade, so anyone with a copy of kra-agent.pem can still authenticate with it after the upgrade. To prevent this, the private key and certificate must be manually replaced after the upgrade. Lifting embargo. No released Red Hat Enterprise Linux or Fedora version was affected by this flaw. Upstream ticket: https://fedorahosted.org/freeipa/ticket/5347 Upstream commit: https://git.fedorahosted.org/cgit/freeipa.git/commit/?id=55a66ccba3e2181a50e7733b7476991975b7455f Fixed upstream in version 4.2.2: https://www.redhat.com/archives/freeipa-interest/2015-October/msg00000.html |