The Persistent Threat of PHPUnit’s eval-stdin.php (CVE-2017-9841)
REQUEST_METHOD is GET, POST, PUT, or DELETE originating from a web server context (and not CLI), the script returns http_response_code(403) and exits.curl -k -I https://yoursite.com/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php
This file is intended for testing purposes only — specifically, to allow PHPUnit to evaluate code in a separate PHP process. However, if this file is accidentally exposed on a production web server, an attacker can: The Persistent Threat of PHPUnit’s eval-stdin