SB2019071906 - Multiple vulnerabilities in Nevma Adaptive Images for WordPress



SB2019071906 - Multiple vulnerabilities in Nevma Adaptive Images for WordPress

Published: July 19, 2019 Updated: September 23, 2019

Security Bulletin ID SB2019071906
Severity
High
Patch available
YES
Number of vulnerabilities 2
Exploitation vector Remote access
Highest impact Code execution

Breakdown by Severity

High 50% Medium 50%
  • Low
  • Medium
  • High
  • Critical

Description

This security bulletin contains information about 2 secuirty vulnerabilities.


1) PHP file inclusion (CVE-ID: CVE-2019-14205)

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





2) Path traversal (CVE-ID: CVE-2019-14206)

The vulnerability allows a remote attacker to perform directory traversal attacks.

The vulnerability exists due to the plugin contains a cache mechanism that allows the generated resized images to be saved and cached to prevent excessive resources usage. A remote attacker can send a specially crafted file and delete arbitrary files on the system.

The only condition to successfully exploit this vulnerability is that the file that we pass as "$source_file" is newer than the file that we pass as "$cache_file".


Remediation

Install update from vendor's website.