iQ Block Country < 1.2.13 - Admin+ Arbitrary File Deletion via Zip Slip
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
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
Other vulnerabilities in iQ Block Country
- 6.1iQ Block Country < 1.1.20 Reflected Cross-Site Scripting
- 5.5CVE-2021-36873: WordPress iQ Block Country <= 1.2.11 Stored XSS
CVE-2021-36873 - 5.3CVE-2022-41155: iQ Block Country <= 1.2.18 Country Blocking Bypass
CVE-2022-41155 - 5.3CVE-2022-1762: iQ Block Country Protection Bypass due to IP Spoofing
CVE-2022-1762
Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C