Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(email-templates): fixes <a> security issues #73

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/comms/email-templates/account-invite/email.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,15 +146,15 @@
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:separate;line-height:100%;">
<tr>
<td align="center" bgcolor="#2563EB" role="presentation" style="border:none;border-radius:3px;cursor:auto;mso-padding-alt:10px 25px;background:#2563EB;" valign="middle">
<a href="{{.Link}}" style="display:inline-block;background:#2563EB;color:#ffffff;font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:16px;font-weight:normal;line-height:120%;margin:0;text-decoration:none;text-transform:none;padding:10px 25px;mso-padding-alt:0px;border-radius:3px;" target="_blank"> Accept Invite </a>
<a href="{{.Link}}" rel="noopener noreferrer" style="display:inline-block;background:#2563EB;color:#ffffff;font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:16px;font-weight:normal;line-height:120%;margin:0;text-decoration:none;text-transform:none;padding:10px 25px;mso-padding-alt:0px;border-radius:3px;" target="_blank"> Accept Invite </a>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="left" style="font-size:0px;padding:10px 25px;word-break:break-word;">
<div style="font-family:Open Sans, Arial;font-size:16px;line-height:1.5;text-align:left;color:#555555;">Alternatively, you can copy and paste the following URL into your browser: <a href="{{.Link}}">{{.Link}}</a></div>
<div style="font-family:Open Sans, Arial;font-size:16px;line-height:1.5;text-align:left;color:#555555;">Alternatively, you can copy and paste the following URL into your browser: <a href="{{.Link}}" rel="noopener noreferrer">{{.Link}}</a></div>
</td>
</tr>
<tr>
Expand Down
5 changes: 3 additions & 2 deletions apps/comms/email-templates/account-invite/email.mjml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!-- vim: set ft=html: -->
<mjml>
<mj-body background-color="#f7f7f7">
<mj-section padding="20px 0">
Expand All @@ -13,12 +14,12 @@
<mj-text font-family="Open Sans, Arial" font-size="16px" color="#555" line-height="1.5">
To accept, please click the button below.
</mj-text>
<mj-button align="left" href="{{.Link}}" background-color="#2563EB" font-size="16px" color="#fff">
<mj-button align="left" href="{{.Link}}" rel="noopener noreferrer" background-color="#2563EB" font-size="16px" color="#fff">
Accept Invite
</mj-button>
<mj-text font-family="Open Sans, Arial" font-size="16px" color="#555" line-height="1.5">
Alternatively, you can copy and paste the following URL into your browser:
<a href="{{.Link}}">{{.Link}}</a>
<a href="{{.Link}}" rel="noopener noreferrer">{{.Link}}</a>
</mj-text>
<mj-text font-family="Open Sans, Arial" font-size="14px" color="#888">
If you have any questions or need assistance, please don't hesitate to contact us.
Expand Down
24 changes: 0 additions & 24 deletions apps/comms/email-templates/billing/email.html

This file was deleted.

29 changes: 0 additions & 29 deletions apps/comms/email-templates/billing/email.mjml

This file was deleted.

7 changes: 0 additions & 7 deletions apps/comms/email-templates/billing/email.txt

This file was deleted.

5 changes: 2 additions & 3 deletions apps/comms/email-templates/project-invite/email.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<!-- DO NOT EDIT: generated with `email.mjml` in their online editor -->
<!-- source: https://mjml.io/try-it-live/7JYt3Yl1eX -->
<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">

Expand Down Expand Up @@ -147,15 +146,15 @@
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:separate;line-height:100%;">
<tr>
<td align="center" bgcolor="#2563EB" role="presentation" style="border:none;border-radius:3px;cursor:auto;mso-padding-alt:10px 25px;background:#2563EB;" valign="middle">
<a href="{{.Link}}" style="display:inline-block;background:#2563EB;color:#ffffff;font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:16px;font-weight:normal;line-height:120%;margin:0;text-decoration:none;text-transform:none;padding:10px 25px;mso-padding-alt:0px;border-radius:3px;" target="_blank"> Accept Invite </a>
<a href="{{.Link}}" rel="noopener noreferrer" style="display:inline-block;background:#2563EB;color:#ffffff;font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:16px;font-weight:normal;line-height:120%;margin:0;text-decoration:none;text-transform:none;padding:10px 25px;mso-padding-alt:0px;border-radius:3px;" target="_blank"> Accept Invite </a>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="left" style="font-size:0px;padding:10px 25px;word-break:break-word;">
<div style="font-family:Open Sans, Arial;font-size:16px;line-height:1.5;text-align:left;color:#555555;">Alternatively, you can copy and paste the following URL into your browser: <a href="{{.Link}}">{{.Link}}</a></div>
<div style="font-family:Open Sans, Arial;font-size:16px;line-height:1.5;text-align:left;color:#555555;">Alternatively, you can copy and paste the following URL into your browser: <a href="{{.Link}}" rel="noopener noreferrer">{{.Link}}</a></div>
</td>
</tr>
<tr>
Expand Down
5 changes: 3 additions & 2 deletions apps/comms/email-templates/project-invite/email.mjml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!-- vim: set ft=html: -->
<mjml>
<mj-body background-color="#f7f7f7">
<mj-section padding="20px 0">
Expand All @@ -13,12 +14,12 @@
<mj-text font-family="Open Sans, Arial" font-size="16px" color="#555" line-height="1.5">
To accept, please click the button below.
</mj-text>
<mj-button align="left" href="{{.Link}}" background-color="#2563EB" font-size="16px" color="#fff">
<mj-button align="left" href="{{.Link}}" rel="noopener noreferrer" background-color="#2563EB" font-size="16px" color="#fff">
Accept Invite
</mj-button>
<mj-text font-family="Open Sans, Arial" font-size="16px" color="#555" line-height="1.5">
Alternatively, you can copy and paste the following URL into your browser:
<a href="{{.Link}}">{{.Link}}</a>
<a href="{{.Link}}" rel="noopener noreferrer">{{.Link}}</a>
</mj-text>
<mj-text font-family="Open Sans, Arial" font-size="14px" color="#888">
If you have any questions or need assistance, please don't hesitate to contact us.
Expand Down
7 changes: 3 additions & 4 deletions apps/comms/email-templates/reset-password/email.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<!-- FILE: email.mjml -->
<!-- source: https://mjml.io/try-it-live/nRcfyqsLUS -->
<!-- DO NOT EDIT: generated with `email.mjml` in their online editor -->
<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">

