GHSL-2023-066: Server-Side Request Forgery (SSRF) in jenkinsci/macstadium-orka-plugin - CVE-2023-37949
The Jenkins plugin's endpoint for filling node items reads a credential specified by the user and sends it to an attacker-controlled server, leaking the secret. An attacker with Overall/Read permission could exfiltrate any stored credential.
Originally disclosed on GitHub Security Lab
A Server-Side Request Forgery (SSRF) vulnerability in jenkinsci/macstadium-orka-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 orkaEndpoint parameter in the OrkaAgent#doFillNodeItems.
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 reads credentials with system-level permissions and sends them to a user-supplied URL without validating that the URL is safe.
Impact
This could lead to the leak of sensitive secret credentials.
What the attacker needed
Overall/Read permission for anonymous users or…
The fix
The plugin was fixed in version 1.34.
How it was found
- Send a request to the Jenkins endpoint with the target server and credential ID as parameters.
- The plugin reads the specified credential with system permissions.
- The plugin sends the credential to the attacker-controlled server.
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 Jenkins plugin has a feature that fetches a list of nodes from a server you specify. It also fetches a stored password (credential) and sends it to that server. An attacker can tell the plugin to send the password to their own server, stealing it.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.