PHP file inclusion in Adaptive Images for WordPress - CVE-2019-14205

 

PHP file inclusion in Adaptive Images for WordPress - CVE-2019-14205

Published: July 23, 2019


Vulnerability identifier: #VU19312
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/U:Amber
CVE-ID: CVE-2019-14205
CWE-ID: CWE-98
Exploitation vector: Remote access
Exploit availability: Public exploit is available
Vendor: Nevma
Affected software:
Adaptive Images for WordPress

Detailed vulnerability description

The vulnerability allows a remote attacker to include arbitrary file on the system.

The vulnerability exists due to input validation error when processing directory traversal sequences passed via the "$_REQUEST['adaptive-images-settings']['source_file']" parameter in "adaptive-images-script.php". A remote attacker can set in an arbitrary way the file requested that will be served from the script.

PoC:

http://[host]/wp-content/uploads/2019/05/image.jpg?adaptive-images-settings[source_file]=../../../wp-config.php

http://[host]/wp-content/uploads/2019/05/image.jpg?adaptive-images-settings[source_file]=/etc/passwd





How to mitigate CVE-2019-14205

Install updates from vendor's website.

Sources