CVE-2022-2268

WP All Import <= 3.6.7 - Admin+ Arbitrary File Upload

2022-07-01 00:00
moresec

Strategic Overview

Status
Patched in 3.6.8
Affected Version
<= 3.6.7
CVSS
4.8Medium
Weakness type
CWE-94 · Improper Control of Generation of Code ('Code Injection')
CVE
CVE-2022-2268
View all WP All Import – Drag & Drop Import for CSV, XML, Excel & Google Sheets vulnerabilities

At a glance

CVE-2022-2268 is a medium-severity Improper Control of Generation of Code ('Code Injection') vulnerability in the WP All Import WordPress plugin, affecting versions <= 3.6.7. It carries a CVSS score of 4.8 (reachable over the network; low attack complexity). The issue is fixed in version 3.6.8; sites on affected versions should update now. Disclosed July 2022, reported by moresec.

Vulnerability Overview

The Import any XML or CSV File to WordPress plugin before 3.6.8 accepts all zip files and automatically extracts the zip file without validating the extracted file type. Allowing high privilege users such as admin to upload an arbitrary file like PHP, leading to RCE

Technical Analysis

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

CWE-94: Improper Control of Generation of Code ('Code Injection')

Reaching this weakness in WP All Import <= 3.6.7 takes a caller who can reach the endpoint. Code injection means input from a request reaches a language construct that evaluates code, so the attacker's text is executed rather than treated as data.

The injected code runs with the web server's privileges, giving the attacker the same access to the database and filesystem as WordPress itself. For WP All Import the fix is 3.6.8: builds <= 3.6.7 are affected, anything from 3.6.8 onward is not.

Remediation

Update to version 3.6.8, or a newer patched version

How does WordSec protect against this?

The attempt arrives as an ordinary request to WP All Import: WordSec's web application firewall inspects request payloads before WordPress loads them. Classes like this one can leave something behind, so the staged malware scanner is the second half: it looks for dropped files and modified code rather than for the request that created them. None of that substitutes for the fix: WP All Import 3.6.8 closes this, and updating the plugin is the step that ends it.

  • Firewall
  • Scanner
  • Alerts

External References

Related records

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