GHSL-2023-071: Server-Side Request Forgery (SSRF) in sumologic-publisher-plugin - CVE-2023-37958, CVE-2023-37959
The sumologic-publisher-plugin's doTestURL method lacked validation of the url 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 sumologic-publisher-plugin. The vulnerability resides in the com.sumologic.jenkins.jenkinssumologicplugin.PluginDescriptorImpl#doTestURL 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 doTestURL method accepted a user-supplied URL and passed it to a function that made an HTTP request without validating or restricting the destination.
Impact
An attacker could cause the Jenkins server to send requests to arbitrary hosts, potentially reaching internal services, though the response is not returned to the attacker (blind SSRF).
What the attacker needed
No authentication required
How it was found
- Send a GET request to the Jenkins endpoint /jenkins/descriptorByName/com.sumologic.jenkins.jenkinssumologicplugin.SumoBuildNotifier/testURL with a url parameter pointing to an attacker-controlled host.
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 had a feature that tested a URL, but it did not check where that URL pointed, so an attacker could make the Jenkins server contact any host, even internal ones.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.