Skip to content
XXE Advisory Intermediate CVE-2023-37942

GHSL-2023-056: XML external entity (XXE) in Jenkins External Monitor Job Plugin - CVE-2023-37942

The Jenkins External Monitor Job Plugin did not configure its XML parser to prevent XML external entity (XXE) attacks. An authenticated attacker with Job Build permission could send a crafted HTTP request that forces Jenkins to download and parse a malicious DTD, leading to arbitrary file read, server-side request forgery, or denial of service.

ghsecuritylab Follow

Originally disclosed on GitHub Security Lab

Jenkins External Monitor Job Plugin 203.v683c09d993b9 and earlier does not configure its XML parser to prevent XML external entity (XXE) attacks.

ghsecuritylab, 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 XML parser was created without disabling DTDs or external entity resolution.

Impact

This issue may lead to arbitrary file read, server-side request forgery, and denial of service.

What the attacker needed

Authenticated attacker; Job Build permission; external job exists; attacker-controlled server for DTD

The fix

The plugin was fixed in version 207.v98a_a_37a_85525.

How it was found

  1. Set up a server hosting a malicious DTD.
  2. Send an authenticated POST request to the Jenkins endpoint for an existing external job, with an XML body that references the malicious DTD.
  3. The attacker receives the content of a local file as a query parameter on their 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.

XML external entity (XXE) is a flaw where an XML parser processes special instructions that can read local files or make network requests. Here, the plugin accepted XML from a user and parsed it without disabling those dangerous features, so an attacker could make the server read files or contact other systems.

What is XXE?

An XML parser resolves entities the attacker defines, reading local files or making the server send requests.

More by ghsecuritylab

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.

XML external entities (XXE)

The lesson behind this report.

An XML parser resolves entities the attacker defines, reading local files or making the server send requests.