annotate farol/templates/vulnerability/edit_cvss.j2 @ 54:8ffd3ec96f7c

Add Descriptions for the CVSS fields
author Benoît Allard <benoit.allard@greenbone.net>
date Wed, 08 Oct 2014 09:28:23 +0200
parents 4a9f23230eba
children
rev   line source
0
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
1 {#
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
2 # Description:
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
3 # Web Template used in Farol Design
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
4 #
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
5 # Authors:
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
6 # Benoît Allard <benoit.allard@greenbone.net>
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
7 #
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
8 # Copyright:
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
9 # Copyright (C) 2014 Greenbone Networks GmbH
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
10 #
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
11 # This program is free software; you can redistribute it and/or
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
12 # modify it under the terms of the GNU General Public License
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
13 # as published by the Free Software Foundation; either version 2
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
14 # of the License, or (at your option) any later version.
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
15 #
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
16 # This program is distributed in the hope that it will be useful,
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
19 # GNU General Public License for more details.
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
20 #
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
21 # You should have received a copy of the GNU General Public License
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
22 # along with this program; if not, write to the Free Software
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
23 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
24 -#}
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
25
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
26 {% extends "base.j2" %}
54
8ffd3ec96f7c Add Descriptions for the CVSS fields
Benoît Allard <benoit.allard@greenbone.net>
parents: 0
diff changeset
27 {% from "macros.j2" import selectinput, textinput, textarea, selectinput2, examples %}
0
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
28 {% block title %}Edit CVSS{% endblock %}
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
29
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
30 {% set active = 'vulnerability' %}
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
31
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
32 {% block content %}
54
8ffd3ec96f7c Add Descriptions for the CVSS fields
Benoît Allard <benoit.allard@greenbone.net>
parents: 0
diff changeset
33 <p>The <strong>Score Set</strong> container holds actual CVSS metrics. For more details about CVSS, see {{ 'http://www.first.org/cvss/cvss-guide.html' | urlize }}. The only required element of CVSS is the <strong>Base Score</strong>. If a value of the temporal or environmental score is set to not defined, either <strong>Temporal Score</strong> or <strong>Environmental Score</strong> can be omitted.</p>
8ffd3ec96f7c Add Descriptions for the CVSS fields
Benoît Allard <benoit.allard@greenbone.net>
parents: 0
diff changeset
34 <p>A <strong>Score Set</strong> container can be tied to one or more specific products by referencing these products using the <strong>Product ID</strong> child element. If the <strong>Score Set</strong> is meant to be applied for all products, the <em>Product ID</em> attribute should be omitted.</p>
0
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
35 <form role="form" method="POST">
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
36
54
8ffd3ec96f7c Add Descriptions for the CVSS fields
Benoît Allard <benoit.allard@greenbone.net>
parents: 0
diff changeset
37 {% call textinput('basescore', "Base Score", '0.0', basescore, type="number", extras={'step':'0.1', 'min': '0', 'max': '10'}, required=True) %}
8ffd3ec96f7c Add Descriptions for the CVSS fields
Benoît Allard <benoit.allard@greenbone.net>
parents: 0
diff changeset
38 <p><strong>Base Score</strong> contains the numeric value of the computed CVSS base score, which should be a float from 0 to 10.0.</p>
8ffd3ec96f7c Add Descriptions for the CVSS fields
Benoît Allard <benoit.allard@greenbone.net>
parents: 0
diff changeset
39 {% endcall %}
8ffd3ec96f7c Add Descriptions for the CVSS fields
Benoît Allard <benoit.allard@greenbone.net>
parents: 0
diff changeset
40 {% call textinput('temporalscore', "Temporal Score", '0.0', temporalscore, type="number", extras={'step':'0.1', 'min': '0', 'max': '10'}) %}
8ffd3ec96f7c Add Descriptions for the CVSS fields
Benoît Allard <benoit.allard@greenbone.net>
parents: 0
diff changeset
41 <p><strong>Temporal Score</strong> contains the numeric value of the computed CVSS temporal score, which should be a float from 0 to 10.0.</p>
8ffd3ec96f7c Add Descriptions for the CVSS fields
Benoît Allard <benoit.allard@greenbone.net>
parents: 0
diff changeset
42 {% endcall %}
8ffd3ec96f7c Add Descriptions for the CVSS fields
Benoît Allard <benoit.allard@greenbone.net>
parents: 0
diff changeset
43 {% call textinput('environmentalscore', "Environmental Score", '0.0', environmentalscore, type="number", extras={'step':'0.1', 'min': '0', 'max': '10'}) %}
8ffd3ec96f7c Add Descriptions for the CVSS fields
Benoît Allard <benoit.allard@greenbone.net>
parents: 0
diff changeset
44 <p><strong>Environmental Score</strong> contains the numeric value of the computed CVSS environmental score, which should be a float from 0 to 10.0. This metric is typically reserved for use by the end user and is specific to the environment in which the affected product is deployed.</p>
8ffd3ec96f7c Add Descriptions for the CVSS fields
Benoît Allard <benoit.allard@greenbone.net>
parents: 0
diff changeset
45 {% endcall %}
8ffd3ec96f7c Add Descriptions for the CVSS fields
Benoît Allard <benoit.allard@greenbone.net>
parents: 0
diff changeset
46 {% call textinput('vector', "Vector", value=vector, extras={'maxlength': '76'}) %}
8ffd3ec96f7c Add Descriptions for the CVSS fields
Benoît Allard <benoit.allard@greenbone.net>
parents: 0
diff changeset
47 <p><strong>Vector</strong> contains the official notation that displays all the values used to compute the CVSS base, temporal, and environmental scores. This notation will follow the guidelines set forth in the CVSS v2 documentation at {{ 'http://www.first.org/cvss/cvss-guide.html#i2.4' | urlize }}.</p>
8ffd3ec96f7c Add Descriptions for the CVSS fields
Benoît Allard <benoit.allard@greenbone.net>
parents: 0
diff changeset
48 {{ examples(['AV:N/AC:L/Au:N/C:P/I:P/A:C/E:P/RL:O/RC:C/CDP:H/TD:M/CR:H/IR:H/AR:H']) }}
8ffd3ec96f7c Add Descriptions for the CVSS fields
Benoît Allard <benoit.allard@greenbone.net>
parents: 0
diff changeset
49 {% endcall %}
0
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
50
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
51 {{ selectinput2('products', "Products", products, productids, multiple=True) }}
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
52
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
53 <button class="btn btn-primary" type="submit">{{ action or 'Update' }}</button>
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
54 <a class="btn btn-danger" href="{% if action=='Add' %}{{ url_for('.view', ordinal=ordinal) }}{% else %}{{ url_for('.view_cvss', ordinal=ordinal, index=index) }}{% endif %}">Cancel</a>
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
55 </form>
4a9f23230eba Initial Release
Benoît Allard <benoit.allard@greenbone.net>
parents:
diff changeset
56 {% endblock %}

http://farol.wald.intevation.org