Bug 1795615 (CVE-2017-9841)

Summary: CVE-2017-9841 php-phpunit-PHPUnit: allows attackers to execute arbitrary PHP code via HTTP POST data
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: urgent Docs Contact:
Priority: urgent    
Version: unspecifiedCC: fedora
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in PHPUnit, versions prior to 4.8.28 and prior to 5.6.3, that allows a remote attacker to execute arbitrary PHP code via an HTTP POST. This vulnerability affects a system's data integrity and confidentiality and can impact system availability.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-01-28 13:48:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1795616    
Bug Blocks:    

Description Guilherme de Almeida Suckevicz 2020-01-28 13:29:25 UTC
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.

Reference:
http://web.archive.org/web/20170701212357/http://phpunit.vulnbusters.com/

Comment 1 Guilherme de Almeida Suckevicz 2020-01-28 13:30:13 UTC
Created php-phpunit-PHPUnit tracking bugs for this issue:

Affects: epel-6 [bug 1795616]

Comment 2 Remi Collet 2020-01-28 13:48:55 UTC
PHPUnit is a developer tool

And if people deploy web app with developer stuff.... yes they are unsecure.