2018-03-12 01:40:24 +03:00
|
|
|
curl security process
|
|
|
|
=====================
|
2013-10-29 02:19:55 +04:00
|
|
|
|
2018-03-12 01:40:24 +03:00
|
|
|
This document describes how security vulnerabilities should be handled in the
|
|
|
|
curl project.
|
2013-10-29 02:19:55 +04:00
|
|
|
|
2014-10-10 12:50:23 +04:00
|
|
|
Publishing Information
|
|
|
|
----------------------
|
2013-10-29 02:19:55 +04:00
|
|
|
|
2014-10-10 12:50:23 +04:00
|
|
|
All known and public curl or libcurl related vulnerabilities are listed on
|
2020-08-16 23:36:10 +03:00
|
|
|
[the curl website security page](https://curl.haxx.se/docs/security.html).
|
2013-10-29 02:19:55 +04:00
|
|
|
|
2019-04-20 13:19:47 +03:00
|
|
|
Security vulnerabilities **should not** be entered in the project's public bug
|
|
|
|
tracker.
|
2013-10-29 02:19:55 +04:00
|
|
|
|
2014-10-10 12:50:23 +04:00
|
|
|
Vulnerability Handling
|
|
|
|
----------------------
|
2013-10-29 02:19:55 +04:00
|
|
|
|
|
|
|
The typical process for handling a new security vulnerability is as follows.
|
|
|
|
|
|
|
|
No information should be made public about a vulnerability until it is
|
|
|
|
formally announced at the end of this process. That means, for example that a
|
|
|
|
bug tracker entry must NOT be created to track the issue since that will make
|
|
|
|
the issue public and it should not be discussed on any of the project's public
|
2019-04-20 13:19:47 +03:00
|
|
|
mailing lists. Also messages associated with any commits should not make any
|
|
|
|
reference to the security nature of the commit if done prior to the public
|
2013-10-29 02:19:55 +04:00
|
|
|
announcement.
|
|
|
|
|
2019-04-20 13:19:47 +03:00
|
|
|
- The person discovering the issue, the reporter, reports the vulnerability on
|
2019-05-11 18:50:37 +03:00
|
|
|
[https://hackerone.com/curl](https://hackerone.com/curl). Issues filed there
|
|
|
|
reach a handful of selected and trusted people.
|
2013-10-29 02:19:55 +04:00
|
|
|
|
|
|
|
- Messages that do not relate to the reporting or managing of an undisclosed
|
|
|
|
security vulnerability in curl or libcurl are ignored and no further action
|
|
|
|
is required.
|
|
|
|
|
2019-04-20 13:19:47 +03:00
|
|
|
- A person in the security team responds to the original report to acknowledge
|
|
|
|
that a human has seen the report.
|
2013-10-29 02:19:55 +04:00
|
|
|
|
|
|
|
- The security team investigates the report and either rejects it or accepts
|
|
|
|
it.
|
|
|
|
|
|
|
|
- If the report is rejected, the team writes to the reporter to explain why.
|
|
|
|
|
|
|
|
- If the report is accepted, the team writes to the reporter to let him/her
|
|
|
|
know it is accepted and that they are working on a fix.
|
|
|
|
|
|
|
|
- The security team discusses the problem, works out a fix, considers the
|
|
|
|
impact of the problem and suggests a release schedule. This discussion
|
|
|
|
should involve the reporter as much as possible.
|
|
|
|
|
|
|
|
- The release of the information should be "as soon as possible" and is most
|
2019-04-20 13:19:47 +03:00
|
|
|
often synchronized with an upcoming release that contains the fix. If the
|
|
|
|
reporter, or anyone else involved, thinks the next planned release is too
|
|
|
|
far away, then a separate earlier release should be considered.
|
2013-10-29 02:19:55 +04:00
|
|
|
|
|
|
|
- Write a security advisory draft about the problem that explains what the
|
2018-03-14 16:20:24 +03:00
|
|
|
problem is, its impact, which versions it affects, solutions or workarounds,
|
|
|
|
when the release is out and make sure to credit all contributors properly.
|
|
|
|
Figure out the CWE (Common Weakness Enumeration) number for the flaw.
|
2013-10-29 02:19:55 +04:00
|
|
|
|
2016-07-22 02:47:13 +03:00
|
|
|
- Request a CVE number from
|
2019-04-29 00:14:23 +03:00
|
|
|
[HackerOne](https://docs.hackerone.com/programs/cve-requests.html)
|
2019-04-20 13:19:47 +03:00
|
|
|
|
|
|
|
- Consider informing
|
2018-09-14 21:48:35 +03:00
|
|
|
[distros@openwall](https://oss-security.openwall.org/wiki/mailing-lists/distros)
|
2019-04-20 13:19:47 +03:00
|
|
|
to prepare them about the upcoming public security vulnerability
|
|
|
|
announcement - attach the advisory draft for information. Note that
|
|
|
|
'distros' won't accept an embargo longer than 14 days and they do not care
|
|
|
|
for Windows-specific flaws.
|
2013-10-29 02:19:55 +04:00
|
|
|
|
|
|
|
- Update the "security advisory" with the CVE number.
|
|
|
|
|
|
|
|
- The security team commits the fix in a private branch. The commit message
|
|
|
|
should ideally contain the CVE number. This fix is usually also distributed
|
|
|
|
to the 'distros' mailing list to allow them to use the fix prior to the
|
|
|
|
public announcement.
|
|
|
|
|
2016-10-27 11:21:52 +03:00
|
|
|
- No more than 48 hours before the release, the private branch is merged into
|
|
|
|
the master branch and pushed. Once pushed, the information is accessible to
|
|
|
|
the public and the actual release should follow suit immediately afterwards.
|
|
|
|
The time between the push and the release is used for final tests and
|
|
|
|
reviews.
|
2013-10-29 02:19:55 +04:00
|
|
|
|
|
|
|
- The project team creates a release that includes the fix.
|
|
|
|
|
|
|
|
- The project team announces the release and the vulnerability to the world in
|
|
|
|
the same manner we always announce releases. It gets sent to the
|
|
|
|
curl-announce, curl-library and curl-users mailing lists.
|
|
|
|
|
2020-08-16 23:36:10 +03:00
|
|
|
- The security web page on the website should get the new vulnerability
|
2013-10-29 02:19:55 +04:00
|
|
|
mentioned.
|
|
|
|
|
2016-10-27 11:21:52 +03:00
|
|
|
curl-security (at haxx dot se)
|
2014-10-10 12:50:23 +04:00
|
|
|
------------------------------
|
2014-09-08 11:39:14 +04:00
|
|
|
|
2019-04-20 13:19:47 +03:00
|
|
|
This is a private mailing list for discussions on and about curl security
|
|
|
|
issues.
|
|
|
|
|
2014-09-08 11:39:14 +04:00
|
|
|
Who is on this list? There are a couple of criteria you must meet, and then we
|
2014-09-08 12:00:18 +04:00
|
|
|
might ask you to join the list or you can ask to join it. It really isn't very
|
|
|
|
formal. We basically only require that you have a long-term presence in the
|
|
|
|
curl project and you have shown an understanding for the project and its way
|
|
|
|
of working. You must've been around for a good while and you should have no
|
|
|
|
plans in vanishing in the near future.
|
2014-09-08 11:39:14 +04:00
|
|
|
|
2016-11-15 12:47:07 +03:00
|
|
|
We do not make the list of participants public mostly because it tends to vary
|
2014-09-08 11:39:14 +04:00
|
|
|
somewhat over time and a list somewhere will only risk getting outdated.
|
2018-03-14 16:20:24 +03:00
|
|
|
|
|
|
|
Publishing Security Advisories
|
|
|
|
------------------------------
|
|
|
|
|
|
|
|
1. Write up the security advisory, using markdown syntax. Use the same
|
|
|
|
subtitles as last time to maintain consistency.
|
|
|
|
|
2018-08-20 12:49:58 +03:00
|
|
|
2. Name the advisory file after the allocated CVE id.
|
2018-03-14 16:20:24 +03:00
|
|
|
|
|
|
|
3. Add a line on the top of the array in `curl-www/docs/vuln.pm'.
|
|
|
|
|
|
|
|
4. Put the new advisory markdown file in the curl-www/docs/ directory. Add it
|
2018-08-20 12:49:58 +03:00
|
|
|
to the git repo.
|
2018-03-14 16:20:24 +03:00
|
|
|
|
|
|
|
5. Run `make` in your local web checkout and verify that things look fine.
|
|
|
|
|
|
|
|
6. On security advisory release day, push the changes on the curl-www
|
|
|
|
repository's remote master branch.
|
2018-07-12 13:32:54 +03:00
|
|
|
|
2019-04-29 00:14:23 +03:00
|
|
|
Bug Bounty
|
|
|
|
----------
|
2018-09-22 00:21:30 +03:00
|
|
|
|
2019-05-11 18:50:37 +03:00
|
|
|
See [BUG-BOUNTY](https://curl.haxx.se/docs/bugbounty.html) for details on the
|
|
|
|
bug bounty program.
|