Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-21015-PHP-Filter-Chain-Arbitrary-File-Read — PoC exploit for CVE-2026-21015 that abuses PHP filter chains to read arbitrary files through a vulnerable include() call, disclosing source and credentials. | Kitploit
Tools/GitHubGitHub/george0papasotiriou/cve-2026-21015-php-filter-chain-arbitrary-file-read
Vulnerability AnalysisExploitationWeb Application ExploitationData ExfiltrationInformation GatheringWeb SecurityPenetration Testing
GitHubgeorge0papasotiriou/cve-2026-21015-php-filter-chain-arbitrary-file-read

CVE-2026-21015-PHP-Filter-Chain-Arbitrary-File-Read

PoC exploit for CVE-2026-21015 that abuses PHP filter chains to read arbitrary files through a vulnerable include() call, disclosing source and credentials.

View Repository
51 month agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-21015 – PHP Filter Chain Arbitrary File Read

Program Code (PHP)

root@kitploit:~
// vulnerable.php - Includes file based on user input via filter
<?php
$file = $_GET['page'];
// Attempt to sanitize by allowing only .php files, but vulnerable to filter wrapper
include("php://filter/convert.base64-encode/resource=" . $file);

CVE-2026-21015 – PHP Filter Chain Arbitrary File Read

Severity: High

Overview

A PHP application uses php://filter to include files based on user input without proper validation. An attacker can leverage the base64‑encode filter and path traversal to read arbitrary files on the server.

Vulnerability Details

  • Type: Local File Inclusion (LFI)
  • Impact: Source code disclosure, credential theft.
  • Root Cause: The script prepends the filter wrapper but does not restrict which files can be included; directory traversal is still possible.

Exploit Demonstration

  1. Start a PHP server with the vulnerable script.
  2. Run the exploit:
    root@kitploit:~
    python exploit_php_filter.py
    

The content of /etc/passwd is returned.

Download Tool