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
Php-unit-CVE-2017-9841 — Docker-based lab to reproduce CVE-2017-9841, a remote code execution vulnerability in PHPUnit's eval-stdin.php when installed under a web root. | Kitploit
Tools/GitHubGitHub/cyberharsh/php-unit-cve-2017-9841
Vulnerability AnalysisCode AnalysisExploitationWeb Application ExploitationLearning & EducationLabs & Practice
GitHubcyberharsh/php-unit-cve-2017-9841

Php-unit-CVE-2017-9841

Docker-based lab to reproduce CVE-2017-9841, a remote code execution vulnerability in PHPUnit's eval-stdin.php when installed under a web root.

View Repository
416 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)

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

    371
  • 4

    redforge

    cybersecurity91/redforge

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

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

    326
  • 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

phpunit Remote Code Execution Vulnerability (CVE-2017-9841)

Composer is a PHP package management tool. Using Composer to install extension packages will create a vendor folder in the current directory and place all files in it. Usually this directory should be placed outside the web root so that users cannot directly access it.

PHPUnit is a unit testing tool in PHP. In versions 4.8.19 ~ 4.8.27 and 5.0.10 ~ 5.6.2, the file vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php contains the following code:

eval('?>'.file_get_contents('php://input'));

If this file is directly accessed by a user, it will lead to a remote code execution vulnerability.

Reference link: http://phpunit.vulnbusters.com

Vulnerability Environment

Execute the following command to start a PHP environment, where PHPUnit is installed in the web directory.

docker-compose build
docker-compose up -d

The web environment will start at http://your-ip:8080.

Replicate the Vulnerability

Directly send PHP code as the POST body to http://your-ip:8080/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php:

Download Tool