I am running a PHP site using Apache + mod_fastcgi. An error occurred in the Apache error log:
malformed header from script 'ajax.php': Bad header: /;ls -la HTTP/1.0 400 Bad Requ
Here is just a snippet of code in ajax.php that sends the header:
if(!isset($_POST['action'])) {
header ($_SERVER['SERVER_PROTOCOL'] . ' 400 Bad Request');
exit;
}
So where did the /;ls -lathing come from ? Can SERVER_PROTOCOL be entered in any way?
source
share