Expand Down Expand Up @@ -147,15 +146,15 @@
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:separate;line-height:100%;">
<tr>
<td align="center" bgcolor="#2563EB" role="presentation" style="border:none;border-radius:3px;cursor:auto;mso-padding-alt:10px 25px;background:#2563EB;" valign="middle">
<a href="{{.Link}}" style="display:inline-block;background:#2563EB;color:#ffffff;font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:16px;font-weight:normal;line-height:120%;margin:0;text-decoration:none;text-transform:none;padding:10px 25px;mso-padding-alt:0px;border-radius:3px;" target="_blank"> Reset Password </a>
<a href="{{.Link}}" rel="noopener noreferrer" style="display:inline-block;background:#2563EB;color:#ffffff;font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:16px;font-weight:normal;line-height:120%;margin:0;text-decoration:none;text-transform:none;padding:10px 25px;mso-padding-alt:0px;border-radius:3px;" target="_blank"> Reset Password </a>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="left" style="font-size:0px;padding:10px 25px;word-break:break-word;">
<div style="font-family:Open Sans, Arial;font-size:16px;line-height:1.5;text-align:left;color:#555555;">Alternatively, you can copy and paste the following URL into your browser: <a href="{{.Link}}">{{.Link}}</a></div>
<div style="font-family:Open Sans, Arial;font-size:16px;line-height:1.5;text-align:left;color:#555555;">Alternatively, you can copy and paste the following URL into your browser: <a href="{{.Link}}" rel="noopener noreferrer">{{.Link}}</a></div>
</td>
</tr>
<tr>
Expand Down
5 changes: 3 additions & 2 deletions apps/comms/email-templates/reset-password/email.mjml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!-- vim: set ft=html: -->
<mjml>
<mj-body background-color="#f7f7f7">
<mj-section padding="20px 0">
Expand All @@ -13,12 +14,12 @@
<mj-text font-family="Open Sans, Arial" font-size="16px" color="#555" line-height="1.5">
To proceed, please click the button below.
</mj-text>
<mj-button align="left" href="{{.Link}}" background-color="#2563EB" font-size="16px" color="#fff">
<mj-button align="left" href="{{.Link}}" rel="noopener noreferrer" background-color="#2563EB" font-size="16px" color="#fff">
Reset Password
</mj-button>
<mj-text font-family="Open Sans, Arial" font-size="16px" color="#555" line-height="1.5">
Alternatively, you can copy and paste the following URL into your browser:
<a href="{{.Link}}">{{.Link}}</a>
<a href="{{.Link}}" rel="noopener noreferrer">{{.Link}}</a>
</mj-text>
<mj-text font-family="Open Sans, Arial" font-size="14px" color="#888">
If you did not request a password reset or need further assistance, please contact us immediately.
Expand Down
6 changes: 3 additions & 3 deletions apps/comms/email-templates/user-verification/email.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- FILE: email.mjml -->
<!-- DO NOT EDIT: generated with `email.mjml` in their online editor -->
<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">

Expand Down Expand Up @@ -157,15 +157,15 @@
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:separate;line-height:100%;">
<tr>
<td align="center" bgcolor="#2563EB" role="presentation" style="border:none;border-radius:3px;cursor:auto;mso-padding-alt:10px 25px;background:#2563EB;" valign="middle">
<a href="{{.Link}}" style="display:inline-block;background:#2563EB;color:#ffffff;font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:16px;font-weight:normal;line-height:120%;margin:0;text-decoration:none;text-transform:none;padding:10px 25px;mso-padding-alt:0px;border-radius:3px;" target="_blank"> Verify Email </a>
<a href="{{.Link}}" rel="noopener noreferrer" style="display:inline-block;background:#2563EB;color:#ffffff;font-family:Ubuntu, Helvetica, Arial, sans-serif;font-size:16px;font-weight:normal;line-height:120%;margin:0;text-decoration:none;text-transform:none;padding:10px 25px;mso-padding-alt:0px;border-radius:3px;" target="_blank"> Verify Email </a>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="left" style="font-size:0px;padding:10px 25px;word-break:break-word;">
<div style="font-family:Open Sans, Arial;font-size:16px;line-height:1.5;text-align:left;color:#555555;">Alternatively, you can copy and paste the following URL into your browser: <a href="{{.Link}}">{{.Link}}</a></div>
<div style="font-family:Open Sans, Arial;font-size:16px;line-height:1.5;text-align:left;color:#555555;">Alternatively, you can copy and paste the following URL into your browser: <a href="{{.Link}}" rel="noopener noreferrer">{{.Link}}</a></div>
</td>
</tr>
<tr>
Expand Down
Loading
Loading