Skip to content
SSRF Advisory Intermediate CVE-2023-32998CVE-2023-32999

GHSL-2023-075: Server-Side Request Forgery (SSRF) in the AppSpider Jenkins plugin - CVE-2023-32998, CVE-2023-32999

The AppSpider Jenkins plugin's doTestCredentials method fails to validate the appSpiderEntUrl parameter, allowing an unauthenticated attacker to make the Jenkins server send requests to arbitrary hosts. This enables blind server-side request forgery.

Alvaro Muñoz Follow

Originally disclosed on GitHub Security Lab

A Server-Side Request Forgery (SSRF) vulnerability was found in the pspider-build-scanner-plugin. The vulnerability resides in the com.rapid7.jenkinspider.PostBuildScan#doTestCredentials 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 plugin does not validate or sanitise the user-supplied appSpiderEntUrl parameter before using it to make a server-side request.

Impact

An attacker could make the Jenkins server send requests to arbitrary hosts, potentially reaching internal services.

What the attacker needed

Jenkins with the AppSpider plugin installed; No authentication required

The fix

The issue was fixed in version 1.0.16 of the plugin.

How it was found

  1. Send a request to the Jenkins endpoint /jenkins/descriptorByName/com.rapid7.jenkinspider.PostBuildScan/testCredentials with the appSpiderEntUrl parameter set to an attacker-controlled host.
  2. The Jenkins server then sends a POST request to that host with the supplied credentials.

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, the Jenkins plugin takes a URL from the user and uses it to test credentials without checking where it points, so an attacker can make the Jenkins server send requests to any host they choose.

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.