Skip to content

Cleartext transmission of sensitive information

Description

The application was found setting `force_ssl` to `false`. This setting can expose the application to the risk of network interception of unencrypted traffic. Enabling `force_ssl` by setting `config.force_ssl = true` in the application's configuration, specifically within `config/environments/production.rb`, forces the use of HTTPS, encrypting data in transit and safeguarding against eavesdropping or data tampering.

Examples

Insecure Code

ruby
config.force_ssl = false

Secure Code

ruby
config.force_ssl = true

Remediation

Set `config.force_ssl` to `true` in the application's configuration.

Rule Details

FieldValue
IDCODE-0552
CategoryInsecureConfig
SeverityMEDIUM
CWECWE-319
ConfidenceHIGH
ImpactHIGH
LikelihoodMEDIUM
ExploitabilityEASY
Tagsssl, https, encryption
OWASPA3:2017-Sensitive Data Exposure, A04:2021-Insecure Design

References