Wiki source code of Security Advisory Application

Last modified by superadmin on 2026/11/23 22:53

Show last authors
1 The [[Security Advisory Application>>doc:extensions:Extension.Security Advisory Application.WebHome]] tracks the advisories of a security team, from their first draft to their public disclosure, following the [[XWiki Security Policy>>doc:dev:Community.SecurityPolicy.WebHome]]. It is built around that policy, so it fits teams applying a similar one.
2
3 == Advisory Lifecycle ==
4
5 Each advisory has a status, which the security team changes with the buttons at the top of the advisory page, except for "Disclosable", which the application sets on its own once the embargo date is reached.
6
7 {{plantuml}}
8 @startuml
9
10 hide empty description
11 [*] --> Draft : advisory created
12 Draft --> Completed : advisory written
13 Completed --> Draft : back to editing
14 Completed --> Announced : announced to the\nsecurity channels
15 Announced --> Disclosable : embargo date reached\n(automatic)
16 Disclosable --> Announced : back to announced
17 Disclosable --> Disclosed : CVE requested\nand published
18 Draft --> Discarded
19 Completed --> Discarded
20 Announced --> Discarded
21 Disclosable --> Discarded
22 Disclosed --> [*]
23 Discarded --> [*]
24 @enduml
25 {{/plantuml}}
26
27 An advisory can be discarded at any time before it is disclosed, for instance when it turns out to be a duplicate.
28
29 == Embargo Date ==
30
31 The embargo date is the date from which an advisory can be made public. The application computes it once all the patched versions of an announced advisory are released: it is the release date of the last of them, plus a [[delay set by an administrator>>doc:documentation.extensions.admin.security-advisory.configuration.WebHome]]. The release date of a patched version comes from:
32
33 * the [[Release Notes Application>>doc:documentation.extensions.user.release-notes.WebHome]], when it holds a released release note for that version, under the "product" of the advisory (under ##XWiki## for the XWiki Commons, Rendering and Platform packages);
34 * otherwise, for a Maven package, the extension repositories: the application checks there whether the version exists, once a day, and takes the date of the first check that finds it as release date. That date can therefore be later than the real release date ([[SPAPP-38>>https://jira.xwiki.org/browse/SPAPP-38]]).
35
36 The embargo date can also be [[set by hand>>doc:documentation.extensions.user.security-advisory.change-status.WebHome||anchor="HHowdoIsettheembargodatemyself3F"]].
37
38 == Disclosure ==
39
40 Advisories are stored in a space only the security team can view. Disclosing an advisory publishes a copy of it in a public space, without its history, comments or attachments, and the original page then redirects to that copy.
41
42 Working with advisories:
43
44 * [[Create an Advisory>>doc:documentation.extensions.user.security-advisory.create-advisory.WebHome]] records a new vulnerability.
45 * [[Import an Advisory from GitHub>>doc:documentation.extensions.user.security-advisory.import-advisory-github.WebHome]] brings in an advisory drafted on GitHub.
46 * [[Change the Status of an Advisory>>doc:documentation.extensions.user.security-advisory.change-status.WebHome]] moves it through the lifecycle, up to its disclosure.
47 * [[Advisory Fields>>doc:documentation.extensions.user.security-advisory.advisory-fields.WebHome]] describes each field of an advisory and the list of advisories on the application home page.
48 * [[Advisory Notifications>>doc:documentation.extensions.user.security-advisory.notifications.WebHome]] lists the notifications sent at each step.

Get Connected