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
Tools/GitHubGitHub/mananjain61/php-cgi-internal-rce
ReconnaissanceExploitationWeb Application ExploitationPenetration TestingPayload DevelopmentDNS Analysis
GitHubmananjain61/php-cgi-internal-rce

PHP-CGI-INTERNAL-RCE

Delivering PHP RCE (CVE-2024-4577) to the Local Network Servers

View Repository
11 year 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
PHP-CGI-INTERNAL-RCE — Delivering PHP RCE (CVE-2024-4577) to the Local Network Servers | Kitploit
Website

PHP-CGI-INTERNAL-RCE

  • This PoC demonstrates how an attacker can chain Orange Tsai's CVE-2024-4577 with DNS rebinding to achieve remote code execution on internal network infrastructure directly through the victim’s web browser. By bypassing Same-Origin Policy (SOP) and exploiting vulnerable PHP-CGI instances running on local XAMPP servers, internal development environments, or corporate networks, this attack enables full code execution on systems never intended to be exposed to the internet.

BLOG

  • https://www.hackandhide.com/your-browser-is-now-your-enemy-delivering-php-rce-to-your-local-servers/

Setup

  • Register at duckdns

  • Create a subdomain (e.g., example.duckdns.org)

  • Note your DuckDNS token from the dashboard

  • Configure server.py:

    root@kitploit:~
    DUCKDNS_DOMAIN = "your-subdomain"      # Your DuckDNS subdomain
    DUCKDNS_TOKEN = "your-token-here"      # Your DuckDNS token  
    
  • to configure a custom payload, locate this line in client.html and replace it with your payload.

    root@kitploit:~
    const payload = `<?php system('calc');?>;echo 1337; die;`;
    
  • Also, you can modify the list of IPs. As we explained in the article, if you want to implement internal network scanning, you can use the JavaScript snippet I showed there. In this PoC, I’ll be using a predefined list of common IPs to keep it simple and fast

Dependencies:

  • requests

VIDEO

https://github.com/user-attachments/assets/90abef27-28d0-4473-88e9-5e285a5cc667

  • It never needed to be online… to be safe."
Download Tool