Bug 1308871

Summary: cloud-init: Following symlinks for ssh authorized_keys
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: adimania, apevec, dkholia, gholms, Jan.van.Eldik, jgreguske, lars, mattdm, shardy, s
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-02 04:31:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1308874, 1308875    
Bug Blocks: 1308877    

Description Adam Mariš 2016-02-16 10:30:17 UTC
It was found that SSH key handling code follows symlinks, allowing malicious user to create symlink from ~/.ssh pointing to arbitrary place.

CVE request:

http://seclists.org/oss-sec/2016/q1/336

Comment 1 Adam Mariš 2016-02-16 10:37:56 UTC
Created cloud-init tracking bugs for this issue:

Affects: fedora-all [bug 1308874]
Affects: epel-all [bug 1308875]

Comment 2 Dhiru Kholia 2016-06-02 04:31:57 UTC
There is no realistic attack vector here (the bug report assumes that an unprivileged user can write to a different user's directories). Hence closing the bug.