Vulnerable: PHP4, PHP5 with use of sendmail 8.13.4 >< When safemode disabled and open_basedir restriction in effect, we can pass extra parameters to sendmail command in mail function, especially the -C and -X arguments. -C for alternate configuration file -X to log all in a file Can be used to view files, pass the file to view to C argument and store content in file passed to X argument. When safemode enabled and open_basedir restriction in effect, we can pass extra parameters to sendmail command in mb_send_mail function. Solution: Use other sendmail command and don't allow extra parameters for mb_send_mail when safemode enabled ".file_get_contents($file).""; } ?>