Communication through an insecure HTTP connection detected.
- Rule ID: php_lang_http_insecure
- Languages: php
- Source: http_insecure.yml
Applications should only connect to API using HTTPS connections. This rule checks that all HTTP connections use HTTPS.
❌ Avoid using unsecured outgoing HTTP communication, especially in the context of API calls:
$curl = curl_init('http://insecure-api.com');
✅ Ensure to always connect though HTTPS:
$curl = curl_init('https://secure-api.com');
OWASP Top 10
To skip this rule during a scan, use the following flag
bearer scan /path/to/your-project/ --skip-rule=php_lang_http_insecure
To run only this rule during a scan, use the following flag
bearer scan /path/to/your-project/ --only-rule=php_lang_http_insecure
Ready to take the next step? Learn more about Bearer Cloud.