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

Medium 4.9 Published Updated

An authenticated admin can delete arbitrary files on the server via a Zip Slip vulnerability in the plugin's import functionality.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2022-0246?

CVE-2022-0246 is a medium-severity path traversal vulnerability in Unknown iQ Block Country, published on 11 Apr 2022. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

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.

Weakness: CWE-73

Which versions are affected by CVE-2022-0246?

It affects 1 product.

Products include Webence Iq Block Country.

How do I fix CVE-2022-0246?

No fix has been published for CVE-2022-0246 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2022-0246 being exploited?

There is no known exploitation of CVE-2022-0246 in the wild and no public exploit code.

Sources

Also known as GHSA-cxp6-jhjh-h4hg.

Is CVE-2022-0246 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free