Skip to content
SSRF Advisory Intermediate CVE-2023-32262

GHSL-2023-070: Server-Side Request Forgery (SSRF) in jenkinsci/dimensionsscm-plugin - CVE-2023-32262

The dimensionsscm-plugin's server configuration check endpoint did not validate the server address parameter, allowing an authenticated attacker with Job/Configure permission to make Jenkins send stored credentials to an attacker-controlled server. This could leak sensitive secret credentials.

Alvaro Muñoz Follow

Originally disclosed on GitHub Security Lab

A Server-Side Request Forgery (SSRF) vulnerability in jenkinsci/dimensionsscm-plugin allows the leak of sensitive credentials to an attacker-controlled server. The issue arises from a lack of proper input validation/sanitization of the dimensionsscm.serverPlugin parameter in the DimensionsScm#doCheckServerConfig…

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's server check method used a user-supplied server address without validation and read credentials with system-level access, then sent them to that address.

Impact

Sensitive secret credentials could be leaked to an attacker-controlled server; the attacker must have Job/Configure permission.

What the attacker needed

Jenkins account with Job/Configure permission; ability to send HTTP requests to Jenkins

How it was found

  1. Send a POST request to the plugin's checkServerGlobal endpoint with a chosen credentialsId and a serverPlugin value pointing to an attacker-controlled server.
  2. The plugin reads the specified credentials with system-level access.
  3. The plugin attempts a login to the supplied server address, sending the 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 can make a server send a request to a destination of their choosing. Here, a Jenkins plugin let a user supply a server address, and Jenkins then sent stored credentials to that address. The attacker needed a Jenkins account with permission to configure a job.

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.