File: //opt/cpguard/app/resources/email_templates/manual_scan/cms.html
<table border="0" cellpadding="0" cellspacing="0" class="to100pc" width="100%">
<tr>
<td align="center">
<table align="center" bgcolor="white" border="0" cellpadding="0" cellspacing="0" class="to100pc" width="600"
style="max-width: 600px;">
<tbody>
<tr style="-webkit-text-size-adjust: none;">
<td height="16" style="-webkit-text-size-adjust: none;margin: 0;padding: 0;height: 16px;">
<img alt="" height="16" src="https://opsshield.com/assets/mail/space.gif"
style="-webkit-text-size-adjust: none;display: block;margin: 0;padding: 0;border: 0;height: 16px;">
</td>
<!-- spacer -->
</tr>
<tr>
<td align="center" width="76%" style="padding:30px 0 10px 0"><span
style="font-size:18px; line-height:14px; font-family:'Avenir Next', Avenir, Helvetica, sans-serif; color:#BABEC5; font-weight: 500;">
CMS THREAT REPORT</span>
</td>
</tr>
<tr>
<td align="center">
<table style="margin: 30px 0;">
<tr>
<td height="200" width="150" align="center"
style="background-color:#F3F3F3;font-weight:500;font-size: 23px;color:#777575;font-family:'Google Sans',Roboto,Arial,sans-serif;letter-spacing:0.1px;line-height: 27px;">
<span
style="font-size:66px;font-weight:600;color:#EA4335;padding-bottom: 10px;display: block;">{{outdated_count}}</span>
<br>Vulnerable versions
</td>
<td width="15"></td>
<td height="200" width="150" align="center"
style="background-color:#F3F3F3;font-weight:500;font-size: 23px;color:#777575;font-family:'Google Sans',Roboto,Arial,sans-serif;letter-spacing:0.1px;line-height: 27px;">
<span
style="font-size:66px;font-weight:600;color:#EA4335;padding-bottom: 10px;display: block;">{{critical_count}}</span>
<br>CVE <br>alerts
</td>
<td width="15"></td>
<td height="200" width="150" align="center"
style="background-color:#F3F3F3;font-weight:500;font-size: 23px;color:#777575;font-family:'Google Sans',Roboto,Arial,sans-serif;letter-spacing:0.1px;line-height: 27px;">
<span
style="font-size:66px;font-weight:600;color:#EA4335;padding-bottom: 10px;display: block;">{{cms_with_issues}}</span>
<br>CMS <br>with issues
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center" style="-webkit-text-size-adjust: none;padding-top: 30px;; ">
<table width="460">
<tr>
<td
style="width:18px;color:#585858;font-family:'Google Sans',Roboto,Arial,sans-serif;font-size:12px;line-height:26px; border-bottom: solid 1px #e6e6e6;border-top: solid 1px #e6e6e6;">
</td>
<td
style="color:#585858;font-family:'Google Sans',Roboto,Arial,sans-serif;font-size:12px;line-height:26px; border-bottom: solid 1px #e6e6e6;border-top: solid 1px #e6e6e6;">
CMS
</td>
<td align="right"
style="color:#585858;font-family:'Google Sans',Roboto,Arial,sans-serif;font-size:12px;line-height:26px;padding-right: 15px;border-bottom: solid 1px #e6e6e6;border-top: solid 1px #e6e6e6;">
Version
</td>
<td align="right"
style="color:#585858;font-family:'Google Sans',Roboto,Arial,sans-serif;font-size:12px;line-height:26px;padding-right: 15px;border-bottom: solid 1px #e6e6e6;border-top: solid 1px #e6e6e6;">
CVE STATUS
</td>
</tr>
{% if cms_with_issues > 0 or cms|length > 0 %}
{% set status_color = {'critical': '#f44336', 'high' : '#ff5722', 'medium' : '#ff9800',
'low' : '#ffeb3b', 'safe' : '#228B22'} %}
{% set status = {'latest':'#2ac664', 'outdated':'#ffeb3b','insecure' :'#EA4335'} %}
{% for item in cms %}
<tr>
<td valign="top"
style="color:#585858;font-family:Roboto,Arial,sans-serif;font-size:13px;word-break: break-all;border-bottom: solid 1px #e6e6e6;padding: 5px 0;">
<img src="https://opsshield.com/assets/mail/{{ item.type }}-icon.png" width="15"
style="padding-top:2px;" />
</td>
<td
style="color:#585858;font-family:Roboto,Arial,sans-serif;font-size:13px;word-break: break-all;border-bottom: solid 1px #e6e6e6;padding: 5px 0;">
<strong>{{ item.domain }}</strong><br />
{{ item.path|replace({ (scan.target): '' }) }}
</td>
<td align="right"
style="color:{{ status[item.threat] }};font-weight:500;font-family:Roboto,Arial,sans-serif;font-size:13px;border-bottom: solid 1px #e6e6e6;padding-right: 15px;">
{{ item.threat }} (v {{ item.version }})
</td>
<td
style="border-bottom:solid 1px #e6e6e6;padding:10px 0;text-align: left;vertical-align: top;text-align: center;">
{% if item.type =='wordpress' %}
<span
style="background-color: {{ status_color[item.threat_rating|lower] }}5e; color:#000; font-weight:500; font-size:10px; padding:3px 6px; border-radius:5px;">
{{ item.threat_rating|capitalize }}
</span>
{% else %}
<span style="color:#000; font-weight:500; font-size:10px; padding:3px 6px; border-radius:5px;">
</span>
{% endif %}
<br />
<span style="font-size:10px;">
{{ item.threat_score is not empty ? ' Score : ' ~ item.threat_score : '' }}
</span>
</td>
</tr>
{% endfor %}
{% endif %}
<tr>
<td colspan="3" align="center"
style="color:#585858;font-weight:500;font-family:'Google Sans',Roboto,Arial,sans-serif;padding: 20px 0;">
</td>
</tr>
</table>
</td>
</tr>
<!-- T&BP paragraph 1 start -->
<tr>
<td height="20" style="height:20px;"> </td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td colspan="3" bgcolor="#F4F5F8" style="line-height: 10px;">
<img alt="" height="10" src="https://opsshield.com/assets/mail/space.gif" style="display:block;" width="1"
border="0" />
</td>
</tr>
</table>