Exploit database

GH-4e14e821fe70fe602c844dd60509c614

dandanllab/php-5.6.40-cve-2026-109618-109619

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-109618

411 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files13

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

php-5.6.40/ext/fileinfo/fileinfo.php

PHP · 865 bytes
<?php
if(!extension_loaded('fileinfo')) {
	dl('fileinfo.' . PHP_SHLIB_SUFFIX);
}
if(!extension_loaded('fileinfo')) {
	die("fileinfo extension is not available, please compile it.\n");
}

// normal operation
$res = finfo_open(FILEINFO_MIME); /* return mime type ala mimetype extension */
$files = glob("*");
foreach ($files as $file) {
	echo finfo_file($res, $file) . "\n";
}
finfo_close($res);

// OO mode
/*
 * FILEINFO_PRESERVE_ATIME - if possible preserve the original access time
 * FILEINFO_SYMLINK - follow symlinks
 * FILEINFO_DEVICES - look at the contents of blocks or character special devices
 * FILEINFO_COMPRESS - decompress compressed files
 */
$fi = new finfo(FILEINFO_PRESERVE_ATIME|FILEINFO_SYMLINK|FILEINFO_DEVICES|FILEINFO_COMPRESS);
$files = glob("*");
foreach ($files as $file) {
        echo $fi->buffer(file_get_contents($file)) . "\n";
}
?>