CVE-2023-2117

Image Optimizer by 10web <= 1.0.26 - Authenticated(Administator+) Directory Traversal

2023-05-02 00:00
Chien Vuong

Strategic Overview

Status
Patched in 1.0.27
Affected Version
<= 1.0.26
CVSS
2.7Low
Weakness type
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
CVE
CVE-2023-2117
View all Image Optimizer by 10web – Image Optimizer and Compression plugin vulnerabilities

At a glance

CVE-2023-2117 is a low-severity Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in the Image Optimizer by 10web WordPress plugin, affecting versions <= 1.0.26. It carries a CVSS score of 2.7 (reachable over the network; low attack complexity). Exploitation requires an authenticated account at Administator level or above. The issue is fixed in version 1.0.27; sites on affected versions should update now. Disclosed May 2023, reported by Chien Vuong.

Vulnerability Overview

The Image Optimizer by 10web plugin for WordPress is vulnerable to Directory Traversal in versions up to, and including, 1.0.26 via the dir parameter in the get_subdirs AJAX function. This allows authenticated attackers with administrator-level permissions or above to view the directory structure of arbitrary folders on the server, though it does not reveal or provide access to any files.

Technical Analysis

The vector marks this flaw as remotely reachable over the network, with low attack complexity — no special timing or configuration is needed, and no interaction from a victim user.

CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Reaching this weakness in Image Optimizer by 10web <= 1.0.26 takes an account at Administator level or above. Path traversal happens when user-controlled text is used to build a filesystem path without being constrained to an intended directory, so sequences like ../ walk the resolved path somewhere else.

Depending on the operation, it means reading files outside the intended folder — wp-config.php being the usual target — or writing to and deleting paths the web server can touch. For Image Optimizer by 10web the fix is 1.0.27: builds <= 1.0.26 are affected, anything from 1.0.27 onward is not.

Remediation

Update to version 1.0.27, or a newer patched version

How does WordSec protect against this?

An attacker needs Administator access first, so the firewall sees the attempt as traffic from a logged-in account: WordSec's web application firewall inspects request payloads before WordPress loads them. None of that substitutes for the fix: Image Optimizer by 10web 1.0.27 closes this, and updating the plugin is the step that ends it.

  • Firewall
  • Alerts

External References

Related records

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