|
1 | 1 | {% extends "base.html" %} |
| 2 | +{% load show_cvss %} |
2 | 3 | {% load humanize %} |
3 | 4 | {% load widget_tweaks %} |
4 | 5 | {% load static %} |
|
52 | 53 | </span> |
53 | 54 | </a> |
54 | 55 | </li> |
| 56 | + <li data-tab="severities-vectors"> |
| 57 | + <a> |
| 58 | + <span> |
| 59 | + Severities vectors ({{ severity_vectors|length }}) |
| 60 | + </span> |
| 61 | + </a> |
| 62 | + </li> |
55 | 63 | </ul> |
56 | 64 | </div> |
57 | 65 | <div id="tab-content"> |
|
297 | 305 | </table> |
298 | 306 | </div> |
299 | 307 |
|
| 308 | + <div class="tab-div content" data-content="severities-vectors"> |
| 309 | + {% for severity_vector in severity_vectors %} |
| 310 | + {% if severity_vector.version == '2.0' %} |
| 311 | + Vector: {{ severity_vector.vectorString }} |
| 312 | + <table class="table is-bordered is-striped is-narrow is-hoverable is-fullwidth gray-header-border"> |
| 313 | + <tr> |
| 314 | + <th>Exploitability (E)</th> |
| 315 | + <th>Access Vector (AV)</th> |
| 316 | + <th>Access Complexity (AC)</th> |
| 317 | + <th>Authentication (Au)</th> |
| 318 | + <th>Confidentiality Impact (C)</th> |
| 319 | + <th>Integrity Impact (I)</th> |
| 320 | + <th>Availability Impact (A)</th> |
| 321 | + </tr> |
| 322 | + <tr> |
| 323 | + <td>{{ severity_vector.exploitability|cvss_printer:"high,functional,unproven,proof_of_concept,not_defined" }}</td> |
| 324 | + <td>{{ severity_vector.accessVector|cvss_printer:"local,adjacent_network,network" }}</td> |
| 325 | + <td>{{ severity_vector.accessComplexity|cvss_printer:"high,medium,low" }}</td> |
| 326 | + <td>{{ severity_vector.authentication|cvss_printer:"multiple,single,none" }}</td> |
| 327 | + <td>{{ severity_vector.confidentialityImpact|cvss_printer:"none,partial,complete" }}</td> |
| 328 | + <td>{{ severity_vector.integrityImpact|cvss_printer:"none,partial,complete" }}</td> |
| 329 | + <td>{{ severity_vector.availabilityImpact|cvss_printer:"none,partial,complete" }}</td> |
| 330 | + </tr> |
| 331 | + </table> |
| 332 | + {% elif severity_vector.version == '3.1' or severity_vector.version == '3.0'%} |
| 333 | + Vector: {{ severity_vector.vectorString }} |
| 334 | + <table class="table is-bordered is-striped is-narrow is-hoverable is-fullwidth gray-header-border"> |
| 335 | + <tr> |
| 336 | + <th>Attack Vector (AV)</th> |
| 337 | + <th>Attack Complexity (AC)</th> |
| 338 | + <th>Privileges Required (PR)</th> |
| 339 | + <th>User Interaction (UI)</th> |
| 340 | + <th>Scope (S)</th> |
| 341 | + <th>Confidentiality Impact (C)</th> |
| 342 | + <th>Integrity Impact (I)</th> |
| 343 | + <th>Availability Impact (A)</th> |
| 344 | + </tr> |
| 345 | + <tr> |
| 346 | + <td>{{ severity_vector.attackVector|cvss_printer:"network,adjacent_network,local,physical"}}</td> |
| 347 | + <td>{{ severity_vector.attackComplexity|cvss_printer:"low,high" }}</td> |
| 348 | + <td>{{ severity_vector.privilegesRequired|cvss_printer:"none,low,high" }}</td> |
| 349 | + <td>{{ severity_vector.userInteraction|cvss_printer:"none,required"}}</td> |
| 350 | + <td>{{ severity_vector.scope|cvss_printer:"unchanged,changed" }}</td> |
| 351 | + <td>{{ severity_vector.confidentialityImpact|cvss_printer:"high,low,none" }}</td> |
| 352 | + <td>{{ severity_vector.integrityImpact|cvss_printer:"high,low,none" }}</td> |
| 353 | + <td>{{ severity_vector.availabilityImpact|cvss_printer:"high,low,none" }}</td> |
| 354 | + </tr> |
| 355 | + </table> |
| 356 | + {% endif %} |
| 357 | + {% empty %} |
| 358 | + <tr> |
| 359 | + <td> |
| 360 | + There are no known CVSS vectors. |
| 361 | + </td> |
| 362 | + </tr> |
| 363 | + {% endfor %} |
| 364 | + </div> |
300 | 365 | </div> |
301 | 366 | </div> |
302 | 367 | </section> |
|
0 commit comments