Security flaw in API
-
Hi,
After website was hacked. We write protected all files on webserver and activated deeper logging.
We detected an attack using a flaw in your plugin.
Hacker is using “quadmenu_compiler_save” API over admin-ajax.php POST request with php code in [css] paramater.I can provide full POST parameters content if needed. Will not share here to avoid giving ideas to bad intentioned people…
I think following line should be fixed in compiler.php to not only strip slashes but also avoid PHP injection.
$this->save_file(str_replace('.less', '.css', basename($_POST['output']['imports'][0])), QUADMENU_PATH_CSS, stripslashes($_POST['output']['css']));R
Gregory
The topic ‘Security flaw in API’ is closed to new replies.