Skip to content
XXE Write-up Intermediate

OpenOlat - XML external entity (XXE) injection (CVE-2024-28198)

The draw.io integration in OpenOlat parsed user-supplied SVG files with an XML parser that allowed external entities, so an attacker could read arbitrary files and perform server-side request forgery. The vulnerability was exploited on a standard installation to read files accessible to the application user.

Maik Follow

Published on secfault-security.com

OpenOlat is a learning management system (LMS), an internet-based learning platform for teaching, learning, assessment and communication. It is used by a number of universities, companies and other private and public institutions and can be adapted to organizational needs.

Maik, on secfault-security.com

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 write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The DrawioServiceImpl class used a default DocumentBuilder to parse user-controlled SVG files without disabling external entity processing.

Impact

An attacker could read arbitrary files accessible to the application user and perform server-side request forgery to prepare further attacks.

What the attacker needed

Draw.io integration enabled; valid access token; ability to upload files

The fix

The vulnerability was fixed in commit 23e6212 and released in version 18.1.6.

How it was found

  1. Upload a file with a .drawio extension containing an XXE payload.
  2. Edit the file twice and close the first editor, leaving the second open to avoid file locking.
  3. Capture the file id and access token from the REST API call to /drawio/files/{fileId}/info during the second edit.
  4. Rename the file to have a .svg extension.
  5. Call /drawio/files/{fileId}/content with the captured file id and access token to trigger the XXE payload.

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 write-up 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 pull in data from other files or URLs. Here, the application used a default parser that allowed these instructions, so an attacker could make the server read local files and send their contents back in the response.

What is XXE?

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

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.