Exploit database

GH-9e64c9b10d1ef7ed754ddf7f949cdda2

0xnoobsec/php2shell

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-109618

412 sources

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

Repository files10
0xnoobsec/php2shellRevision 9fa18d5fd2fc

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

lab/cat-b/seed.php

PHP · 1,418 bytes
<?php
// Category B lab: SEED endpoint
// Uses php_serialize session handler
// Writes session data that the /fire endpoint will deserialize with the php handler
// The handler mismatch allows injecting arbitrary serialized objects

// php_serialize stores the whole session as one serialized array:
//     a:1:{s:4:"data";s:N:"<value>";}
// The php handler expects  key|<serialized value>  instead. Reading the file
// above, it splits at the first pipe, which may sit inside <value>, and passes
// what follows to unserialize().

session_start();

if (isset($_POST['data'])) {
    $_SESSION['data'] = $_POST['data'];
    echo "Session data stored (php_serialize handler).\n";
    echo "Session ID: " . session_id() . "\n";
    echo "Handler: " . ini_get('session.serialize_handler') . "\n";
} else {
    echo "<html><head><title>Cat-B Seed</title></head><body>";
    echo "<h1>Category B - Seed (php_serialize handler)</h1>";
    echo "<p>PHP " . phpversion() . "</p>";
    echo "<p>Handler: " . ini_get('session.serialize_handler') . "</p>";
    echo "<p>Session ID: " . session_id() . "</p>";
    echo "<form method='POST'>";
    echo "<textarea name='data' rows='5' cols='60' placeholder='Enter session data...'></textarea><br>";
    echo "<button type='submit'>Store in session</button>";
    echo "</form>";
    echo "<p><a href='/fire/'>Go to Fire endpoint (php handler)</a></p>";
    echo "</body></html>";
}