Show last authors
1 {{box cssClass="floatinginfobox"}}
2 {{toc/}}
3 {{/box}}
4
5 The goal of this document is to provide some information about the policy of XWiki.org in case a vulnerability is found in XWiki Standard.
6
7 = What are the available channels to discuss about security issues? =
8
9 Three channels are available with different usages.
10
11 == Security Mailing-List ==
12
13 The main channel is the security mailing-list (security[at]xwiki.org). Anyone can post on this mailing-list, but only core committers and some other trusted persons can read them. More information are available on [[Mailing Lists>>doc:Community.Discuss||anchor="HMailingLists"]].
14
15 This channel **must be used** for warning the sponsoring companies that a new security issue has been discovered. It **might be used** for asking about a potential security issue.
16
17 == JIRA ==
18
19 The JIRA of XWiki ([[https:~~/~~/jira.xwiki.org>>url:https://jira.xwiki.org]]) is the right place to submit issues by using the visibility set to Confidential and the label “security”. Those issues are only visible to people who submitted them, to the committers of XWiki, and to anyone trusted by the XWiki committers who can help fixing them. All informations about the submitted issues if discussed elsewhere should be added on the comments of the issues so that the reporter can follow them. Note that the label “security” could be used in JIRA dashboard or in Release Notes to inform about the fixed security issues.
20
21 == Matrix ==
22
23 A dedicated Matrix Chat room is dedicated to talk about security issues but is dedicated to the same people as the security mailing-list. It should be mainly used to discuss about the security policy and technical details about a specific issue.
24 More information are available on [[Chat>>doc:Community.Chat||anchor="HMatrix"]].
25
26 = Where to submit security issues? =
27
28 As specified above, all security issues should be submitted on [[https:~~/~~/jira.xwiki.org>>url:https://jira.xwiki.org]] with the visibility set to Confidential and the label “security”.
29 Those issues are only visible to people who submitted them, to the committers of XWiki and to anyone trusted by the XWiki committers who could help fixing them.
30
31 = What are the criteria for computing severity? =
32
33 The severity is defined case by case by the core committers depending on two criteria:
34
35 * the impact of the security issue (e.g. an issue that might impact all pages of a wiki is more severe than an issue which might impact only pages with specific rights)
36 * and the difficulty to reproduce it (e.g. an issue which needs script rights to be reproduced is less severe than an issue which only needs view access on the wiki)
37
38 We currently use two types of labels to compute the severity of an issue: the type of attacker (depending on its rights on the wiki) and the type of attack (depending on what he can actually do).
39
40 == Types of attackers ==
41
42 |=Label|=Description
43 |attacker_guest|The attacker doesn’t need to be logged-in to perform the attack.
44 |attacker_view|The attacker needs to be logged-in to perform the attack.
45 |attacker_comment|The attacker needs to be logged-in and the comment rights to perform the attack.
46 |attacker_edit|Same as above but with edit rights.
47 |attacker_script|Same as above but with script rights.
48 |socialeng|The attacker can only perform the attack if he has physical access to the target device
49
50 == Types of attacks ==
51
52 |=Label|=Description
53 |stability|Attacks that are related to targeting the host (e.g. DOS attack)
54 |escalation|Attacks that are related to permanently getting more rights
55 |login|Attacks that are related to login with another user identity
56 |xss|All attacks related to code injection
57 |impersonation|Attacks that are related to using another people right to perform actions
58 |dataleak|Attacks that are related to confidential data that might be retrieved in readonly: could be emails, but could also be XWiki document that shouldn’t be viewable.
59 |spam|Attacks that are related to spamming
60
61 == Severity matrix ==
62
63 **DISCLAIMER**: This severity matrix is only indicative, the severity is computed on a case-by-case basis only.
64
65 How to read this matrix:
66
67 * columns are representing the type of attackers
68 * lines are representing the type of attacks
69 * values are a severity between high / medium / low
70
71 |=Attacks \ Attackers|=guest|=view|=comment|=edit|=script|=socialeng
72 |stability|High|High|High|Medium|Medium|Low
73 |escalation|High|High|High|High|Medium|Low
74 |impersonation|High|High|High|High|Medium|Low
75 |login|High|High|High|Medium|Low|Low
76 |xss|High|High|High|Medium|Low|Low
77 |dataleak|High|High|High|Medium|Low|Low
78 |spam|High|High|High|Medium|Low|Low
79
80 Note: on the future we’ll need to formalize the usage of [[https:~~/~~/nvd.nist.gov/vuln-metrics/cvss/v3-calculator>>url:https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator]] to compute the severity of our security.
81
82 = How long does it take to fix a security issue? =
83
84 The priority of the JIRA issue is set depending on the severity of the issue, we apply basically the following mapping:
85
86 * high severity: blocker
87 * medium severity: critical
88 * low severity: major
89
90 Blocker issues have to be fixed before next release. There’s no obligations about critical and major issues, so they are handled depending on the other priorities of the core committers.
91
92 = When is a security issue considered as fixed? =
93
94 Security issues are considered as fixed only once the fix is part of releases for all supported branches impacted by the issue. So for example, if [[XWiki.org>>url:http://XWiki.org]] is currently in the 12.x cycle and a security issue impacts both 11.10.1 (LTS) and 12.3 (stable), the issue is fixed when 11.10.2 and 12.3.1 (or 12.4) are released with the fix.
95
96 = Are security issues ever publicly disclosed? =
97
98 Once the issue has been properly fixed and the fix releases, a CVE is published to publicly disclose about this issue and to incitate for an upgrade. The CVE is **mandatory** for any security issues.
99
100 = How long does it take to publish a CVE? =
101
102 Once an issue has been fixed and released, an embargo of 3 months is starting to allow anyone working with XWiki to perform actions before the publication of the CVE. The sponsoring companies are automatically informed as soon as a security issues has been discovered through the security communication channels.
103
104 For example, if a security issue has been fixed and released in 11.10.2 and in 12.0, respectively released the 5th of February and the 29th of January, the CVE could be published 3 months after latest release: i.e. the 5th of May.
105
106 = What’s the process to handle security issues for committers? =
107
108 1. Take the ownership on the security issue by assigning the JIRA ticket to yourself.
109 1. Validate the information about the security issue (including the label and confidentiality fields)
110 1. Announce the problem on the dedicated security communication channel
111 1. Create an draft advisory on Github (see: [[https:~~/~~/help.github.com/en/github/managing-security-vulnerabilities/creating-a-security-advisory>>url:https://help.github.com/en/github/managing-security-vulnerabilities/creating-a-security-advisory]]). As part of this compute the security score (severity)
112 1. Add a comment to the jira issue with a link to the advisory draft
113 1. Fix the issue on all supported branches and release XWiki.
114 1. Annnounce the fix on the security list with the start of the 3 months timer clock. Make it part of the Release Plan for the Release Master to do.
115 1. After 3 months, request a CVE through GitHub Advisory page. Remove the confidential label on the Jira issue. Publish the advisory once the CVE ID has been received.

Get Connected