Bug 1516788 (CVE-2017-1000391) - CVE-2017-1000391 jenkins: Unsafe use of user names as directory names
Summary: CVE-2017-1000391 jenkins: Unsafe use of user names as directory names
Keywords:
Status: CLOSED WONTFIX
Alias: CVE-2017-1000391
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1516794 1516795
Blocks: 1516796
TreeView+ depends on / blocked
 
Reported: 2017-11-23 11:31 UTC by Andrej Nemec
Modified: 2021-02-17 01:12 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-01 07:55:46 UTC


Attachments (Terms of Use)

Description Andrej Nemec 2017-11-23 11:31:09 UTC
Jenkins stores metadata related to people, which encompasses actual user accounts, as well as users appearing in SCM, in directories corresponding to the user ID on disk. These directories used the user ID for their name without additional escaping. This potentially resulted in a number of problems, such as the following:

1. User names consisting of a single forward slash would have their user record stored in the parent directory; deleting this user deleted all user records.

2. User names containing character sequences such as .. could be used to clobber other configuration files in Jenkins.

This is not limited to the Jenkins user database security realm, other security realms such as LDAP may allow users to create user names that result in problems in Jenkins.

External References:

https://jenkins.io/security/advisory/2017-11-08/

Comment 1 Andrej Nemec 2017-11-23 11:34:52 UTC
Created jenkins tracking bugs for this issue:

Affects: fedora-all [bug 1516794]
Affects: openshift-1 [bug 1516795]


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