Skip to content

Commit 97cf52e

Browse files
Merge branch '8.5' into 9.6
2 parents e7b1615 + ea22c02 commit 97cf52e

File tree

1 file changed

+25
-3
lines changed

1 file changed

+25
-3
lines changed

SECURITY.md

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,33 @@
11
# Security Policy
22

3-
PHPUnit is a framework for writing as well as a commandline tool for running tests. Writing and running tests is a development-time activity. There is no reason why PHPUnit should be installed on a webserver.
3+
If you believe you have found a security vulnerability in PHPUnit, please report it to us through coordinated disclosure.
4+
5+
**Please do not report security vulnerabilities through public GitHub issues, discussions, or pull requests.**
6+
7+
Instead, please email `sebastian@phpunit.de`.
8+
9+
Please include as much of the information listed below as you can to help us better understand and resolve the issue:
10+
11+
* The type of issue
12+
* Full paths of source file(s) related to the manifestation of the issue
13+
* The location of the affected source code (tag/branch/commit or direct URL)
14+
* Any special configuration required to reproduce the issue
15+
* Step-by-step instructions to reproduce the issue
16+
* Proof-of-concept or exploit code (if possible)
17+
* Impact of the issue, including how an attacker might exploit the issue
18+
19+
This information will help us triage your report more quickly.
20+
21+
## Web Context
22+
23+
PHPUnit is a framework for writing as well as a command-line tool for running tests. Writing and running tests is a development-time activity. There is no reason why PHPUnit should be installed on a webserver and/or in a production environment.
424

525
**If you upload PHPUnit to a webserver then your deployment process is broken. On a more general note, if your `vendor` directory is publicly accessible on your webserver then your deployment process is also broken.**
626

727
Please note that if you upload PHPUnit to a webserver "bad things" may happen. [You have been warned.](https://thephp.cc/articles/phpunit-a-security-risk)
828

9-
## Security Contact Information
29+
PHPUnit is developed with a focus on development environments and the command-line. No specific testing or hardening with regard to using PHPUnit in an HTTP or web context or with untrusted input data is performed. PHPUnit might also contain functionality that intentionally exposes internal application data for debugging purposes.
30+
31+
If PHPUnit is used in a web application, the application developer is responsible for filtering inputs or escaping outputs as necessary and for verifying that the used functionality is safe for use within the intended context.
1032

11-
After the above, if you still would like to report a security vulnerability, please email `sebastian@phpunit.de`.
33+
Vulnerabilities specific to the use outside a development context will be fixed as applicable, provided that the fix does not have an averse effect on the primary use case for development purposes.

0 commit comments

Comments
 (0)