Skip to content
SSRF Advisory Intermediate CVE-2023-3414CVE-2023-3442

GHSL-2023-067: Server-Side Request Forgery (SSRF) in jenkinsci/servicenow-devops-plugin - CVE-2023-3414, CVE-2023-3442

The Jenkins servicenow-devops-plugin's test connection endpoint accepted an arbitrary instanceUrl and credentialsId, allowing an attacker to make Jenkins send stored credentials to an attacker-controlled server. This could leak sensitive secrets.

Alvaro Muñoz Follow

Originally disclosed on GitHub Security Lab

A Server-Side Request Forgery (SSRF) vulnerability in jenkinsci/servicenow-devops-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 instanceUrl parameter in the DevOpsConfiguration#doTestConnection.

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

Likely the instanceUrl parameter was not validated to restrict requests to trusted hosts, and credentials were read with system-level permissions regardless of the requesting user.

Impact

An attacker could leak sensitive credentials; the text notes that authentication may not be required but Overall/Read permission might be needed if role-based authorization is in place.

What the attacker needed

Access to the Jenkins instance; Overall/Read permission if role-based auth is used

The fix

The plugin was fixed by requiring POST requests and Overall/Administer permission for the affected form validation method.

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.

This is a server-side request forgery (SSRF) bug. The plugin had a feature that let users test a connection to a ServiceNow instance by providing a URL. Because the URL was not checked, an attacker could give their own server's address and also specify which stored password to use, causing Jenkins to send that password to the attacker.

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.