Exposed eval-stdin.php executes attacker-supplied PHP; still mass-scanned daily.
Exploitation attempts
3,371peak 858 at 26 Sept
20 Sept23 Sept26 Sept
Top attacking sources · 7d
Customers only
185.220.101.34DETor exit412
45.155.205.233RUHosting287
103.203.57.10VNResidential164
91.240.118.172NLHosting119
162.243.140.96USCloud74
What it does
The file vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php reads the request body and passes it to eval(). If the vendor directory of a PHP application is web-accessible, any attacker can execute PHP code on the server.
PHPUnit is a development dependency and should never be deployed to production, yet it is routinely shipped inside WordPress plugins, Drupal modules and Composer-based applications.
This is one of the most scanned paths on the internet. Botnets probe hundreds of vendor path variations to find any accessible copy.
Remediation
Remove development dependencies from production builds: composer install --no-dev.
Deny web access to the vendor directory at the web server or application level.
Upgrade PHPUnit to 5.6.3 or later where it must remain installed.
Enumeration
Detection templates and scanners you can run to find exposed instances on your own attack surface.
Nuclei
http/cves/2017/CVE-2017-9841.yaml
$ nuclei -id CVE-2017-9841 -u https://TARGET
Detection
Exploitation
Working exploit modules and public PoCs. Use only against systems you own or are authorized to test.