Jenkins GitLab Plugin Information Disclosure Vulnerability
The Jenkins GitLab Plugin's testConnection endpoint lacks a permissions check, allowing a user with Overall/Read access to send a crafted request that causes the plugin to forward stored credentials to an attacker-controlled server. An attacker could steal credentials from the Jenkins credentials database.
Originally disclosed on Cisco Talos
An exploitable information disclosure vulnerability exists in the testConnection functionality of the Jenkins GitLab Plugin 1.5.11. A specially crafted HTTP request from a user with Overall/Read permissions - such as an anonymous user, if enabled - can cause affected versions of this plugin to disclose credentials…
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 lacks a Jenkins permissions check, allowing users with Overall/Read to trigger it.
Impact
An attacker with Overall/Read permissions could steal credentials from the Jenkins credentials database, and because the request is a GET, it may also be exploited via CSRF.
What the attacker needed
Overall/Read permission (e.g., anonymous access); knowledge of the credentials ID
The fix
The vendor patched the vulnerability, but the text does not describe the fix; until patched, the plugin should be disabled or unnecessary Overall/Read permissions removed.
How it was found
- Identify the credentials ID of the target credentials.
- Send a crafted HTTP GET request to the testConnection endpoint with the attacker's server URL and the credentials ID.
- The plugin sends the credentials in the PRIVATE-TOKEN header to the attacker's server.
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 software building and testing. The GitLab plugin lets Jenkins talk to GitLab, and it has a feature to test the connection. Because that test feature did not check who was allowed to use it, someone with limited access could trick Jenkins into sending stored passwords to a server they control.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.