Full RCE exploit chain for two critical PHP vulnerabilities in the multipart parser and session upload progress handler, plus three bypass exploits that defeat the official security patch (PHP 8.4.27) and all recommended mitigations. Core exploits: - CVE-2026-109618: OOM in multipart parser → session persistence → LFI → RCE - CVE-2026-109619: Session poisoning via upload progress (direct + race) → RCE - WordPress-targeted wrapper with LFI auto-detection Patch bypass exploits (confirmed RCE on PHP 8.4.27): - Race condition: TOCTOU inherent to upload progress feature design - RLIMIT_AS: mmap() failure bypasses the patched OOM handler - /proc/PID/fd: temp file inclusion bypasses ALL mitigations
18 lines
588 B
PHP
18 lines
588 B
PHP
<?php
|
|
header('Content-Type: text/plain');
|
|
$pid = getmypid();
|
|
$status_pre = session_status();
|
|
$sid_pre = session_id();
|
|
$ok = @session_start();
|
|
$status_post = session_status();
|
|
$sid_post = session_id();
|
|
$data = isset($_SESSION) ? $_SESSION : [];
|
|
echo "pid=$pid\n";
|
|
echo "session_status_before=$status_pre\n";
|
|
echo "session_id_before=$sid_pre\n";
|
|
echo "session_start_ok=" . var_export($ok, true) . "\n";
|
|
echo "session_status_after=$status_post\n";
|
|
echo "session_id_after=$sid_post\n";
|
|
echo "session_data=" . json_encode($data) . "\n";
|
|
echo "session_save_path=" . session_save_path() . "\n";
|