Skip to content

Use of HTTP instead of HTTPS

Description

HTTP GET request detected using HttpGet with a non-secure HTTP URL. Transmitting data over HTTP is insecure as it does not provide encryption, potentially exposing sensitive information to interception or tampering. Use HTTPS instead to ensure confidentiality and integrity of the communication.

Examples

Insecure Code

java
HttpGet httpGet = new HttpGet("http://example.com");

Secure Code

java
HttpGet httpGet = new HttpGet("https://example.com");

Remediation

Replace HTTP with HTTPS in the URL used for the HttpGet request.

Rule Details

FieldValue
IDCODE-0229
CategoryCrypto
SeverityMEDIUM
CWECWE-319
ConfidenceMEDIUM
ImpactMEDIUM
LikelihoodMEDIUM
ExploitabilityEASY
Tagsinsecure transport, sensitive data exposure
OWASPA3:2017-Sensitive Data Exposure, A02:2021-Cryptographic Failures

References