CVE-2024-0221 Photo Gallery by 10Web - Mobile-Friendly Image Gallery <= 1.8.19 - Directory Traversal to Arbitrary File Rename
Authenticated attackers can rename arbitrary files via directory traversal, potentially leading to site takeover by renaming critical configuration files.
- 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-2024-0221?
CVE-2024-0221 is a critical path traversal vulnerability in Photo Gallery by 10Web – Mobile-Friendly Image Gallery, published on 5 Feb 2024. An attacker needs administrator access to exploit it, with no action from the victim.
Official description
The Photo Gallery by 10Web – Mobile-Friendly Image Gallery plugin for WordPress is vulnerable to Directory Traversal in all versions up to, and including, 1.8.19 via the rename_item function. This makes it possible for authenticated attackers to rename arbitrary files on the server. This can lead to site takeovers if the wp-config.php file of a site can be renamed. By default this can be exploited by administrators only. In the premium version of the plugin, administrators can give gallery management permissions to lower level users, which might make this exploitable by users as low as contributors.
Weakness: CWE-22
Which versions are affected by CVE-2024-0221?
It affects 1 product.
Products include 10web Photo Gallery.
How do I fix CVE-2024-0221?
No fix has been published for CVE-2024-0221 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-2024-0221 being exploited?
There is no known exploitation of CVE-2024-0221 in the wild and no public exploit code.
Other vulnerabilities in Photo Gallery by 10Web – Mobile-Friendly Image Gallery
Sources
Also known as GHSA-rpjv-hwjc-55jj.