Skip to content
SSRF Advisory Beginner CVE-2023-37955CVE-2023-37956

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.

Alvaro Muñoz Follow

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.

pwntester, on GitHub Security Lab

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

  1. 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.

More by Alvaro Muñoz

View all

132 more disclosed reports, best first.

More from GitHub Security Lab

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Server-side request forgery (SSRF)

The lesson behind this report.

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.