Is PHP Immune to HTTP Response Response Vulnerabilities?
<?php
setcookie('test', "test\r\n<script>alert(1)</script>");
echo 1;
But it turns out that PHP automatically performs the encoding:
Set-Cookie: test=test%0D%0A%3Cscript%3Ealert%281%29%3C%2Fscript%3E
Does this mean that it is not possible to reproduce splitting the HTTP response in PHP?
+5
1 answer