Update security policy · sebastianbergmann/php-file-iterator@b205edc (original) (raw)

Original file line number Diff line number Diff line change
@@ -1,9 +1,30 @@
1 1 # Security Policy
2 2
3 -This library is intended to be used in development environments only. For instance, it is used by the testing framework PHPUnit. There is no reason why this library should be installed on a webserver.
3 +If you believe you have found a security vulnerability in the library that is developed in this repository, please report it to us through coordinated disclosure.
4 4
5 -**If you upload this library 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.**
5 +**Please do not report security vulnerabilities through public GitHub issues, discussions, or pull requests.**
6 6
7 -## Security Contact Information
7 +Instead, please send an email to `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 +The library that is developed in this repository was either extracted from [PHPUnit](https://github.com/sebastianbergmann/phpunit) or developed specifically as a dependency for PHPUnit.
24 +
25 +The library is developed with a focus on development environments and the command-line. No specific testing or hardening with regard to using the library in a HTTP or web context or with untrusted input data is performed. The library might also contain functionality that intentionally exposes internal application data for debugging purposes.
26 +
27 +If the library 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.
28 +
29 +Vulnerabilities specific to the use outside of 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.
8 30
9 -After the above, if you still would like to report a security vulnerability, please email `sebastian@phpunit.de`.