Exploit databaseDownload repository ZIP
GH-5b899c60230f40888f752f1bcf76cebb
slabbdev/php-cve-2026-115560-kit
Sources for CVE-2026-115560
9 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files2
slabbdev/php-cve-2026-115560-kitRevision 563bb132a8fd
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
target/index.php
PHP · 1,056 bytes<?php
// CVE-2026-115560 demo target — 127.0.0.1 only. Never expose this.
require __DIR__ . '/DemoVuln.php';
// save_path comes from the server config (-d session.save_path in run.sh):
// overriding it here would split the store — the upload-progress hook writes
// with the CONFIG path during request init, before any script runs.
$action = $_GET['a'] ?? 'home';
if ($action === 'read') {
// The application-code leg of the combo: switch the serializer AT RUNTIME,
// exactly as the advisory describes ("switch it to php ... with ini_set()
// before calling session_start()").
ini_set('session.serialize_handler', 'php');
session_start();
echo "read OK — session keys: ", json_encode(array_keys($_SESSION)), "\n";
exit;
}
// Normal page: session started with the CONFIGURED handler (php_binary).
session_start();
echo "home — serializer=", ini_get('session.serialize_handler'),
" upload_progress=", ini_get('session.upload_progress.enabled'),
" cleanup=", ini_get('session.upload_progress.cleanup'), "\n";