WordPress WP Mobile Edition Plugin...

- AV AC AU C I A
发布: 2025-04-13
修订: 2025-04-13

<!-- wp-mobile-edition-pn-cssphp-arbitrary-flie-dl.md --> ## 影响: - WP Mobile Edition版本低于2.2.7有该漏洞。 - 首次启用WP Mobile Edition 插件之后,即使停用或删除该插件,漏洞也会一直存在。 - 即使升级插件,若已经启用过漏洞存在的版本,漏洞也同样存在。 - css.php用于压缩css文件,并不只存在于该插件之中,而是 https://github.com/mrclay/ 的开源代码,使用该文件的网站也存在该漏洞。 ## 详情 插件下载地址:https://downloads.wordpress.org/plugin/wp-mobile-edition.2.2.7.zip 首次启用该插件,插件会自动安装一个theme:mTheme-Unus。该theme下css/css.php文件存在任意文件可读漏洞。 漏洞代码: ``` foreach ($files as $file) { $content .= file_get_contents($file); } // Remove comments $content = preg_replace('!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $content); // Remove tabs, spaces, newlines, etc... $content = str_replace(array("\r", "\n", "\t", ' ', ' '), '', $content); // Delete cache files older than an hour $oldDate = time()-3600; $cachedFiles = scandir($cachePath); foreach ($cachedFiles as $file) { $filemtime = @filemtime($cachePath.$file); if (strlen($file) == 32 and ($filemtime === false or $filemtime < $oldDate)) { unlink($cachePath.$file); } } // Write cache...

0%
暂无可用Exp或PoC
当前有0条受影响产品信息