Skip to content
RCE Write-up Intermediate

CVE-2023-35150: Arbitrary Code Injection In XWiki.Org XWiki

XWiki's Invitation Application failed to sanitise the request-URI before rendering a link, allowing an authenticated attacker to inject script code that is evaluated when the link is displayed. This could lead to arbitrary code injection on the server.

Simon Humbert Follow

Published on zerodayinitiative.com

A code injection vulnerability has been reported in the XWiki.Org XWiki. The vulnerability is due to improper input validation when rendering a link in the Invitation Application.

Simon Humbert, Lucas Miller, on zerodayinitiative.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

Impact

An authenticated attacker could achieve arbitrary code injection on the server, potentially leading to remote code execution.

What the attacker needed

Authenticated user account; target runs vulnerable XWiki version

How it was found

  1. Send a request to the Invitation Application endpoint without the action parameter.
  2. Include script code in the request-URI.
  3. The server renders a link containing the unsanitised URI, causing the script code to be evaluated.

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.

XWiki is a wiki platform that lets users write pages with special markup, including code that runs on the server. The Invitation Application builds a link from the web address you request without cleaning it first, so an attacker can slip in code that the server then runs. This means someone with a normal account could take over the server.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.