Home > PHP5, Web-Security, Web-development > Защищаем gif файлы от атаки хакеров

Защищаем gif файлы от атаки хакеров

October 29th, 2009

Нашел очень неплохое решение проблемы инъекций php кода в gif файлы

1
2
3
4
5
$file = 'image.gif.php';

Header('Content-Type: image/gif');

readfile('images/'.basename($file));

Источник идеи: http://www.phpclasses.org/blog/post/67-PHP-security-exploit-with-GIF-images.html

admin PHP5, Web-Security, Web-development

  1. No comments yet.