{% load humanize %} {% load event_tags %} {% load display_tags %} {% if product_type %}

Product Type Report

{{ product_type }}

{% elif product %}

Product Report {% if endpoints %} - Endpoints {% endif %}

{{ product }}

{% elif engagement %}

Engagement Report

{{ engagement.product.name }}: {{ engagement }}

{% elif test %}

Test Report

{{ test.engagement.product.name }}: {{ test.engagement }}, {{ test }}

{% elif endpoint %}

Endpoint Report

{{ endpoint }}

{% endif %}

Generated By {{ user.get_full_name }}
Generated On {% now "SHORT_DATE_FORMAT" %}

{% if include_executive_summary and not endpoint %}

Executive Summary

{% if product_type %} {% for prod in product_type.prod_type.all %}

{{ prod.name }}


{% if prod.engagement_set.all %} {% for eng in prod.engagement_set.all %} {% if eng.name and eng.name|length > 0 %} The {{ eng.name }} {% else %} An {% endif %} engagement ran from {{ eng.target_start|date:"SHORT_DATE_FORMAT" }} {% if eng.target_end %} to {{ eng.target_end|date:"SHORT_DATE_FORMAT" }}. {% else %} and is ongoing. {% endif %} {% if eng.test_set %}

The engagement also included the following tests which may be reported here:
{% endif %} {% if eng.test_strategy %}
The test strategy for this engagement can be viewed at {{ eng.test_strategy }}

{% else %}
{% endif %} {% endfor %} {% else %} No engagements found for {{ prod.name }}

{% endif %} {% endfor %} A total of {{ findings|length|apnumber }} finding{{ findings|length|pluralize }} of varying severity are represented in this report. {% endif %} {% if product %} {% if product.engagement_set.all %} {% for eng in product.engagement_set.all %}
{% if eng.name and eng.name|length > 0 %} The {{ eng.name }} {% else %} An {% endif %} engagement ran from {{ eng.target_start|date:"SHORT_DATE_FORMAT" }} {% if eng.target_end %} to {{ eng.target_end|date:"SHORT_DATE_FORMAT" }}. {% else %} and is ongoing. {% endif %} {% if eng.test_set %}

The engagement also included the following tests which may be reported here:
{% endif %} {% if eng.test_strategy %}
The test strategy for this engagement can be viewed at {{ eng.test_strategy }}

{% else %}
{% endif %} {% endfor %} {% else %} No engagements found for {{ product.name }}

{% endif %} A total of {{ findings|length|apnumber }} finding{{ findings|length|pluralize }} of varying severity are represented in this report. {% endif %} {% if engagement %}
{% if engagement.name and engagement.name|length > 0 %} The {{ engagement.name }} {% else %} An {% endif %} engagement ran from {{ engagement.target_start|date:"SHORT_DATE_FORMAT" }} {% if engagement.target_end %} to {{ engagement.target_end|date:"SHORT_DATE_FORMAT" }}. {% else %} and is ongoing. {% endif %} {% if engagement.test_set %}

The engagement also included the following tests which may be reported here:
{% endif %} {% if engagement.test_strategy %}
The test strategy for this engagement can be viewed at {{ engagement.test_strategy }}

{% else %}
{% endif %} A total of {{ findings|length|apnumber }} finding{{ findings|length|pluralize }} of varying severity are represented in this report. {% endif %} {% if test %}
A {{ test.test_type.name }} was conducted in the {{ test.environment.name }} environemnt {% if test.target_end %} from {{ test.target_start|date:"SHORT_DATE_FORMAT" }} to {{ test.target_end|date:"SHORT_DATE_FORMAT" }} {% else %} on {{ test.target_start|date:"SHORT_DATE_FORMAT" }} {% endif %} which yielded a total of {{ findings|length|apnumber }} finding{{ findings|length|pluralize }} of varying severity.

The test was part of {% if test.engagement.name %} the {{ test.engagement.name }} {% else %} an {% endif %} engagement which ran from {{ test.engagement.target_start|date:"SHORT_DATE_FORMAT" }} {% if test.engagement.target_end %} to {{ test.engagement.target_end|date:"SHORT_DATE_FORMAT" }}. {% else %} and is ongoing. {% endif %}

{% if test.engagement.test_set %} The engagement also included the following tests which are not reported here: {% endif %} {% endif %}

{% endif %} {% if include_table_of_contents %}

Table of Contents

{% endif %} {% if include_table_of_contents or include_executive_summary %} {% if not endpoint %}

{% endif %} {% endif %} {% if test %}

Test Notes

{% if test.notes.all %} {% for note in test.notes.all %} {{ note.author }} - {{ note.date }} - {{ note }}
{% endfor %} {% else %} No notes found. {% endif %}

{% endif %} {% if engagement.test_set.all %}

Test Notes

{% for test in engagement.test_set.all %} {% if test.notes.all %} {% for note in test.notes.all %} {{ note.author }} - {{ note.date }} - {{ note }}
{% endfor %} {% endif %} {% endfor %}

{% endif %} {% if engagement.risk_acceptance.count > 0 %}

Accepted Findings

{% for risk in engagement.risk_acceptance.all %} {% for finding in risk.accepted_findings.all %} {% endfor %} {% endfor %}
Name Date Severity
{{ finding.title }} {{ finding.date }} {{ finding.severity }}
{% endif %} {% if findings %}

Findings

{% endif %} {% for find in findings %}

Finding {{ find.id }}: {{ find.title | nice_title }} {% if find.mitigated %}Mitigated on: {{ find.mitigated }} {% endif %}

Product:

{{ find.test.engagement.product.name }}

Status:

{{ find.status }}

{% ifchanged find.severity %}
Severity: {{ find.severity }}
{% else %}
Severity: {{ find.severity }}
{% endifchanged %}

{{ find.severity }} ({{ find.numerical_severity }})

Description / Exploit:

{{ find.description|linebreaksbr|truncatechars:500 }}

Impact:

{{ find.impact|linebreaksbr }}

Systems Vulnerable:

{% for endpoint in find.endpoints.all %} {{ endpoint }}
{% endfor %}

Suggested Mitigation:

{{ find.mitigation|linebreaksbr }}

Further References:

{{ find.references|linebreaksbr }}

{% if include_finding_notes %}
Finding Notes:

{% if find.notes.all %} {% for note in find.notes.all %} {{ note.author }} - {{ note.date }} - {{ note }}
{% endfor %} {% else %} No notes found. {% endif %}

{% endif %} {% endfor %} {% if endpoints %}

Endpoints

{% for endpoint in endpoints %}

{{ endpoint }}

{% for find in endpoint.active_findings %}

Finding {{ find.id }}: {{ find.title | nice_title }} {% if find.mitigated %}Mitigated on: {{ find.mitigated }} {% endif %}

Product:

{{ find.test.engagement.product.name }}

Status:

{{ find.status }}

Severity: {{ find.severity }}

{{ find.severity }} ({{ find.numerical_severity }})

Description / Exploit:

{{ find.description|linebreaksbr|truncatechars:500 }}

Impact:

{{ find.impact|linebreaksbr }}

Systems Vulnerable:
{% for endpoint in find.endpoints.all %} {{ endpoint }}
{% endfor %}
Suggested Mitigation:

{{ find.mitigation|linebreaksbr }}

Further References:

{{ find.references|linebreaksbr }}

{% if include_finding_notes %}
Finding Notes:

{% if find.notes.all %} {% for note in find.notes.all %} {{ note.author }} - {{ note.date }} - {{ note }}
{% endfor %} {% else %} No notes found. {% endif %}

{% endif %} {% endfor %} {% endfor %} {% endif %}