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