{% extends "base.html" %} {% load display_tags %} {% load authorization_tags %} {% load get_endpoint_status %} {% 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:"" }}

{% 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 %} {% if test.percent_complete > 0 %} {% endif %} {% if 'TRACK_IMPORT_HISTORY'|setting_enabled and test.total_reimport_count %} {% endif %} {% if test.api_scan_configuration %} {% endif %}
{% trans "Engagement" %} {% trans "Environment" %} {% trans "Dates" %} {% trans "Updated" %}{% trans "Progress" %}{% 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 }}%
{{ test.version }}{{ test.total_reimport_count }} {% if prod|has_object_permission:"Product_Edit" %} {% endif %} {{ test.api_scan_configuration }} {% if prod|has_object_permission:"Product_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:"" }} {{ test_import.import_settings.endpoint|default_if_none:"" }} {% 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 %} {% 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:"Finding_Edit" or test|has_object_permission:"Finding_Delete" %} {% endif %}
{% block header %} {% if test|has_object_permission:"Test_Edit" or test|has_object_permission:"Test_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:"Test_Edit" or test|has_object_permission:"Test_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 "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_html:60 }} {% else %} {{ finding.id }} {% endif %} {% if finding.file_path %} {% endif %} {% if finding.endpoints.all %} {% endif %} {% if finding.component_name %} {% endif %} {% if finding.notes.all %} ({{ finding.notes.count }}) {% endif %} {% 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.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 "Potential Findings" %}

{% if test|has_object_permission:"Finding_Add" %}
{% csrf_token %}
{% endif %}
{% for finding in stub_findings %} {% endfor %}
{% trans "Name" %} {% trans "Severity" %} {% trans "Reporter" %} {% trans "Date" %} {% trans "Actions" %}
{% if test|has_object_permission:"Finding_Add" %} {{ finding.title }} {% else %} {{ finding.title }} {% endif %} {% if finding.severity == "Critical" or finding.severity == "High" %} {% else %} {{ finding.severity }} {% endif %} {% if finding.reporter.get_full_name and finding.reporter.get_full_name.strip %} {{ finding.reporter.get_full_name }} {% else %} {{ finding.reporter }} {% endif %} {{ finding.date }}
{% if test|has_object_permission:"Finding_Add" %} {% trans "Promote To Finding" %} {% endif %} {% if test|has_object_permission:"Finding_Edit" %}
{% csrf_token %}
{% endif %}
{% include "dojo/paging_snippet.html" with page=stub_findings %}
{% if system_settings.enable_credentials %}

{% trans "Credentials" %} {% if not cred_test and creds and test|has_object_permission:"Test_Edit" %} {% endif %}

{% if creds %} {% for cred in cred_test %} {% endfor %} {% for cred in creds %} {% endfor %}
{% trans "Name" %} {% trans "Username" %} {% trans "Role" %} {% trans "Environment" %} {% trans "Authentication Provider" %} {% trans "Login Valid" %} {% trans "Actions" %}
{% trans "Credentials Configured for this" %} {% trans "Test" %} {% if not cred_test %}
{% trans "None configured" %}
{% endif %}
{{ cred.cred_id.name }} {{ cred.cred_id.username }} {{ cred.cred_id.role }} {{ cred.cred_id.environment }} {{ cred.is_authn_provider }} {{ cred.cred_id.is_valid }}
{% if user.is_superuser %} {% trans "View" %} {% endif %} {% if test|has_object_permission:"Test_Edit" %} {% trans "Delete" %} {% endif %}
{% trans "Credentials Configured for this" %} {% trans "Engagement" %}
{{ cred.cred_id.name }} {{ cred.cred_id.username }} {{ cred.cred_id.role }} {{ cred.cred_id.environment }} {{ cred.is_authn_provider }} {{ cred.cred_id.is_valid }}
{% else %}

{% trans "No credentials configured." %} {% if not creds %} {% trans "Configure engagement credentials first, then add credentials to the test." %} {% endif %}

{% endif %}
{% endif %}

{% trans "Files" %}  {% if test|has_object_permission:"Test_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 %} 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" %} {% include "dojo/snippets/selectpicker_in_dropdown.html" %} {% endblock %}