WordPress Plugin Vulnerabilities
Unlimited Elements For Elementor < 2.0.7 - Contributor+ Arbitrary File Read via Path Traversal in Repeater JSON/CSV URL with Path Traversal
Description
The plugin is vulnerable to Arbitrary File Read via the Repeater JSON/CSV URL parameter due to insufficient path traversal sanitization in the URLtoRelative() and urlToPath() functions, combined with the ability to enable debug output in widget settings. The URLtoRelative() function only performs a simple string replacement to remove the site's base URL without sanitizing path traversal sequences (../), and the cleanPath() function only normalizes directory separators without removing traversal components. This allows an attacker to provide a URL like http://site.com/../../../../etc/passwd which, after URLtoRelative() strips the domain, results in /../../../../etc/passwd being concatenated with the base path and ultimately resolved to /etc/passwd. This makes it possible for authenticated attackers with Author-level access and above to read arbitrary local files from the WordPress host, including sensitive files such as wp-config.