From 17baea4e651a3c261f9ea91c81fb9d18c67bc30d Mon Sep 17 00:00:00 2001 From: Yogesh Ojha Date: Thu, 30 Sep 2021 02:30:18 +0530 Subject: [PATCH] Vulnerability details added in report --- web/static/reports/report.css | 34 ++++++++++++- web/templates/report/full.html | 92 ++++++++++++++++++++++++++++++++++ 2 files changed, 125 insertions(+), 1 deletion(-) diff --git a/web/static/reports/report.css b/web/static/reports/report.css index c78ae831..f705945d 100644 --- a/web/static/reports/report.css +++ b/web/static/reports/report.css @@ -212,13 +212,45 @@ h4 { background: #FFE082 !important; } +.critical-text{ + color: #F44336 !important; +} +.high-text{ + color: #FFAB91 !important; +} +.medium-text{ + color: #FF7043 !important; +} +.low-text{ + color: #FFE082 !important; +} +.info-text{ + color: #29B6F6 !important; +} + +.critical-line{ + border-bottom: 3px solid #F44336 !important; +} +.high-line{ + border-bottom: 3px solid #FFAB91 !important; +} +.medium-line{ + border-bottom: 3px solid #FF7043 !important; +} +.low-line{ + border-bottom: 3px solid #FFE082 !important; +} +.info-line{ + border-bottom: 3px solid #29B6F6 !important; +} + #vulnerability-count{ font-size: 30pt; } #info_title{ font-size: 13pt; - color: #1976D2; + color: #29B6F6; } .bold-h3{ diff --git a/web/templates/report/full.html b/web/templates/report/full.html index 0ddd9274..25c5097f 100644 --- a/web/templates/report/full.html +++ b/web/templates/report/full.html @@ -38,6 +38,7 @@
  • +
  • @@ -229,6 +230,97 @@ {% endfor %} +
    +

    Vulnerabilities Discovered

    +

    + Total of {{scan_object.get_vulnerability_count}} were discovered in {{scan_object.domain.name}}, + {{scan_object.get_critical_vulnerability_count}} of them were Critical, + {{scan_object.get_high_vulnerability_count}} of them were High Severity, + {{scan_object.get_medium_vulnerability_count}} of them were Medium severity, + {{scan_object.get_low_vulnerability_count}} of them were Low severity, and + {{scan_object.get_info_vulnerability_count}} of them were Informational. +

    +

    Vulnerability Breakdown by Severity

    +
    +
    +

    Critical +
    + + {{scan_object.get_critical_vulnerability_count}} + +

    +
    +
    +

    High +
    + + {{scan_object.get_high_vulnerability_count}} + +

    +
    +
    +

    Medium +
    + + {{scan_object.get_medium_vulnerability_count}} + +

    +
    +
    +

    Low +
    + + {{scan_object.get_low_vulnerability_count}} + +

    +
    +
    + * {{scan_object.get_info_vulnerability_count}} Informational Vulnerabilities Identified +
    + {# start vulnerability #} +
    +

    Vulnerability Details

    +
    + {% for vulnerability in all_vulnerabilities %} +

    + {{vulnerability.name}} + {% if vulnerability.severity == 0 %} + Informational +

    +
    + {% elif vulnerability.severity == 1 %} + Low + +
    + {% elif vulnerability.severity == 2 %} + Medium + +
    + {% elif vulnerability.severity == 3 %} + High + +
    + {% elif vulnerability.severity == 4 %} + Critical + +
    + {% endif %} + + + {{vulnerability.tags}} + + Discovered on: {{vulnerability.discovered_date}} +
    + Vulnerable URL: {{vulnerability.http_url}} +
    + {% if vulnerability.description %} + + {{vulnerability.description}} + + {% endif %} +

    + {% endfor %} +