WordPress Core <= 5.0.3 - Path Traversal and Local File Inclusion

2019-02-19 00:00
Wilfried Becard

Strategic Overview

Status
Patched in 5.0.3
Affected CoreWordPress 5.0
Affected Version<= 5.0.2
CVSS6.5Medium
CVECVE-2019-8943
View all WordPress 5.0 vulnerabilities

Vulnerability Overview

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.

Technical Analysis

REMEDIATION: Update to version 5.0.3, or a newer patched version --- IDENTIFIER: CWE-98 (Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion')) The PHP application receives input from an upstream component, but it does not restrict or incorrectly restricts the input before its usage in require, include, or similar functions.

External References

Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C