Jenkins Ansible Tower Plugin information disclosure vulnerability
The Jenkins Ansible Tower Plugin's testTowerConnection and fillTowerCredentialsIdItems endpoints lacked permission checks, allowing a user with Overall/Read (including anonymous) to enumerate credential IDs and send stored credentials to an attacker-controlled server. The GET-based nature also enabled CSRF and, when the target returned malformed JSON, reflected SSRF.
Originally disclosed on Cisco Talos
An exploitable information disclosure vulnerability exists in the testTowerConnection function of the Jenkins Ansible Tower Plugin 0.9.1. 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…
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
Impact
An attacker with Overall/Read could steal credentials from the Jenkins credentials database, and because the request is a GET it may also be exploited via CSRF; if the target returns malformed JSON, the response is reflected as SSRF.
What the attacker needed
Overall/Read permission (e.g. anonymous access); attacker-controlled server returning JSON; known credential ID (enumerable)
The fix
The vendor patched the plugin; until then, disable the plugin or remove Overall/Read permissions from unnecessary users such as anonymous access.
How it was found
- List credentials on the target Jenkins instance via the fillTowerCredentialsIdItems endpoint.
- Send a request to testTowerConnection with an attacker-controlled towerURL and a chosen towerCredentialsId.
- The plugin makes a GET 'ping' request to the attacker server, which must return well-formed JSON.
- The plugin then makes a POST request to the attacker server containing the credentials in the Authorization header and JSON body.
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, and plugins add features. This plugin let anyone who could view Jenkins pages ask it to test a connection to a server they controlled, and in doing so Jenkins sent along saved usernames and passwords. The plugin also let them list the names of saved credentials so they knew which ones to steal.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.