Photo Gallery by 10Web – Mobile-Friendly Image Gallery <= 1.8.23 - Authenticated (Contributor+) Path Traversal via esc_dir Function
Strategic Overview
- Status
- Patched in 1.8.24
- Affected Plugin
- Photo Gallery by 10Web – Mobile-Friendly Image Gallery
- Affected Version
<= 1.8.23- CVSS
- 6.8Medium
- Weakness type
- CWE-35 · Path Traversal: '.../...//'
- CVE
CVE-2024-5481
At a glance
CVE-2024-5481 is a medium-severity Path Traversal: '.../...//' vulnerability in the Photo Gallery by 10Web WordPress plugin, affecting versions <= 1.8.23. It carries a CVSS score of 6.8 (reachable over the network; high confidentiality, availability impact). Exploitation requires an authenticated account at Contributor level or above. The issue is fixed in version 1.8.24; sites on affected versions should update now. Disclosed June 2024, reported by Tobias Weißhaar (kun_19).
Vulnerability Overview
The Photo Gallery by 10Web – Mobile-Friendly Image Gallery plugin for WordPress is vulnerable to Path Traversal in all versions up to, and including, 1.8.23 via the esc_dir function. This makes it possible for authenticated attackers to cut and paste (copy) the contents of arbitrary files on the server, which can contain sensitive information, and to cut (delete) arbitrary directories, including the root WordPress directory. By default this can be exploited by administrators only. In the premium version of the plugin, administrators can give gallery edit permissions to lower level users, which might make this exploitable by users as low as contributors.
Technical Analysis
The vector marks this flaw as remotely reachable over the network, and no interaction from a victim user. A successful exploit has high impact on confidentiality, availability.
CWE-35: Path Traversal: '.../...//'
The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize '.../...//' (doubled triple dot slash) sequences that can resolve to a location that is outside of that directory.
Remediation
Update to version 1.8.24, or a newer patched version
How does WordSec protect against this?
The fix is the thing that ends this: Photo Gallery by 10Web 1.8.24 closes this, and updating the plugin is the step that ends it.
- Alerts
External References
Related records
Other vulnerabilities in Photo Gallery by 10Web – Mobile-Friendly Image Gallery
- 9.8CVE-2022-0169: Photo Gallery by 10Web <= 1.5.87 SQL Injection
CVE-2022-0169 - 9.8CVE-2021-24139: Photo Gallery by 10Web <= 1.5.54 SQL Injection
CVE-2021-24139 - 9.8CVE-2019-16119: Photo Gallery by 10Web <= 1.5.34 SQL Injection
CVE-2019-16119 - 9.8CVE-2019-14313: Photo Gallery by 10Web <= 1.5.30 SQL Injection
CVE-2019-14313 - 9.8CVE-2015-1055: Photo Gallery by 10Web <= 1.2.7 Blind SQL Injection
CVE-2015-1055 - 9.1CVE-2024-0221: Photo Gallery by 10Web… Directory Traversal
CVE-2024-0221 - 8.8CVE-2022-1281: Photo Gallery by 10Web <= 1.6.2 SQL Injection
CVE-2022-1281 - 8.8Photo Gallery by 10Web <= 1.3.37 SQL Injection
Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C