It looks like you’re asking for a full post based on the subject line:
Exploitation: Once found, the attacker sends a POST request to eval-stdin.php. index of vendor phpunit phpunit src util php evalstdinphp
If you are running PHPUnit in a production environment, remove it. PHPUnit is a development tool and has no place on a live production server. It looks like you’re asking for a full
Rating
/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php refers to a critical Remote Code Execution (RCE) vulnerability (tracked as CVE-2017-9841 Never expose the vendor/ directory to the web root
vendor/ directory to the web root.composer remove --dev phpunit/phpunit
.htaccess or Nginx rules:
<Files "eval-stdin.php">
Require all denied
</Files>