security.txt 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. .. _internals-security:
  2. ==========================
  3. Django's security policies
  4. ==========================
  5. Django's development team is strongly committed to responsible
  6. reporting and disclosure of security-related issues. As such, we've
  7. adopted and follow a set of policies which conform to that ideal and
  8. are geared toward allowing us to deliver timely security updates to
  9. the official distribution of Django, as well as to third-party
  10. distributions.
  11. .. _reporting-security-issues:
  12. Reporting security issues
  13. =========================
  14. **Short version: please report security issues by emailing
  15. security@djangoproject.com**.
  16. Most normal bugs in Django are reported to `our public Trac instance`_, but
  17. due to the sensitive nature of security issues, we ask that they **not** be
  18. publicly reported in this fashion.
  19. Instead, if you believe you've found something in Django which has security
  20. implications, please send a description of the issue via email to
  21. ``security@djangoproject.com``. Mail sent to that address reaches a
  22. :ref:`subset of the core team <security-team-list>`, who can forward security
  23. issues into the private committers' mailing list for broader discussion if
  24. needed.
  25. Once you've submitted an issue via email, you should receive an acknowledgment
  26. from a member of the security team within 48 hours, and depending on the
  27. action to be taken, you may receive further followup emails.
  28. .. note::
  29. If you want to send an encrypted email (*optional*), the public key ID for
  30. ``security@djangoproject.com`` is ``0xfcb84b8d1d17f80b``, and this public
  31. key is available from most commonly-used keyservers.
  32. .. _our public Trac instance: https://code.djangoproject.com/query
  33. .. _security-support:
  34. Supported versions
  35. ==================
  36. At any given time, the Django team provides official security support
  37. for several versions of Django:
  38. * The `master development branch`_, hosted on GitHub, which will
  39. become the next release of Django, receives security support.
  40. * The two most recent Django release series receive security
  41. support. For example, during the development cycle leading to the
  42. release of Django 1.5, support will be provided for Django 1.4 and
  43. Django 1.3. Upon the release of Django 1.5, Django 1.3's security
  44. support will end.
  45. * :ref:`Long-term support (LTS) releases <lts-releases>` will receive
  46. security updates for a specified period.
  47. When new releases are issued for security reasons, the accompanying
  48. notice will include a list of affected versions. This list is
  49. comprised solely of *supported* versions of Django: older versions may
  50. also be affected, but we do not investigate to determine that, and
  51. will not issue patches or new releases for those versions.
  52. .. _master development branch: https://github.com/django/django/
  53. .. _security-disclosure:
  54. How Django discloses security issues
  55. ====================================
  56. Our process for taking a security issue from private discussion to
  57. public disclosure involves multiple steps.
  58. Approximately one week before full public disclosure, we will send
  59. advance notification of the issue to a list of people and
  60. organizations, primarily composed of operating-system vendors and
  61. other distributors of Django. This notification will consist of an
  62. email message, signed with the Django release key, containing:
  63. * A full description of the issue and the affected versions of Django.
  64. * The steps we will be taking to remedy the issue.
  65. * The patch(es), if any, that will be applied to Django.
  66. * The date on which the Django team will apply these patches, issue
  67. new releases and publicly disclose the issue.
  68. Simultaneously, the reporter of the issue will receive notification of
  69. the date on which we plan to take the issue public.
  70. On the day of disclosure, we will take the following steps:
  71. 1. Apply the relevant patch(es) to Django's codebase. The commit
  72. messages for these patches will indicate that they are for security
  73. issues, but will not describe the issue in any detail; instead,
  74. they will warn of upcoming disclosure.
  75. 2. Issue the relevant release(s), by placing new packages on `the
  76. Python Package Index`_ and on the Django website, and tagging the
  77. new release(s) in Django's git repository.
  78. 3. Post a public entry on `the official Django development blog`_,
  79. describing the issue and its resolution in detail, pointing to the
  80. relevant patches and new releases, and crediting the reporter of
  81. the issue (if the reporter wishes to be publicly identified).
  82. 4. Post a notice to the |django-announce| mailing list that links to the blog
  83. post.
  84. .. _the Python Package Index: https://pypi.python.org/pypi
  85. .. _the official Django development blog: https://www.djangoproject.com/weblog/
  86. If a reported issue is believed to be particularly time-sensitive --
  87. due to a known exploit in the wild, for example -- the time between
  88. advance notification and public disclosure may be shortened
  89. considerably.
  90. Additionally, if we have reason to believe that an issue reported to
  91. us affects other frameworks or tools in the Python/web ecosystem, we
  92. may privately contact and discuss those issues with the appropriate
  93. maintainers, and coordinate our own disclosure and resolution with
  94. theirs.
  95. The Django team also maintains an :doc:`archive of security issues
  96. disclosed in Django</releases/security>`.
  97. .. _security-notifications:
  98. Who receives advance notification
  99. =================================
  100. The full list of people and organizations who receive advance
  101. notification of security issues is not and will not be made public.
  102. We also aim to keep this list as small as effectively possible, in
  103. order to better manage the flow of confidential information prior to
  104. disclosure. As such, our notification list is *not* simply a list of
  105. users of Django, and merely being a user of Django is not sufficient
  106. reason to be placed on the notification list.
  107. In broad terms, recipients of security notifications fall into three
  108. groups:
  109. 1. Operating-system vendors and other distributors of Django who
  110. provide a suitably-generic (i.e., *not* an individual's personal
  111. email address) contact address for reporting issues with their
  112. Django package, or for general security reporting. In either case,
  113. such addresses **must not** forward to public mailing lists or bug
  114. trackers. Addresses which forward to the private email of an
  115. individual maintainer or security-response contact are acceptable,
  116. although private security trackers or security-response groups are
  117. strongly preferred.
  118. 2. On a case-by-case basis, individual package maintainers who have
  119. demonstrated a commitment to responding to and responsibly acting
  120. on these notifications.
  121. 3. On a case-by-case basis, other entities who, in the judgment of the
  122. Django development team, need to be made aware of a pending
  123. security issue. Typically, membership in this group will consist of
  124. some of the largest and/or most likely to be severely impacted
  125. known users or distributors of Django, and will require a
  126. demonstrated ability to responsibly receive, keep confidential and
  127. act on these notifications.
  128. Requesting notifications
  129. ========================
  130. If you believe that you, or an organization you are authorized to
  131. represent, fall into one of the groups listed above, you can ask to be
  132. added to Django's notification list by emailing
  133. ``security@djangoproject.com``. Please use the subject line "Security
  134. notification request".
  135. Your request **must** include the following information:
  136. * Your full, real name and the name of the organization you represent,
  137. if applicable, as well as your role within that organization.
  138. * A detailed explanation of how you or your organization fit at least
  139. one set of criteria listed above.
  140. * A detailed explanation of why you are requesting security
  141. notifications. Again, please keep in mind that this is *not* simply
  142. a list for users of Django, and the overwhelming majority of users
  143. of Django should not request notifications and will not be added to
  144. our notification list if they do.
  145. * The email address you would like to have added to our notification
  146. list.
  147. * An explanation of who will be receiving/reviewing mail sent to that
  148. address, as well as information regarding any automated actions that
  149. will be taken (i.e., filing of a confidential issue in a bug
  150. tracker).
  151. * For individuals, the ID of a public key associated with your address
  152. which can be used to verify email received from you and encrypt
  153. email sent to you, as needed.
  154. Once submitted, your request will be considered by the Django
  155. development team; you will receive a reply notifying you of the result
  156. of your request within 30 days.
  157. Please also bear in mind that for any individual or organization,
  158. receiving security notifications is a privilege granted at the sole
  159. discretion of the Django development team, and that this privilege can
  160. be revoked at any time, with or without explanation.
  161. If you are added to the notification list, security-related emails
  162. will be sent to you by Django's release team, and all notification
  163. emails will be signed with a key authorized to issue Django
  164. releases. The list of authorized keys is in `the Django releasers
  165. file`_.
  166. .. _the Django releasers file: https://www.djangoproject.com/m/pgp/django-releasers.txt