-
Notifications
You must be signed in to change notification settings - Fork 32
/
security.xsls
93 lines (72 loc) · 1.61 KB
/
security.xsls
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!--
Copyright (C) Igor Sysoev
Copyright (C) Nginx, Inc.
-->
X:stylesheet {
X:template = "security" { <ul> !!; </ul> }
X:template = "security/item" {
<li>
<p>
!{@name}<br/>
X:if "@severity = 'major'" {
X:text{Severity: } <b>!{@severity}</b><br/>
} else {
X:text{Severity: } !{@severity}<br/>
}
X:if "@advisory" {
<a href="{@advisory}"> X:text {Advisory} </a>
<br/>
}
X:if "@cert" {
<a>
X:attribute "href" {
X:text {http://www.kb.cert.org/vuls/id/} !{@cert}
}
X:text {VU#} !{@cert}
</a>
}
X:if "@cve" {
X:if "@cert" {
X:text {  }
}
<a>
X:attribute "href" {
X:text {https://www.cve.org/CVERecord?id=CVE-} !{@cve}
}
X:text {CVE-} !{@cve}
</a>
}
X:if "@core" {
X:if "@cert or @cve" {
X:text {  }
}
<a href="{@href}"> !{@core} </a>
}
X:if "@cert or @cve or @core" {
<br/>
}
X:text {Not vulnerable: } !{@good} <br/>
X:text {Vulnerable: } !{@vulnerable}
X:for-each "patch" {
<br/>
<a>
X:attribute "href" {
X:text {/download/} !{@name}
}
X:text {The patch}
</a>
X:text {  }
<a>
X:attribute "href" {
X:text {/download/} !{@name} X:text {.asc}
}
X:text {pgp}
</a>
X:if "@versions" {
X:text {  (for } !{@versions} X:text {)}
}
}
</p>
</li>
}
}