Description
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP code via HTTP POST data beginning with a "<?php " substring, as demonstrated by an attack on a site with an exposed /vendor folder, i.e., external access to the /vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php URI.
CVSS breakdown
CVSS 3.1
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
Exploits & proofs of concept
- nucleiPHPUnit - Remote Code Executionby Random_Robbie,pikpikcu
References
- MISChttp://www.securityfocus.com/bid/101798
- MISChttp://www.securitytracker.com/id/1039812
- MISChttps://security.gentoo.org/glsa/201711-15
- VENDOR_ADVISORYhttps://www.oracle.com/security-alerts/cpuoct2021.html
- PATCHhttps://github.com/sebastianbergmann/phpunit/commit/284a69fb88a2d0845d23f42974a583d8f59bf5a5
- PATCHhttps://github.com/sebastianbergmann/phpunit/pull/1956
- MISChttp://web.archive.org/web/20170701212357/http://phpunit.vulnbusters.com/