Jenkins Artifactory Plugin information disclosure vulnerability
The Jenkins Artifactory Plugin's testConnection endpoint lacked permission and CSRF checks, allowing a user with Overall/Read (or an anonymous user) to make Jenkins send stored credentials to an attacker-controlled server. An attacker could also trigger this via CSRF against an authenticated user.
Originally disclosed on Cisco Talos
An exploitable information disclosure vulnerability exists in the testConnection endpoint of the Jenkins Artifactory Plugin 3.2.0 and 3.2.1. As a result of this vulnerability a crafted HTTP request from a user with Overall/Read permissions - such as an anonymous user, if enabled - can cause affected versions of this…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The testConnection endpoint did not check that the caller had permission to use the specified credentials, and it also lacked CSRF protection.
Impact
An attacker could obtain credentials from the Jenkins credentials database, and the CSRF variant could be triggered against an authenticated user, though the response content itself is not readable due to MIME type and nosniff protections.
What the attacker needed
Overall/Read permission or anonymous access; knowledge of the credential identifier; attacker-controlled server to receive credentials
The fix
The vendor patched the plugin; until then, disabling the plugin or removing Overall/Read permissions from unnecessary users (including anonymous access) mitigates the issue.
How it was found
- Identify the credential identifier of the credential to leak.
- Send a request to the testConnection endpoint with the artifactoryUrl pointing to an attacker-controlled server and the credentialsId set to the target credential.
- Observe that the plugin sends an HTTP GET request to the attacker server with the credentials in the Authorization header.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Jenkins is a tool that automates building software. A plugin for it had a web address that, when visited, would make Jenkins send a saved username and password to whatever server the visitor named. Anyone who could view the Jenkins dashboard, even without logging in if anonymous access was on, could use this to steal secrets.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.