Exploit database

Vulnerability

CVE-2019-8943

Vulnerability details

Score
6.5
Severity
medium

CVSS 3.1 · NVD

Vector string

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

Description

WordPress through 5.0.3 allows Path Traversal in wp_crop_image(). An attacker (who has privileges to crop an image) can write the output image to an arbitrary directory via a filename containing two image extensions and ../ sequences, such as a filename ending with the .jpg?/../../file.jpg substring.

CVE Program

Exploit source choices

7 sources
WordPress Crop-image Shell Upload
MSF-multi--http--wp_crop_rceMetasploitPHP / remote

This module exploits a path traversal and a local file inclusion vulnerability on WordPress versions 5.0.0 and <= 4.9.8. The crop-image function allows a user, with at least author privileges, to resize an image and perform a path traversal by changing the _wp_attached_file reference during the upload. The second part of the exploit will include this image in the current theme by changing the _wp_page_template attribute when creating a post. This exploit module only works for Unix-based systems currently.

2019-02-19wp_crop_rce.rb
brianwrf/wordpress_4.9.8_rce_poc
GH-9ca8931fb5d9c1e3e576235d02ebede5GitHubUnofficial GitHub source

A simple PoC for WordPress RCE (author priviledge), refer to CVE-2019-8942 and CVE-2019-8943.

2019-02-255 files · 73 stars
oussama-rahali/cve-2019-8943
GH-61872dc4be00a43e0e86858951632496GitHubUnofficial GitHub source

Exploit of CVE-2019-8942 and CVE-2019-8943

2021-02-013 files · 24 stars
0xabdoulaye/ctfs-journey
GH-b98d41dc379aad1c429f52ad55e1bfa4GitHubUnofficial GitHub source

Embark on my CTFs Journey, where I document my conquests and lessons learned while navigating the dynamic challenges of Capture The Flag contests. From cracking codes to outsmarting puzzles, join me in exploring the diverse landscape of cybersecurity challenges.

2023-08-27296 files · 10 stars
hadrian3689/wordpress_cropimage
GH-4a8df1c7cf8c8f1b6e02b09d96cbc955GitHubUnofficial GitHub source

CVE-2019-8943 WordPress Crop-Image

2022-09-203 files · 3 stars