Skip to content
SSRF Advisory Beginner CVE-2023-37962CVE-2023-37963

GHSL-2023-073: Server-Side Request Forgery (SSRF) in benchmark-evaluator-plugin - CVE-2023-37962, CVE-2023-37963

The benchmark-evaluator-plugin's doCheckFilepath method fails to validate the filepath parameter, allowing an unauthenticated attacker to make the Jenkins server send requests to arbitrary hosts. This is a blind server-side request forgery (SSRF) vulnerability.

Alvaro Muñoz Follow

Originally disclosed on GitHub Security Lab

A Server-Side Request Forgery (SSRF) vulnerability was found in the benchmark-evaluator-plugin. The vulnerability resides in the io.jenkins.plugins.benchmark.BenchmarkBuilder#doCheckFilepath 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

Likely the doCheckFilepath method does not validate that the filepath parameter is a local file path and allows remote URLs, leading to SSRF.

Impact

This issue may lead to server-side request forgery, allowing an attacker to send requests to arbitrary hosts from the Jenkins server.

What the attacker needed

No authentication required; Jenkins with benchmark-evaluator-plugin installed

How it was found

  1. Send a GET request to the Jenkins endpoint /jenkins/descriptorByName/io.jenkins.plugins.benchmark.BenchmarkBuilder/checkFilepath with the filepath parameter set to a URL pointing to an attacker-controlled host, ending with a valid…
  2. The Jenkins server processes the request and attempts to read the file from the provided URL, making an HTTP request 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.

Server-side request forgery (SSRF) is when an attacker tricks a server into making requests to other systems on their behalf. Here, a Jenkins plugin takes a file path from a user and uses it to fetch a file, but it does not check if the path is a local file or a remote URL. So an attacker can give a URL pointing to their own server and see if the Jenkins server connects to it, potentially probing 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.