|
68 | 68 | <li data-tab="epss"> |
69 | 69 | <a> |
70 | 70 | <span> |
71 | | - EPSS |
| 71 | + EPSS ({{ epss_severities|length }}) |
72 | 72 | </span> |
73 | 73 | </a> |
74 | 74 | </li> |
|
501 | 501 | </tr> |
502 | 502 | {% endfor %} |
503 | 503 | </div> |
504 | | - |
505 | | - |
| 504 | + |
506 | 505 | <div class="tab-div content" data-content="epss"> |
507 | | - {% if epss_data %} |
| 506 | + |
| 507 | + {% if epss_severities %} |
508 | 508 | <div class="has-text-weight-bold tab-nested-div ml-1 mb-1 mt-1"> |
509 | 509 | Exploit Prediction Scoring System (EPSS) |
510 | 510 | </div> |
| 511 | + |
| 512 | + {% with first=epss_severities.0 %} |
511 | 513 | <table class="table vcio-table width-100-pct mt-2"> |
512 | 514 | <tbody> |
513 | 515 | <tr> |
|
517 | 519 | Percentile |
518 | 520 | </span> |
519 | 521 | </td> |
520 | | - <td class="two-col-right">{{ epss_data.percentile }}</td> |
| 522 | + <td class="two-col-right">{{ first.scoring_elements }}</td> |
521 | 523 | </tr> |
522 | 524 | <tr> |
523 | 525 | <td class="two-col-left"> |
|
526 | 528 | EPSS Score |
527 | 529 | </span> |
528 | 530 | </td> |
529 | | - <td class="two-col-right">{{ epss_data.score }}</td> |
| 531 | + <td class="two-col-right">{{ first.value }}</td> |
530 | 532 | </tr> |
531 | | - {% if epss_data.published_at %} |
532 | 533 | <tr> |
533 | 534 | <td class="two-col-left"> |
534 | 535 | <span class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left" |
535 | 536 | data-tooltip="Date when the EPSS score was published."> |
536 | 537 | Published At |
537 | 538 | </span> |
538 | 539 | </td> |
539 | | - <td class="two-col-right">{{ epss_data.published_at }}</td> |
| 540 | + <td class="two-col-right">{{ first.published_at }}</td> |
540 | 541 | </tr> |
541 | | - {% endif %} |
542 | 542 | </tbody> |
543 | 543 | </table> |
544 | | - {% else %} |
545 | | - <p>No EPSS data available for this vulnerability.</p> |
546 | | - {% endif %} |
547 | | - </div> |
| 544 | + {% endwith %} |
548 | 545 |
|
549 | | - <div class="tab-div content" data-content="history"> |
550 | | - <table class="table is-bordered is-striped is-narrow is-hoverable is-fullwidth"> |
551 | | - <thead> |
| 546 | + <div class="has-text-weight-bold tab-nested-div ml-1 mb-1 mt-1"> |
| 547 | + EPSS History |
| 548 | + </div> |
| 549 | + |
| 550 | + <table class="table is-bordered is-striped is-narrow is-hoverable is-fullwidth gray-header-border"> |
| 551 | + <tr> |
| 552 | + <th style="width: 100px;"> Score </th> |
| 553 | + <th style="width: 100px;"> Percentile </th> |
| 554 | + <th> Published At </th> |
| 555 | + <th> Found at </th> |
| 556 | + </tr> |
| 557 | + {% for epss_severity in epss_severities %} |
| 558 | + <tr> |
| 559 | + <td class="wrap-strings">{{ epss_severity.value }}</td> |
| 560 | + <td class="wrap-strings">{{ epss_severity.scoring_elements }}</td> |
| 561 | + <td class="wrap-strings">{{ epss_severity.published_at }}</td> |
| 562 | + <td class="wrap-strings"> |
| 563 | + <a href="{{ epss_severity.url }}" target="_blank"> |
| 564 | + {{ epss_severity.url }} |
| 565 | + <i class="fa fa-external-link fa_link_custom"></i> |
| 566 | + </a> |
| 567 | + </td> |
| 568 | + </tr> |
| 569 | + {% endfor %} |
| 570 | + </table> |
| 571 | + {% else %} |
552 | 572 | <tr> |
553 | | - <th> |
554 | | - <span |
555 | | - class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left" |
556 | | - data-tooltip="The date that the vulnerability was imported (collected) or improved."> |
557 | | - Date </span> |
558 | | - </th> |
559 | | - <th> |
560 | | - <span |
561 | | - class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left" |
562 | | - data-tooltip="The process that created or updated the vulnerability."> Actor </span> |
563 | | - </th> |
564 | | - <th> <span |
565 | | - class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left" |
566 | | - data-tooltip="Imported or Improved"> Action </span> </th> |
567 | | - <th> <span |
568 | | - class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left" |
569 | | - data-tooltip="The public service that published the advisory or related information."> Source </span> </th> |
570 | | - <th> <span |
571 | | - class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left" |
572 | | - data-tooltip="The version of VulnerableCode that performed the action. "> |
573 | | - VulnerableCode Version |
574 | | - </span> </th> |
| 573 | + <td colspan="2"> |
| 574 | + No EPSS data available for this vulnerability. |
| 575 | + </td> |
575 | 576 | </tr> |
576 | | - </thead> |
577 | | - {% for log in history %} |
578 | | - <tr> |
579 | | - <td class="is-break-word wrap-strings">{{ log.get_iso_time }}</td> |
580 | | - <td class="is-break-word wrap-strings">{{ log.actor_name }}</td> |
581 | | - <td class="is-break-word wrap-strings">{{ log.get_action_type_label }}</td> |
582 | | - <td class="is-break-word wrap-strings"> <a href="{{ log.source_url }}" target="_blank">{{log.source_url }}</a></td> |
583 | | - <td class="is-break-word wrap-strings"> {{ log.software_version }} </td> |
584 | | - </tr> |
585 | | - {% empty %} |
586 | | - <tr> |
587 | | - <td colspan="5"> |
588 | | - There are no relevant records. |
589 | | - </td> |
590 | | - </tr> |
591 | | - {% endfor %} |
592 | | - </table> |
| 577 | + {% endif %} |
593 | 578 | </div> |
| 579 | + <div class="tab-div content" data-content="history"> |
| 580 | + <table class="table is-bordered is-striped is-narrow is-hoverable is-fullwidth"> |
| 581 | + <thead> |
| 582 | + <tr> |
| 583 | + <th> |
| 584 | + <span |
| 585 | + class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left" |
| 586 | + data-tooltip="The date that the vulnerability was imported (collected) or improved."> |
| 587 | + Date </span> |
| 588 | + </th> |
| 589 | + <th> |
| 590 | + <span |
| 591 | + class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left" |
| 592 | + data-tooltip="The process that created or updated the vulnerability."> Actor </span> |
| 593 | + </th> |
| 594 | + <th> <span |
| 595 | + class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left" |
| 596 | + data-tooltip="Imported or Improved"> Action </span> </th> |
| 597 | + <th> <span |
| 598 | + class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left" |
| 599 | + data-tooltip="The public service that published the advisory or related information."> Source </span> </th> |
| 600 | + <th> <span |
| 601 | + class="has-tooltip-multiline has-tooltip-black has-tooltip-arrow has-tooltip-text-left" |
| 602 | + data-tooltip="The version of VulnerableCode that performed the action. "> |
| 603 | + VulnerableCode Version |
| 604 | + </span> </th> |
| 605 | + </tr> |
| 606 | + </thead> |
| 607 | + {% for log in history %} |
| 608 | + <tr> |
| 609 | + <td class="is-break-word wrap-strings">{{ log.get_iso_time }}</td> |
| 610 | + <td class="is-break-word wrap-strings">{{ log.actor_name }}</td> |
| 611 | + <td class="is-break-word wrap-strings">{{ log.get_action_type_label }}</td> |
| 612 | + <td class="is-break-word wrap-strings"> <a href="{{ log.source_url }}" target="_blank">{{log.source_url }}</a></td> |
| 613 | + <td class="is-break-word wrap-strings"> {{ log.software_version }} </td> |
| 614 | + </tr> |
| 615 | + {% empty %} |
| 616 | + <tr> |
| 617 | + <td colspan="5"> |
| 618 | + There are no relevant records. |
| 619 | + </td> |
| 620 | + </tr> |
| 621 | + {% endfor %} |
| 622 | + </table> |
| 623 | + </div> |
594 | 624 | </div> |
595 | 625 | </div> |
596 | 626 | </section> |
|
0 commit comments