cleantalk
Vulnerabilities and Security Researches

W3 Total Cache, 752fc738-496f-44fd-9ca6-24e29ef8e75e

Application

W3 Total Cache

Published on
-
Research Description
W3 Total Cache [w3-total-cache] < 0.9.5 W3 Total Cache &lt;= 0.9.4.1 &ndash; Authenticated Arbitrary PHP Code Execution This one is so mush easy to exploit using the import settings feature, this is what W3TC will do one your file is uploaded: ********** /** * Imports config content * * @param string $filename * @return boolean */ function import($filename) { if (file_exists($filename) &amp;&amp; is_readable($filename)) { $data = file_get_contents($filename); if (substr($data, 0, 5) == &#039;&lt;?php&#039;) $data = substr($data, 5); $config = eval($data); if (is_array($config)) { foreach ($config as $key =&gt; $value) $this-&gt;set($key, $value); return true; } } return false; } ********** The bad line is $config = eval($data); because it means that all my file content will be evaluated like any other PHP code. Basically we can send a PHP script that will create a backdoor.
Affected versions
max 0.9.5.
Status
vulnerable