Re: Issues of Files when using Null Bytes in PHP
I am providing you with an example, so that it would be better for you to understand the topic. The following example shows a vulnerable code that demonstrates this problem :
PHP Code:
<?php
$file = $_GET['file']; // "../../etc/passwd\0"
if (file_exists('/home/wwwrun/'.$file.'.php')) {
include '/home/wwwrun/'.$file.'.php';
}
?>
I do to dead flowers what people at morgues do to dead people. Suck all the moisture out, dip them in plastic, paint them up pretty and put them in a nice frame.
Bookmarks