GHSL-2023-072: Several Server-Side Request Forgery (SSRF) vulnerabilities in the Codedx Jenkins plugin - CVE-2023-2195, CVE-2023-2631
The Codedx Jenkins plugin had several server-side request forgery (SSRF) vulnerabilities in methods that accept a URL parameter without proper validation. An attacker could send requests to arbitrary hosts without authentication, potentially scanning the internal network.
Originally disclosed on GitHub Security Lab
Several Server-Side Request Forgery (SSRF) vulnerabilities were found in the codedx-plugin. The vulnerabilities resides in the org.jenkinsci.plugins.codedx.CodeDxClient#doFillProjectIdItems, doCheckSelfSignedCertificateFingerprint and doCheckUrl methods 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 methods lack validation and sanitisation of the user-supplied URL parameter, allowing arbitrary outbound requests.
Impact
The vulnerability allows attackers to send requests to arbitrary hosts/paths without authentication, and while they cannot read the response, they could use it to scan the internal network.
What the attacker needed
No authentication required; Network access to Jenkins
The fix
The issue was fixed according to the timeline.
How it was found
- Send a request to the Jenkins endpoint for the CodeDxPublisher descriptor, method fillProjectIdItems, with a url parameter pointing to an attacker-controlled host.
- Include arbitrary values for key and selfSignedCertificateFingerprint parameters.
- The server makes a request to the specified 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.
Server-side request forgery (SSRF) is when an attacker makes a server send requests to other systems, often to reach internal services. Here, the plugin took a URL from the user and fetched it without checking where it pointed, so an attacker could make the Jenkins server contact any host. The attacker could not read the responses, but could still use the server 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.