漏洞描述
The DirectoryPress plugin for WordPress is vulnerable to Local File Inclusion in all versions up to, and including, 3.6.27. The directorypress_listings_handler class merges user-supplied GET parameters into shortcode attributes when include_get_params is enabled (default). The template parameter is passed unsanitized through directorypress_display_template() into directorypress_has_template(), which checks is_file() on the raw user input and includes it directly via PHP include(). This makes it possible for unauthenticated attackers to include and execute arbitrary files on the server, allowing the execution of any PHP code in those files. Exploitation requires a page with a DirectoryPress shortcode to exist.
影响产品
修复建议
建议关注厂商安全公告,及时升级至已修复版本,并结合实际资产暴露情况采取缓解措施。