Say I have a form on my website.
The input elements of the form are: email address, name and some feedback textarea.
The server-side application that this form is submitted to will send an HTML content-type email to the email address you specify supplying all the input fields you specified.
For instance
Hi {Name},
Thanks for your feedback. Your feedback was: {Feedback}
The email you provided is: {Email}
My question is:
Should I encode the {Name} and {Feedback} variables in the email? Given the fact that no current modern email client or web mail interface will run any script or load external resources by default?
The reason I ask is because I reported such an "issue" to a very big public company. The security engineer I talked to, told me that they don't worry about such things, and these kind of things are expected to happen.
He suggested that it's the user's fault for not using a more secure client (if the client executes the javascript).
Thanks.
