GHSA-786Q-9HCG-V9FF Argo CD’s Project API Token Exposes Repository Credentials
Discription

image
Summary Argo CD API tokens with project-level permissions are able to retrieve sensitive repository credentials (usernames, passwords) through the project details API endpoint, even when the token only has standard application management permissions and no explicit access to secrets. Component: Project API (/api/v1/projects/{project}/detailed) Vulnerability Details Expected Behavior API tokens should require explicit permission to access sensitive credential information. Standard project permissions should not grant access to repository secrets. Actual Behavior API tokens with basic project permissions can retrieve all repository credentials associated with a project through the detailed project API endpoint. Note: This vulnerability does not only affect project-level permissions. Any token with project get permissions is also vulnerable, including global permissions such as: p, role/user, projects, get, *, allow Steps to Reproduce Create an API token with the following project-level permissions: p, proj:myProject:project-automation-role, applications, sync, myProject/*, allow p, proj:myProject:project-automation-role, applications, action/argoproj.io/Rollout/*, myProject/*, allow p, proj:myProject:project-automation-role, applications, get, myProject/*, allow Call the project details API: “` bashcurl -sH "Authorization: Bearer $ARGOCD_API_TOKEN" "https://argocd.example.com/api/v1/projects/myProject/detailed" 3. Observe that the response includes…Read More

Back to Main

Subscribe for the latest news: