{% extends "base.html" %} {% load display_tags %} {% load get_note_status %} {% load authorization_tags %} {% load static %} {% load i18n %} {% load humanize %} {% block add_styles %} {{ block.super }} ul#select_by_severity a:hover, ul#bulk_edit a:hover { cursor: pointer; } .btn-success { color: #fff; background-color: #546474!important; border-color: #546474; } .btn-success:hover { background-color: #546474!important; } {% endblock %} {% block content %} {{ block.super }}

{{ test }} {% include "dojo/snippets/tags.html" with tags=test.tags.all %} {% trans "Updated" %} {{ test.updated|naturaltime|default_if_none:"" }}, {% trans "Created" %} {{ test.created|naturaltime|default_if_none:"" }}

{% block test_header %} {% if test.percent_complete > 0 %}{% endif %} {% if 'TRACK_IMPORT_HISTORY'|setting_enabled and test.test_import_set.all %} {% endif %} {% if test.api_scan_configuration %}{% endif %} {% endblock test_header %} {% block test_body %} {% if test.percent_complete > 0 %} {% endif %} {% if 'TRACK_IMPORT_HISTORY'|setting_enabled and test.total_reimport_count %} {% endif %} {% if test.api_scan_configuration %} {% endif %} {% endblock test_body %}
{% trans "Engagement" %} {% trans "Environment" %} {% trans "Dates" %} {% trans "Updated" %}{% trans "Progress" %}{% trans "Fix Available" %} {% trans "Version" %} {% trans "Reimports" %} {% trans "API Scan Configuration" %}
{{ test.engagement.name }} {% if test.environment %} {{ test.environment }} {% else %} Unknown {% endif %} {{ test.target_start|date }} - {{ test.target_end|date }} {{ test.updated|date }}
{{ test.percent_complete }}%
{{ fix_available_count }} {{ test.version }}{{ test.total_reimport_count }} {% if prod|has_object_permission:"edit" %} {% endif %} {{ test.api_scan_configuration }} {% if prod|has_object_permission:"edit" %} {% endif %}
{% if test.description %}

{% trans "Details" %}

{{ test.description|markdown_render }}
{% endif %} {% if 'TRACK_IMPORT_HISTORY'|setting_enabled and test.total_reimport_count %}

{% trans "Import History" %} ({{ test.total_reimport_count }})

{% include "dojo/filter_snippet.html" with form=test_import_filter.form %}
{% if paged_test_imports %} {% for test_import in paged_test_imports %} {% endfor %}
{% trans "Type" %} {% trans "Date/Time" %} {% trans "Branch/Tag" %} {% trans "Build ID" %} {% trans "Commit" %} {% trans "Version" %} {% trans "Endpoint" %} {% trans "Actions" %}
{{ test_import.type }} {{ test_import.created|date:"DATETIME_FORMAT" }} {{ test_import|import_settings_tag }} {{ test_import.branch_tag|default_if_none:"" }} {{ test_import.build_id|default_if_none:"" }} {{ test_import.commit_hash|default_if_none:"" }} {{ test_import.version|default_if_none:"" }} {% if V3_FEATURE_LOCATIONS %} {{ test_import.import_settings.locations|default_if_none:"" }} {% else %} {% comment %} TODO: Delete this after the move to Locations {% endcomment %} {{ test_import.import_settings.endpoint|default_if_none:"" }} {% endif %} {% regroup test_import.test_import_finding_action_set.all by get_action_display as finding_action_list %} {% for action in finding_action_list %} {{ action.list|length }} {{ action.grouper }} {% if not forloop.last %},{% endif %} {% empty %} There were no findings created, closed, or modified {% endfor %}
{% else %}

{% trans "No import history found." %}

{% endif %}
{% include "dojo/paging_snippet.html" with page=paged_test_imports prefix='test_imports' page_size=True %}
{% endif %} {% if 'is_finding_groups_enabled'|system_setting_enabled %}

{% trans "Groups" %} ({{ finding_groups|length }})

{% if finding_groups %} {% if system_settings.enable_finding_sla %} {% endif %} {% if system_settings.enable_jira %} {% if jira_project and product_tab or not product_tab %} {% endif %} {% endif %} {% for group in finding_groups %} {% if system_settings.enable_finding_sla %} {% endif %} {% if system_settings.enable_jira %} {% if jira_project %} {% endif %} {% endif %} {% endfor %}
{% trans "Severity" %} {% trans "Name" %} {% trans "Findings" %} {% trans "Vulnerability Ids" %} {% trans "Components" %} {% trans "Date" %} {% trans "Age" %} {% trans "SLA" %} {% trans "Creator" %} {% trans "Status" %} {% trans "Jira" %} {% trans "Jira Age" %} {% trans "Jira Change" %}
{{ group.severity }} {{ group.name|truncatechars_html:60 }} {{ group.findings.all|length }} {% for find in group.findings.all %} {% with find|first_vulnerability_id as first_vulnerability_id %} {% if first_vulnerability_id %} {% if first_vulnerability_id|has_vulnerability_url %} {{ first_vulnerability_id }} {% else %} {{ first_vulnerability_id }} {% endif %} {% if not forloop.last %},{% endif %} {% endif %} {% endwith %} {% endfor %} {{ group.components }} {{ group.created }} {{ group.age }} {{ group|group_sla }} {% if group.creator.get_full_name and group.creator.get_full_name.strip %} {{ group.creator.get_full_name }} {% else %} {{ group.creator }} {% endif %} {{ group.status }} {% if group.jira_issue %} {{ group | jira_key }} {% else %} {% trans "None" %} {% comment %} {% endcomment %} {% endif %} {{ group | jira_creation | timesince }} {{ group | jira_change | timesince }}
{% else %}

