{% extends "base.html" %} {% load display_tags %} {% load authorization_tags %} {% load get_endpoint_status %} {% load static %} {% 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 %} Updated {{ test.updated|naturaltime|default_if_none:"" }}, 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 %} {% endif %} {% if 'TRACK_IMPORT_HISTORY'|setting_enabled and test.total_reimport_count %} {% endif %} {% if test.api_scan_configuration %} {% endif %}
Engagement Environment Dates UpdatedProgressVersionReimports 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 }} {% if test.percent_complete > 0 %}
{{ 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 %}

Details

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

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 %}
Type Date/Time Branch/Tag Build ID Commit Version Endpoint 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 %}

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 %}

Groups ({{ finding_groups|length }})

Experimental feature, use bulk edit to create/edit them {% 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 %}
Severity Name Findings Vulnerability Ids Components Date AgeSLACreator StatusJira Jira Age 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 %} None {% comment %} {% endcomment %} {% endif %} {{ group | jira_creation | timesince }} {{ group | jira_change | timesince }}
{% else %}

No Groups found.

{% endif %}
{% endif %}

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 %}
{% 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 %} {% for finding in findings %} {% 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 %} {% endfor %}
Severity Name CWE Vulnerability Id Date AgeSLAReporter StatusJira Jira Age Jira ChangeGroup
{{ finding.severity_display }} {% if finding.title %} {{ finding.title|truncatechars_html:60 }} {% else %} {{ finding.id }} {% endif %} {% if finding.file_path %} {% if finding.component_name %} {% endif %} {% else %} {% if finding.endpoints.all %} 🚩{% endif %}
{% endfor %} " data-placement="right" data-container="body" data-original-title="Endpoints ({{finding.active_endpoint_count}} Active, {{finding.mitigated_endpoint_count}} Mitigated)" title="">
{% endif %} {% 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 %}
{% include "dojo/paging_snippet.html" with page=findings prefix='findings' page_size=True %}
{% else %}

No findings found.

{% endif %}

Potential Findings

{% if test|has_object_permission:"Finding_Add" %}
{% csrf_token %}
{% endif %}
{% for finding in stub_findings %} {% else %} {{ finding.title }} {% endif %} {% endfor %}
Name Severity Reporter Date Actions
{% if test|has_object_permission:"Finding_Add" %} {{ finding.title }}{% if finding.severity == "Critical" or finding.severity == "High" %} {% else %}{% endif %}{{ finding.severity }} {% 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_Edit" %}
Promote To Finding
{% csrf_token %}
{% endif %}
{% include "dojo/paging_snippet.html" with page=stub_findings %}
{% if system_settings.enable_credentials %}

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 %}
Name Username Role Environment Authentication Provider Login Valid Actions
Credentials Configured for this Test {% if not cred_test %}
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 %} View {% endif %} {% if test|has_object_permission:"Test_Edit" %} Delete {% endif %}
Credentials Configured for this 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 %}

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

{% endif %}
{% endif %}

Files  {% if test|has_object_permission:"Test_Edit" %} {% endif %}

{% for file in files %} {% endfor %}
{% include "dojo/snippets/comments.html" with notes=notes object=test destination="test" %}
ProTip! Type e to edit this test. Type a 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 %}