Skip to content

Commit

Permalink
Templates for exported HTML alerts.
Browse files Browse the repository at this point in the history
  • Loading branch information
dma committed Jun 29, 2016
1 parent 4d377a8 commit e335331
Show file tree
Hide file tree
Showing 3 changed files with 713 additions and 0 deletions.
102 changes: 102 additions & 0 deletions templates/report-alert.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
<#include "report-macros.ftl">

<div class="alert-body">
<a name="alert-${vars.num}"></a>

<@vegabanner
vars.bannerLogoURL ! ""
/>

<@topsection
doc.alert.title ! "No title set."
/>

<div class=alert-nav>
<#if vars.prev??>
<a href="#alert-${vars.prev}">Previous</a></span>
</#if>
<#if vars.next??>
<a href="#alert-${vars.next}">Next</a>
</#if>
</div>


<@infobox
doc.alert.class ! "No class set."
vars.resource ! ""
vars.hostname ! ""
vars.param ! ""
vars.methods ! ""
vars.detectiontype ! ""
vars.severity ! ""
vars.severityCSS ! ""
/>

<#if vars.requestText??>
<div class="section" id="requestlink">
<h2>Request</h2>
<div class="content" id="sectioncontent">
${vars.requestText}
</div>
</div>
</#if>

<@responsesection
vars.responseText ! ""
/>

<@outputsection
vars.output ! ""
/>

<@discussion
doc.alert.discussion
/>

<@impactsection
doc.alert.impact
/>

<@remediationsection
doc.alert.remediation
/>

<#if doc.alert.external?size != 0>
<div class="section" id="remrefsection">
<h2>External Remediation Guidelines</h2>
<div class="content" id="sectioncontent">
Below are some links to third-party guidelines, tutorials and other documentation that may be useful in understanding and/or addressing this finding.
<br>
<br>
<#list doc.alert.external.url as u>
<p><a class="reflink" href="${u.@address?html}">${u?html}</a></p>
</#list>
</div>
</div>
</#if>

<#if doc.alert.references?size != 0>
<div class="section" id="referencesection">
<h2>References</h2>
<div class="content" id="sectioncontent">
Some additional links with relevant information published by third-parties:
<br>
<br>
<#list doc.alert.references.url as u>
<ul><li><a class="reflink" href="${u.@address?html}">${u?html}</a></li></ul>
</#list>
</div>
</div>
</#if>
<br />
<br />
<br />
<hr>
<div class=footer>
<a class="innerlinksmall" href="#summary-page">Top</a>
</div>
<span class=footertext>Report generated ${vars.datetime} by the Vega open source web application security testing framework.
<br />
<a href="https://subgraph.com">https://subgraph.com</a><br />
</div>

Loading

0 comments on commit e335331

Please sign in to comment.