Skip to content

Unencrypted HTTP request using Unirest

Description

Unirest HTTP call detected using unencrypted protocol (`http://`). Data sent over HTTP is not encrypted and can be intercepted.

Examples

Insecure Code

java
Unirest.get("http://example.com");

Secure Code

java
Unirest.get("https://example.com");

Remediation

Use HTTPS (`https://`) instead.

Rule Details

FieldValue
IDCODE-0109
CategoryCrypto
SeverityMEDIUM
CWECWE-319
ConfidenceMEDIUM
ImpactMEDIUM
LikelihoodMEDIUM
ExploitabilityEASY
Tagsunirest, http, https
OWASPA3:2017-Sensitive Data Exposure, A02:2021-Cryptographic Failures