Skip to content
File upload Write-up Intermediate

WordPress Royal Elementor Addons: RCE Zafiyet Analizi (CVE-2023�

The Royal Elementor Addons plugin for WordPress allowed an unauthenticated attacker to upload a PHP file by manipulating the allowed_file_types parameter, leading to remote code execution. The attacker could then execute arbitrary commands on the server.

Erdem Ceylan Follow

Published on medium.com

Merhaba arkadaşlar! Bugün siber güvenlik dünyasında sıkça karşılaştığımız ve sistemlerin tam kontrolünün ele geçirilmesine yol açabilen kritik bir zafiyeti, CVE-2023–5360'ı inceleyeceğiz.

Erdem Ceylan, on medium.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 plugin's file upload function trusted a user-supplied parameter to determine allowed file extensions, instead of enforcing a server-side whitelist.

Impact

An unauthenticated attacker could upload and execute a PHP shell, leading to full server compromise and the ability to run arbitrary commands.

What the attacker needed

WordPress with vulnerable plugin; no authentication required

The fix

The plugin was fixed in version 1.3.79; additionally, blocking PHP execution in the uploads directory and using a WAF are recommended.

How it was found

  1. Fetch the target site's homepage to extract a nonce from the WprConfig JavaScript object.
  2. Send a POST request to admin-ajax.php with action wpr_addons_upload_file, setting allowed_file_types to a PHP extension and including a PHP file.
  3. Receive the URL of the uploaded file from the JSON response.
  4. Access the uploaded file with a command parameter to execute arbitrary commands.

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.

A WordPress plugin lets users upload files, but it did not properly check what kind of file was being uploaded. An attacker could trick the plugin into accepting a malicious PHP script, which then runs on the server and gives the attacker control.

What is File upload?

An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.

More by Erdem Ceylan

View all

7 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Unrestricted file upload

The lesson behind this report.

An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.