The Loco Translate plugin for WordPress is vulnerable to Arbitrary File Write/Overwrite via Path Traversal in all versions up to, and including, 2.8.4. This is due to the normalize() function processing '..' segments in user-supplied paths without verifying that the resolved absolute path remains within the base directory. This makes it possible for authenticated attackers, with Custom+ level access and above, to write translation files to arbitrary locations on the filesystem.
Affected Products
- timwhitlock, Loco Translate
References
- plugins.trac.wordpress.org/browser/loco-transl…Controller.php#L10
- plugins.trac.wordpress.org/browser/loco-transl…Controller.php#L16
- plugins.trac.wordpress.org/browser/loco-transl…rc/fs/File.php#L410
- plugins.trac.wordpress.org/changeset/3556744/loco-translate
- wordfence.com/threat-intel/vulnerabilities/id/…535?source=cve