Communication with an insecure SMTP connection detected.

Description

Secure connections using SMTP help prevent unauthorized actors from viewing transmitted data. This policy checks if SMTP mailer settings are set to only allow secure connections.

Remediations

✅ When using the SMTP protocol, make sure to enable SSL encryption in ActionMailer configuration:

config.action_mailer.smtp_settings = {
...
ssl: true
}

Resources

Associated CWE

OWASP Top 10

Configuration

To skip this rule during a scan, use the following flag

bearer scan /path/to/your-project/ --skip-rule=php_symfony_insecure_smtp

To run only this rule during a scan, use the following flag

bearer scan /path/to/your-project/ --only-rule=php_symfony_insecure_smtp

Ready to take the next step? Learn more about Bearer Cloud.