rspec/rules/S5300/description.adoc
Arseniy Zaostrovnykh 7ca29f686f Force linebreaks
2021-02-02 15:02:10 +01:00

28 lines
1.1 KiB
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Sending emails is security-sensitive and can expose an application to a large range of vulnerabilities.
*Information Exposure*
Emails often contain sensitive information which might be exposed to an attacker if he can add an arbitrary address to the recipient list.
*Spamming / Phishing*
Malicious user can abuse email based feature to send spam or phishing content.
*Dangerous Content Injection*
Emails can contain HTML and JavaScript code, thus they can be used for XSS attacks.
*Email Headers Injection*
Email fields such as ``++subject++``, ``++to++``, ``++cc++``, ``++bcc++``, ``++from++`` are set in email "headers".  Using unvalidated user input to set those fields might allow attackers to inject new line characters in headers to craft malformed SMTP requests. Although modern libraries are filtering new line character by default, user data used in email "headers" should always be validated.
In the past, it has led to the following vulnerabilities:
* http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-9801[CVE-2017-9801]
* http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-4803[CVE-2016-4803]