Usage of insecure HTTP connection

Description

Applications should only connect to API using HTTPS connections. This rule checks that all HTTP connections use HTTPS.

Remediations

❌ Avoid using unsecured outgoing HTTP communication, especially in the context of API calls:

response = HTTParty.get('http://insecure-api.com')

✅ Ensure to always connect though HTTPS:

response = HTTParty.get('https://secure-api.com')

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=ruby_lang_http_insecure

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

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