-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathadvisories.html
More file actions
86 lines (82 loc) · 2.4 KB
/
Copy pathadvisories.html
File metadata and controls
86 lines (82 loc) · 2.4 KB
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
---
layout: default
permalink: /advisories.html
title: Security Advisories
---
<section class="page-heading">
<p class="eyebrow">Security Advisory</p>
<h1>Security Advisories</h1>
<p>As part of the security community, we actively support vulnerability research. Here you can find information about discovered vulnerabilities.</p>
<!-- Lists the vulnerabilities retrieved from:
- posts (needed values: vulnerability_release_date, affected_product, cwes, cve)
-->
</section>
{% assign vul_data = site.posts %}
{% assign sorted_vuls = vul_data | sort: "vulnerability_release_date" | reverse %}
{% assign lastyear = "" %}
{% assign table_open = false %}
{% for vul in sorted_vuls %}
{% if vul.vulnerability_release_date %}
{% assign currentyear = vul.vulnerability_release_date | date: "%Y" %}
{% if lastyear != currentyear %}
{% if table_open %}
</tbody>
</table>
</div>
{% endif %}
<h2>{{ currentyear }}</h2>
<div class="table-scroll">
<table class="advisory-table">
<colgroup>
<col class="advisory-table__date">
<col class="advisory-table__product">
<col class="advisory-table__cve">
<col class="advisory-table__type">
<col class="advisory-table__details">
</colgroup>
<thead>
<tr>
<th>Date</th>
<th>Product</th>
<th>CVE</th>
<th>Vulnerability Type</th>
<th>Details</th>
</tr>
</thead>
<tbody>
{% assign table_open = true %}
{% endif %}
<tr>
<td>{{ vul.vulnerability_release_date | date: "%m/%Y" }}</td>
<td>{{ vul.affected_product }}</td>
<td>
{% if vul.cve %}
<ul>
{% for cve in vul.cve %}<li>{{ cve }}</li>{% endfor %}
</ul>
{% endif %}
</td>
<td>
{% if vul.cwes %}
<ul>
{% for cwe in vul.cwes %}<li>{{ cwe | replace: "-", "‑" }}</li>{% endfor %}
</ul>
{% endif %}
</td>
<td>
{% assign post_url = vul.url | strip %}
{% if post_url != "" %}
<a href="{{ vul.url | relative_url }}">Post</a>
{% else %}
Upcoming
{% endif %}
</td>
</tr>
{% assign lastyear = currentyear %}
{% endif %}
{% endfor %}
{% if table_open %}
</tbody>
</table>
</div>
{% endif %}