jenkinsci / jenkinsci/credentials-plugin
[JENKINS-64482] Credentials page is insecure when using anonymous read access
- Dominant language
- Java
- Stars
- 134
- Forks
- 258
- Avg merge
- 48m
- Merged PRs (30d)
- 1
Description
We have a use case wherein we want,
- a limited number of administrators to have access to configuration
- build status to be publicly available
As such, under 'Configure Global Security', we have set the following,
- 'Security Realm' is set to 'Jenkins' own user database' with the 'Allow users to sign up' checkbox unchecked
- 'Authorization' is set to 'Logged-in users can do anything' with the 'Allow anonymous read access' checkbox checked
This works well, except that we have just noticed that the credentials page is exposed to non-registered visitors: they cannot modify credentials, but they can view the 'ID' and 'Name' fields for each, which may pose a soft security threat. Additionally, the 'Credentials' link appears in the left sidebar for non-registered visitors.
---
Originally reported by
tidbitsoftware, imported from: Credentials page is insecure when using anonymous read access
Raw content of original issue
We have a use case wherein we want,
- a limited number of administrators to have access to configuration
- build status to be publicly available
As such, under 'Configure Global Security', we have set the following,
- 'Security Realm' is set to 'Jenkins' own user database' with the 'Allow users to sign up' checkbox unchecked
- 'Authorization' is set to 'Logged-in users can do anything' with the 'Allow anonymous read access' checkbox checked
This works well, except that we have just noticed that the credentials page is exposed to non-registered visitors: they cannot modify credentials, but they can view the 'ID' and 'Name' fields for each, which may pose a soft security threat. Additionally, the 'Credentials' link appears in the left sidebar for non-registered visitors.
environment
```
Jenkins 2.271
Credentials Plugin 2.3.14
```
Contributor guide
Assessment
This issue has not been assessed yet.