Skip to content
RCE Write-up Advanced

JupiterX Core: Chaining Limited Vulns from SVG to RCE

A WordPress plugin allowed a contributor-level user to upload SVG files containing PHP code, and a separate file inclusion flaw in an Elementor widget could execute those files as PHP. By chaining these issues and predicting or leaking the uploaded filename, an attacker could achieve remote code execution on the server.

sec.stealthcopter.com

Published on sec.stealthcopter.com

On their own, these two vulnerabilities in JupiterX Core wouldn’t have been very impactful or likely to get a bounty; but by chaining them together, the exploit could be escalated from a simple SVG upload to full Remote Code Execution (RCE).

The author, on sec.stealthcopter.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

Likely the plugin used a deny-list for file extensions and a predictable filename generator, and then included a user-controlled path in a PHP include statement without proper validation.

Impact

A contributor-level user could execute arbitrary commands on the server, leading to full remote code execution.

What the attacker needed

Contributor-level account; Plugin version <= 4.8.6; Ability to create posts with Elementor widgets

The fix

The vulnerabilities were fixed in version 4.8.8.

How it was found

  1. Log into the target WordPress site with contributor credentials.
  2. Create a new post and add a form widget that allows SVG uploads.
  3. Upload an SVG file containing PHP code.
  4. Obtain the uploaded filename by brute-forcing the predictable identifier or by receiving the form submission email.
  5. Create another post with a video widget that includes the uploaded SVG via path traversal.
  6. Visit the post to trigger execution of the PHP code.

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.

This report describes two weaknesses in a WordPress plugin. One lets a user with a low-privilege account upload a file that can contain hidden code. The other lets an attacker trick the website into running that file as a program, which can give them control of 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.