{% trans "No Groups found." %}

{% endif %}
{% endif %}

{% trans "Findings" %} ({{ findings.total_count }}) {{ test.id|get_severity_count:"test" }}  

{% include "dojo/filter_snippet.html" with form=filtered.form %}
{% if findings %}
{% include "dojo/paging_snippet.html" with page=findings prefix='findings' page_size=True %}
{% if test|has_object_permission:"edit" or test|has_object_permission:"delete" %} {% endif %}
{% block header %} {% if test|has_object_permission:"edit" or test|has_object_permission:"delete" %} {% endif %} {% if system_settings.enable_finding_sla %} {% endif %} {% if system_settings.enable_jira %} {% if jira_project and product_tab or not product_tab %} {% endif %} {% endif %} {% if 'is_finding_groups_enabled'|system_setting_enabled %} {% endif %} {% endblock header %} {% for finding in findings %} {% block body %} {% if test|has_object_permission:"edit" or test|has_object_permission:"delete" %} {% endif %} {% if system_settings.enable_finding_sla %} {% endif %} {% if system_settings.enable_jira %} {% if jira_project and product_tab or not product_tab %} {% endif %} {% endif %} {% if 'is_finding_groups_enabled'|system_setting_enabled %} {% endif %} {% endblock body %} {% endfor %}
{% trans "Severity" %} {% trans "Name" %} {% trans "CWE" %} {% trans "Vulnerability Id" %} {% trans "EPSS Score" %} {% trans "EPSS Percentile" %} {% trans "Date" %} {% trans "Age" %} {% trans "SLA" %} {% trans "Reporter" %} {% trans "Status" %} {% trans "Jira" %} {% trans "Jira Age" %} {% trans "Jira Change" %} {% trans "Group" %} {% trans "Planned Remediation" %}
{{ finding.severity_display }} {% if finding.title %} {{ finding.title|truncatechars:60 }} {% else %} {{ finding.id }} {% endif %} {% if finding.file_path %} {% endif %} {% if V3_FEATURE_LOCATIONS %} {% if finding.locations.exists %} {% else %} ✕ {{ ref.location }}
{% endif %} {% endfor %} ">
{% endif %} {% else %} {% comment %} TODO: Delete this after the move to Locations {% endcomment %} {% if finding.endpoints.all %} {% endif %} {% endif %} {% if finding.component_name %} {% endif %} {% with visible_notes=finding.notes.all|visible_to:request.user %} {% if visible_notes %} ({{ visible_notes|length }}) {% endif %} {% endwith %} {% include "dojo/snippets/tags.html" with tags=finding.tags.all %}
{% if finding.cwe > 0 %} {{ finding.cwe }} {% endif %} {% with finding|first_vulnerability_id as first_vulnerability_id %} {% if first_vulnerability_id %} {% if first_vulnerability_id|has_vulnerability_url %} {{ first_vulnerability_id|default:"" }} {% else %} {{ first_vulnerability_id }} {% endif %} {% endif %} {% endwith %} {{ finding.epss_score|format_epss }} {{ finding.epss_percentile|format_epss }} {{ finding.date }} {{ finding.age }} {{ finding|finding_sla }} {% if finding.reporter.get_full_name and finding.reporter.get_full_name.strip %} {{ finding.reporter.get_full_name }} {% else %} {{ finding.reporter }} {% endif %} {{ finding|finding_display_status|safe }} {{ finding|import_history }} {% if finding.has_jira_group_issue %} {{ finding.finding_group | jira_key }} {% elif finding.has_jira_issue %} {{ finding | jira_key }} {% endif %} {% if finding.has_jira_group_issue %} {{ finding.finding_group | jira_creation | timesince }} {% else %} {{ finding | jira_creation | timesince }} {% endif %} {% if finding.has_jira_group_issue %} {{ finding.finding_group | jira_change | timesince }} {% else %} {{ finding | jira_change | timesince }} {% endif %} {% if finding.has_finding_group %} {{ finding.finding_group.name }} {% endif %} {% if finding.planned_remediation_date %}{{ finding.planned_remediation_date }}{% endif %}
{% include "dojo/paging_snippet.html" with page=findings prefix='findings' page_size=True %}
{% else %}

{% trans "No findings found." %}

{% endif %}

{% trans "Files" %}  {% if test|has_object_permission:"edit" %} {% endif %}

{% for file in files %}
{% url 'access_file' fid=file.id oid=test.id obj_type='Test' as image_url %} {% if file|get_thumbnail %} {% trans 'thumbnail' %} {% else %} {% endif %}
{{ file.title }}
{% endfor %}
{% include "dojo/snippets/comments.html" with notes=notes object=test destination="test" %}
{% trans "ProTip!" %} {% trans "Type" %}s e {% trans "to edit this test. Type" %} a {% trans "to add a finding to this test." %}
{% endblock %} {% block postscript %} {{ block.super }} {% include "dojo/filter_js_snippet.html" %} {% endblock %}