GHSL-2023-063: Server-Side Request Forgery (SSRF) in test-results-aggregator-plugin - CVE-2023-37955, CVE-2023-37956
The test-results-aggregator-plugin's doTestApiConnection method fails to validate the jenkinsUrl parameter, allowing an unauthenticated attacker to make the server send requests to arbitrary hosts. This is a blind SSRF vulnerability.
Originally disclosed on GitHub Security Lab
A Server-Side Request Forgery (SSRF) vulnerability was found in the test-results-aggregator-plugin. The vulnerability resides in the com.jenkins.testresultsaggregator.TestResultsAggregator#doTestApiConnection method and can be exploited without authentication.
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 method doTestApiConnection passes the user-supplied jenkinsUrl directly to a Collector object without validating or restricting the destination, enabling SSRF.
Impact
An attacker could make the Jenkins server send requests to arbitrary hosts, potentially leading to server-side request forgery.
What the attacker needed
No authentication required; network access to Jenkins
How it was found
- Send a GET request to the Jenkins endpoint /jenkins/descriptorByName/com.jenkins.testresultsaggregator.TestResultsAggregator/testApiConnection with the jenkinsUrl parameter set to an attacker-controlled URL.
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.
This plugin lets Jenkins check a connection to another Jenkins server. It takes a web address from the user and fetches it without checking where it points. An attacker can give their own address, making the Jenkins server send a request to a system of their choosing, which could be used to probe internal networks.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.