CVE-2022-0246

iQ Block Country < 1.2.13 - Admin+ Arbitrary File Deletion via Zip Slip

2022-03-16 00:00
Ceylan Bozogullarindan

Strategic Overview

Status
Patched in 1.2.13
Affected Plugin
iQ Block Country
Affected Version
< 1.2.13
CVSS
6.8Medium
Weakness type
CWE-73 · External Control of File Name or Path
CVE
CVE-2022-0246
View all iQ Block Country vulnerabilities

At a glance

CVE-2022-0246 is a medium-severity External Control of File Name or Path vulnerability in the iQ Block Country WordPress plugin, affecting versions < 1.2.13. It carries a CVSS score of 6.8 (reachable over the network; low attack complexity; high confidentiality, integrity, availability impact). The issue is fixed in version 1.2.13; sites on affected versions should update now. Disclosed March 2022, reported by Ceylan Bozogullarindan.

Vulnerability Overview

The settings of the iQ Block Country WordPress plugin before 1.2.13 can be exported or imported using its backup functionality. An authorized user can import preconfigured settings of the plugin by uploading a zip file. After the uploading process, files in the uploaded zip file are extracted one by one. During the extraction process, existence of a file is checked. If the file exists, it is deleted without any security control by only considering the name of the extracted file. This behavior leads to "Zip Slip" vulnerability.

Technical Analysis

The vector marks this flaw as remotely reachable over the network, with low attack complexity — no special timing or configuration is needed. A successful exploit has high impact on confidentiality, integrity, availability — full site compromise territory.

CWE-73: External Control of File Name or Path

The product allows user input to control or influence paths or file names that are used in filesystem operations.

Remediation

Update to version 1.2.13, or a newer patched version

How does WordSec protect against this?

The attempt arrives as an ordinary request to iQ Block Country: 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: iQ Block Country 1.2.13 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